Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release] 20240925 #346

Merged
merged 1 commit into from
Sep 25, 2024
Merged

[release] 20240925 #346

merged 1 commit into from
Sep 25, 2024

Conversation

yoozo
Copy link

@yoozo yoozo commented Sep 25, 2024

Description

Bump common, Added manifest support for query-subgraph.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

Copy link

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements 48.45% 3018/6229
🟡 Branches 68% 374/550
🔴 Functions 48.34% 131/271
🔴 Lines 48.45% 3018/6229

Test suite run failed

Failed tests: 4/83. Failed suites: 4/14.
  ● rawBlockToEthBlock › successfully converts a block

    FetchError: invalid json response body at https://ethereum.node.subquery.network/public reason: Unexpected token d in JSON at position 0

      52 |   });
      53 |
    > 54 |   return (await res.json()).result.blocks[0];
         |           ^
      55 | }
      56 |
      57 | describe('rawBlockToEthBlock', () => {

      at node_modules/node-fetch/lib/index.js:273:32
      at fetchDictionaryBlock (packages/node/src/indexer/dictionary/v2/utils.spec.ts:54:11)
          at async Promise.all (index 0)
      at Object.<anonymous> (packages/node/src/indexer/dictionary/v2/utils.spec.ts:63:23)

  ● rawBlockToEthBlock › can fetch receipts

    FetchError: invalid json response body at https://ethereum.node.subquery.network/public reason: Unexpected token d in JSON at position 0

      52 |   });
      53 |
    > 54 |   return (await res.json()).result.blocks[0];
         |           ^
      55 | }
      56 |
      57 | describe('rawBlockToEthBlock', () => {

      at node_modules/node-fetch/lib/index.js:273:32
      at fetchDictionaryBlock (packages/node/src/indexer/dictionary/v2/utils.spec.ts:54:11)
          at async Promise.all (index 0)
      at Object.<anonymous> (packages/node/src/indexer/dictionary/v2/utils.spec.ts:63:23)


  ● ApiService › can instantiate api

    All endpoints failed to initialize. Please add healthier endpoints

      74 |     }
      75 |
    > 76 |     await this.createConnections(network, (endpoint, config) =>
         |     ^
      77 |       EthereumApiConnection.create(
      78 |         endpoint,
      79 |         this.nodeConfig.blockConfirmations,

      at EthereumApiService.createConnections (node_modules/@subql/node-core/src/api.service.ts:128:13)
      at EthereumApiService.init (packages/node/src/ethereum/api.service.ethereum.ts:76:5)
      at prepareApiService (packages/node/src/ethereum/api.service.ethereum.test.ts:58:3)
      at Object.<anonymous> (packages/node/src/ethereum/api.service.ethereum.test.ts:68:25)

    Cause:
    AggregateError: All promises were rejected




  ● Test suite failed to run

    Jest worker encountered 4 child process exceptions, exceeding retry limit

      at ChildProcessWorker.initialize (node_modules/jest-worker/build/workers/ChildProcessWorker.js:181:21)


  ● Api.ethereum › Null and 0x (empty) filter support for transaction data

    Failed to fetch block 16258633

      320 |
      321 |     if (!rawBlock) {
    > 322 |       throw new Error(`Failed to fetch block ${num}`);
          |             ^
      323 |     }
      324 |
      325 |     const block = formatBlock(rawBlock);

      at EthereumApi.getBlockPromise (packages/node/src/ethereum/api.ethereum.ts:322:13)
      at EthereumApi.fetchBlock (packages/node/src/ethereum/api.ethereum.ts:341:21)
      at fetchBlock (packages/node/src/ethereum/api.ethereum.test.ts:51:19)
      at Object.<anonymous> (packages/node/src/ethereum/api.ethereum.test.ts:59:17)

Report generated by 🧪jest coverage report action from 76b3780

@yoozo yoozo merged commit 7d42595 into main Sep 25, 2024
1 of 2 checks passed
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