Skip to content

Conversation

@stwiname
Copy link
Collaborator

@stwiname stwiname commented Dec 15, 2025

Summary by CodeRabbit

  • Bug Fixes

    • Fixed an issue with Ethers imports
  • Changed

    • Updated MCP SDK dependency

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 15, 2025

Walkthrough

The PR updates CLI package release metadata. The version in package.json is bumped from 6.6.2-1 to 6.6.2 with the stableVersion field removed. The CHANGELOG.md is updated with a new 6.6.2 release entry documenting an Ethers import fix and MCP SDK update.

Changes

Cohort / File(s) Summary
Release metadata
packages/cli/CHANGELOG.md, packages/cli/package.json
Version bumped from 6.6.2-1 to 6.6.2; stableVersion field removed from package.json. CHANGELOG.md updated with 6.6.2 release section documenting Ethers import error fix and MCP SDK version lock.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Manifest-only changes with straightforward version updates and changelog entries
  • No functional code or logic modifications

Possibly related PRs

  • Fix CLI mcp #2984 — Main PR that introduces the Ethers import fix and MCP SDK version pin being documented in this release
  • [release] 20251120 #2973 — Modifies the same package files to update release metadata and version fields
  • [release] 20251117 #2968 — Updates the same package files including version bumping and stableVersion field removal

Poem

🐰 A version bumps with grace so fine,
From pre-release to stable line,
Six point six point two now shines,
With ethers fixed and SDK aligned!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[release] 20251216' clearly indicates this is a release PR dated December 16, 2025, and directly relates to the version bump (6.6.2) and changelog updates in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch release-20251216

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5d2c641 and 8421927.

