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

Fix reindex module #357

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Fix reindex module #357

merged 1 commit into from
Dec 6, 2024

Conversation

yoozo
Copy link

@yoozo yoozo commented Dec 6, 2024

Description

Fixed the reindex runtime issue caused by missing API dependencies during reindexing
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

@yoozo yoozo requested a review from stwiname December 6, 2024 05:15
Copy link

github-actions bot commented Dec 6, 2024

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements 48.27% 3026/6269
🟡 Branches 68.93% 386/560
🔴 Functions 48.34% 131/271
🔴 Lines 48.27% 3026/6269

Test suite run failed

Failed tests: 2/83. Failed suites: 2/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)


  ● 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)

Report generated by 🧪jest coverage report action from cadbc0e

@yoozo yoozo merged commit c607e0d into main Dec 6, 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