📒 Files selected for processing (2)
  • packages/cli/CHANGELOG.md (2 hunks)
  • packages/cli/package.json (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/package.json

📄 CodeRabbit inference engine (CLAUDE.md)

Use the Yarn workspace protocol (workspace:~) for internal package dependencies

Files:

  • packages/cli/package.json
🧠 Learnings (3)
📚 Learning: 2025-11-25T02:34:46.620Z
Learnt from: CR
Repo: subquery/subql PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-25T02:34:46.620Z
Learning: Applies to **/*.{ts,tsx} : Use Ethers.js for Ethereum integration

Applied to files:

  • packages/cli/CHANGELOG.md
  • packages/cli/package.json
📚 Learning: 2025-11-25T02:34:46.620Z
Learnt from: CR
Repo: subquery/subql PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-25T02:34:46.620Z
Learning: Applies to **/*.{ts,tsx} : Use TypeScript throughout with strict configuration in the monorepo

Applied to files:

  • packages/cli/package.json
📚 Learning: 2025-11-25T02:34:46.620Z
Learnt from: CR
Repo: subquery/subql PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-25T02:34:46.620Z
Learning: Use TypeScript compilation with project references and generate OCLIF manifest for command discovery

Applied to files:

  • packages/cli/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Coverage report
  • GitHub Check: code-style
🔇 Additional comments (4)
packages/cli/package.json (2)

4-4: Version bump aligns with release metadata

"version": "6.6.2" matches the new changelog entry and release naming; no issues from a workspace or tooling perspective.


124-124: Types entry remains correct

"types": "lib/index.d.ts" is consistent with the build output (lib/) and Oclif config; nothing further needed here.

packages/cli/CHANGELOG.md (2)

9-15: 6.6.2 entry looks consistent

New 6.6.2 section (date, Fixed/Changed bullets, PR reference) is well-formed and matches the release intent.


894-895: Compare links correctly advanced to 6.6.2

[Unreleased] now compares from cli/6.6.2...HEAD, and [6.6.2] compares cli/6.6.1...cli/6.6.2, matching the new release section and package version.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

Coverage report for .

Caution

Test run failed

St.
Category Percentage Covered / Total
🟢 Statements
87.46% (+17.36% 🔼)
70904/81066
🟢 Branches
80.54% (+2.25% 🔼)
3360/4172
🟡 Functions
66.58% (+4.08% 🔼)
1271/1909
🟢 Lines
87.46% (+17.36% 🔼)
70904/81066

⚠️ Details were not displayed: the report size has exceeded the limit.

Test suite run failed

Failed tests: 7/714. Failed suites: 4/116.
  ● etherscan api › Deployment information › can get the deploy height of a contract

    Etherscan API error: Free API access is not supported for this chain. Please upgrade your api plan for full chain coverage. https://etherscan.io/apis

      24 |       return undefined;
      25 |     }
    > 26 |     throw new Error(`Etherscan API error: ${data.result}`);
         |           ^
      27 |   }
      28 |
      29 |   return data.result;

      at runRequest (packages/cli/src/utils/etherscan.ts:26:11)
      at fetchContractDeployHeight (packages/cli/src/utils/etherscan.ts:69:18)
      at Object.<anonymous> (packages/cli/src/utils/etherscan.spec.ts:41:22)


  ● Promise Utils › utils.promise delay()

    expect(received).toBeGreaterThanOrEqual(expected)

    Expected: >= 1000
    Received:    999

       9 |     await delay(1);
      10 |     const millsecDiff = new Date().getTime() - start.getTime();
    > 11 |     expect(millsecDiff).toBeGreaterThanOrEqual(1000);
         |                         ^
      12 |     expect(millsecDiff).toBeLessThan(1050);
      13 |   });
      14 |

      at Object.<anonymous> (packages/node-core/src/utils/promise.spec.ts:11:25)


  ● Cli publish › should upload appropriate project to IPFS

    Publish project to default IPFS failed

      160 |   try {
      161 |     const results = await ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
    > 162 |     for (const result of results) {
          |               ^
      163 |       fileCidMap.set(result.path, result.cid);
      164 |
      165 |       await ipfsWrite.pinRemoteAdd(result.cid, {service: PIN_SERVICE}).catch((e) => {

      at packages/cli/src/controller/publish-controller.ts:162:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:34:21)

    Cause:
    Failed to upload files to IPFS

      87 |     if (options) {
      88 |       url.searchParams.append('pin', options.pin?.toString() ?? 'true');
    > 89 |       url.searchParams.append('cid-version', options.cidVersion?.toString() ?? '0');
         |                   ^
      90 |       url.searchParams.append('wrap-with-directory', options.wrapWithDirectory?.toString() ?? 'false');
      91 |     }
      92 |

      at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:89:19)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:34:21)

    Cause:
    AxiosError: Request failed with status code 413

      66 |         url.toString(),
      67 |         {},
    > 68 |         {
         |          ^
      69 |           headers: {
      70 |             ...this.option.headers,
      71 |           },

      at settle (node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:792:11)
      at Axios.request (node_modules/axios/lib/core/Axios.js:45:41)
      at async IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:68:30)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:34:21)

  ● Cli publish › Get directory CID from multi-chain project

    Publish project to default IPFS failed

      160 |   try {
      161 |     const results = await ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
    > 162 |     for (const result of results) {
          |               ^
      163 |       fileCidMap.set(result.path, result.cid);
      164 |
      165 |       await ipfsWrite.pinRemoteAdd(result.cid, {service: PIN_SERVICE}).catch((e) => {

      at packages/cli/src/controller/publish-controller.ts:162:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:62:24)

    Cause:
    Failed to upload files to IPFS

      87 |     if (options) {
      88 |       url.searchParams.append('pin', options.pin?.toString() ?? 'true');
    > 89 |       url.searchParams.append('cid-version', options.cidVersion?.toString() ?? '0');
         |                   ^
      90 |       url.searchParams.append('wrap-with-directory', options.wrapWithDirectory?.toString() ?? 'false');
      91 |     }
      92 |

      at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:89:19)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:62:24)

    Cause:
    AxiosError: Request failed with status code 413

      66 |         url.toString(),
      67 |         {},
    > 68 |         {
         |          ^
      69 |           headers: {
      70 |             ...this.option.headers,
      71 |           },

      at settle (node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:792:11)
      at Axios.request (node_modules/axios/lib/core/Axios.js:45:41)
      at async IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:68:30)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:62:24)


  ● Integration test - Publish › overwrites any existing CID files

    Publish project to default IPFS failed

      160 |   try {
      161 |     const results = await ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
    > 162 |     for (const result of results) {
          |               ^
      163 |       fileCidMap.set(result.path, result.cid);
      164 |
      165 |       await ipfsWrite.pinRemoteAdd(result.cid, {service: PIN_SERVICE}).catch((e) => {

      at packages/cli/src/controller/publish-controller.ts:162:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

    Cause:
    Failed to upload files to IPFS

      87 |     if (options) {
      88 |       url.searchParams.append('pin', options.pin?.toString() ?? 'true');
    > 89 |       url.searchParams.append('cid-version', options.cidVersion?.toString() ?? '0');
         |                   ^
      90 |       url.searchParams.append('wrap-with-directory', options.wrapWithDirectory?.toString() ?? 'false');
      91 |     }
      92 |

      at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:89:19)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

    Cause:
    AxiosError: Request failed with status code 413

      66 |         url.toString(),
      67 |         {},
    > 68 |         {
         |          ^
      69 |           headers: {
      70 |             ...this.option.headers,
      71 |           },

      at settle (node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:792:11)
      at Axios.request (node_modules/axios/lib/core/Axios.js:45:41)
      at async IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:68:30)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

  ● Integration test - Publish › create ipfsCID file stored in local with dictiory path

    Publish project to default IPFS failed

      160 |   try {
      161 |     const results = await ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
    > 162 |     for (const result of results) {
          |               ^
      163 |       fileCidMap.set(result.path, result.cid);
      164 |
      165 |       await ipfsWrite.pinRemoteAdd(result.cid, {service: PIN_SERVICE}).catch((e) => {

      at packages/cli/src/controller/publish-controller.ts:162:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

    Cause:
    Failed to upload files to IPFS

      87 |     if (options) {
      88 |       url.searchParams.append('pin', options.pin?.toString() ?? 'true');
    > 89 |       url.searchParams.append('cid-version', options.cidVersion?.toString() ?? '0');
         |                   ^
      90 |       url.searchParams.append('wrap-with-directory', options.wrapWithDirectory?.toString() ?? 'false');
      91 |     }
      92 |

      at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:89:19)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

    Cause:
    AxiosError: Request failed with status code 413

      66 |         url.toString(),
      67 |         {},
    > 68 |         {
         |          ^
      69 |           headers: {
      70 |             ...this.option.headers,
      71 |           },

      at settle (node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:792:11)
      at Axios.request (node_modules/axios/lib/core/Axios.js:45:41)
      at async IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:68:30)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

  ● Integration test - Publish › file name consistent with manifest file name, if -f <manifest path> is used

    Publish project to default IPFS failed

      160 |   try {
      161 |     const results = await ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
    > 162 |     for (const result of results) {
          |               ^
      163 |       fileCidMap.set(result.path, result.cid);
      164 |
      165 |       await ipfsWrite.pinRemoteAdd(result.cid, {service: PIN_SERVICE}).catch((e) => {

      at packages/cli/src/controller/publish-controller.ts:162:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

    Cause:
    Failed to upload files to IPFS

      87 |     if (options) {
      88 |       url.searchParams.append('pin', options.pin?.toString() ?? 'true');
    > 89 |       url.searchParams.append('cid-version', options.cidVersion?.toString() ?? '0');
         |                   ^
      90 |       url.searchParams.append('wrap-with-directory', options.wrapWithDirectory?.toString() ?? 'false');
      91 |     }
      92 |

      at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:89:19)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

    Cause:
    AxiosError: Request failed with status code 413

      66 |         url.toString(),
      67 |         {},
    > 68 |         {
         |          ^
      69 |           headers: {
      70 |             ...this.option.headers,
      71 |           },

      at settle (node_modules/axios/lib/core/settle.js:19:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:792:11)
      at Axios.request (node_modules/axios/lib/core/Axios.js:45:41)
      at async IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:68:30)
      at async IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:34:25)
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:88:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 3)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
          at async Promise.all (index 0)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:79:17)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:93:26
          at async Promise.all (index 5)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:91:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:59:28)
      at async publishAdapter (packages/cli/src/commands/publish.ts:44:26)
      at async Publish.run (packages/cli/src/commands/publish.ts:66:24)
      at async Publish._run (node_modules/@oclif/core/lib/command.js:182:22)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:33:9)

Report generated by 🧪jest coverage report action from 8421927

@stwiname stwiname merged commit 1c482f2 into main Dec 15, 2025
3 of 4 checks passed
@stwiname stwiname deleted the release-20251216 branch December 15, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants