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

Bring back changes from https://github.com/subquery/subql/pull/2225 #2320

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

stwiname
Copy link
Collaborator

Description

#2257 did not include the changes from #2225 this brings back any of the changes that were missed

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

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

@stwiname stwiname force-pushed the fix-modulos-regression branch from 48d273a to 7e16fa3 Compare March 21, 2024 20:58
Copy link

Coverage report for .

Caution

Test run failed

St.
Category Percentage Covered / Total
🟡 Statements
61.41% (-8.7% 🔻)
16265/26486
🟡 Branches
79.52% (+1.23% 🔼)
1806/2271
🔴 Functions
49.59% (-12.91% 🔻)
669/1349
🟡 Lines
61.41% (-8.7% 🔻)
16265/26486
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / publish.ts
44% (-45.33% 🔻)
25% (-32.14% 🔻)
100%
44% (-45.33% 🔻)
🔴
... / publish-controller.ts
59.67% (-20.58% 🔻)
62.5% (-8.61% 🔻)
60% (-40% 🔻)
59.67% (-20.58% 🔻)
🟡
... / utils.ts
79.92% (-1.16% 🔻)
85.71% (+5.01% 🔼)
77.27%
79.92% (-1.16% 🔻)
🔴
... / databaseUtil.ts
44.44% (-44.44% 🔻)
100% (+50% 🔼)
0% (-100% 🔻)
44.44% (-44.44% 🔻)
🔴
... / utils.ts
55.63% (-7.07% 🔻)
81.82% (+8.65% 🔼)
52% (-4% 🔻)
55.63% (-7.07% 🔻)
🟡
... / api.service.ts
64.95% (+3.09% 🔼)
93.33% (+20% 🔼)
33.33% (-8.33% 🔻)
64.95% (+3.09% 🔼)
🟡
... / NodeConfig.ts
75.63% (-12.97% 🔻)
81.25% (+1.62% 🔼)
44.19% (-41.86% 🔻)
75.63% (-12.97% 🔻)
🟢
... / ProjectUpgrade.service.ts
86.17% (-0.91% 🔻)
86.96% (-4.4% 🔻)
86.96% (-4.35% 🔻)
86.17% (-0.91% 🔻)
🔴
... / configure.module.ts
25.71% (-58.86% 🔻)
100% (+36% 🔼)
20% (-80% 🔻)
25.71% (-58.86% 🔻)
🟡
... / db.module.ts
78.91% (-9.38% 🔻)
57.14% (-26.19% 🔻)
66.67% (-13.33% 🔻)
78.91% (-9.38% 🔻)
🔴
... / SchemaMigration.service.ts
34.72% (-52.85% 🔻)
75% (-6.25% 🔻)
60% (-40% 🔻)
34.72% (-52.85% 🔻)
🟡
... / migration-helpers.ts
62.73% (-13.28% 🔻)
83.02% (+2.42% 🔼)
72.73% (-18.18% 🔻)
62.73% (-13.28% 🔻)
🔴
... / migration.ts
19.69% (-62.6% 🔻)
100% (+20.27% 🔼)
0% (-90.48% 🔻)
19.69% (-62.6% 🔻)
🟡
... / sequelizeUtil.ts
70.54% (-20.54% 🔻)
75% (+4.63% 🔼)
37.5% (-25% 🔻)
70.54% (-20.54% 🔻)
🔴
... / sync-helper.ts
50.46% (-37.92% 🔻)
81.82% (-6.23% 🔻)
18.33% (-56.67% 🔻)
50.46% (-37.92% 🔻)
🔴
... / benchmark.service.ts
41.26% (-13.99% 🔻)
100% (+33.33% 🔼)
0% (-40% 🔻)
41.26% (-13.99% 🔻)
🔴
... / block-dispatcher.ts
25.23% (-15.77% 🔻)
100% (+33.33% 🔼)
0% (-28.57% 🔻)
25.23% (-15.77% 🔻)
🟢
... / coreDictionary.ts
97.5% (-2.5% 🔻)
88.24% (-6.21% 🔻)
100%
97.5% (-2.5% 🔻)
🔴
... / dictionary.service.ts
47.43% (-37.71% 🔻)
81.82% (-3.9% 🔻)
45.45% (-45.45% 🔻)
47.43% (-37.71% 🔻)
🟢
... / dictionaryV1.ts
92.43% (-0.8% 🔻)
75.56% (-2.71% 🔻)
100%
92.43% (-0.8% 🔻)
🟢
... / dictionaryV2.ts
87.77% (+6.09% 🔼)
70% (+4.78% 🔼)
75% (-25% 🔻)
87.77% (+6.09% 🔼)
🔴
... / indexer.manager.ts
29.15% (-4.06% 🔻)
100%
0% (-12.5% 🔻)
29.15% (-4.06% 🔻)
🔴
... / poi.service.ts
22.97% (-0.96% 🔻)
100%
0% (-28.57% 🔻)
22.97% (-0.96% 🔻)
🔴
... / project.service.ts
40.21% (-39.79% 🔻)
87.5% (+17.32% 🔼)
16% (-68% 🔻)
40.21% (-39.79% 🔻)
🔴
... / smartBatch.service.ts
22.61% (-1.74% 🔻)
100%
0% (-14.29% 🔻)
22.61% (-1.74% 🔻)
🔴
... / store.service.ts
26.5% (-39.54% 🔻)
100% (+31.58% 🔼)
3.57% (-53.57% 🔻)
26.5% (-39.54% 🔻)
🟢
... / baseCache.service.ts
85% (-8.33% 🔻)
71.43% (-16.07% 🔻)
60% (-20% 🔻)
85% (-8.33% 🔻)
🟡
... / cacheMetadata.ts
77.02% (-11.49% 🔻)
73.68% (-1.87% 🔻)
73.33% (-20% 🔻)
77.02% (-11.49% 🔻)
🟡
... / storeCache.service.ts
72.33% (-2.91% 🔻)
57.14% (-11.61% 🔻)
68.75% (-12.5% 🔻)
72.33% (-2.91% 🔻)
🔴
... / event.listener.ts
53.54% (-27.27% 🔻)
100%
0% (-25% 🔻)
53.54% (-27.27% 🔻)
🔴
... / health.controller.ts
55.17% 100%
0% (-50% 🔻)
55.17%
🔴
... / health.service.ts
53.42% (-4.11% 🔻)
100%
0% (-20% 🔻)
53.42% (-4.11% 🔻)
🟡
... / meta.service.ts
62.86% (-6.67% 🔻)
100% (+20% 🔼)
0% (-40% 🔻)
62.86% (-6.67% 🔻)
🔴
... / ready.controller.ts
56.52% 100%
0% (-50% 🔻)
56.52%
🟡
... / ready.service.ts
75% (-16.67% 🔻)
100%
0% (-66.67% 🔻)
75% (-16.67% 🔻)
🟢
... / autoQueue.ts
87.64% (-0.75% 🔻)
84.78% (-0.32% 🔻)
75% (-4.17% 🔻)
87.64% (-0.75% 🔻)
🔴
... / batch-size.ts
33.33% (-7.14% 🔻)
100%
0% (-33.33% 🔻)
33.33% (-7.14% 🔻)
🔴
... / blockSizeBuffer.ts
38.46% (-7.69% 🔻)
100%
0% (-50% 🔻)
38.46% (-7.69% 🔻)
🟡
... / configure.ts
70.91% (-14.55% 🔻)
83.33% (+16.67% 🔼)
50% (-50% 🔻)
70.91% (-14.55% 🔻)
🔴
... / graphql.ts
21.55% (-47.41% 🔻)
100% (+29.41% 🔼)
0% (-33.33% 🔻)
21.55% (-47.41% 🔻)
🔴
... / project.ts
56.49% (-16.88% 🔻)
74.47% (-0.11% 🔻)
58.82% (-18.95% 🔻)
56.49% (-16.88% 🔻)
🔴
... / yargs.ts
10.32% (-35.16% 🔻)
100%
0% (-14.29% 🔻)
10.32% (-35.16% 🔻)
🟢
... / SubqueryProject.ts
91.04% (-4.48% 🔻)
73.33% (-9.02% 🔻)
71.43% (-14.29% 🔻)
91.04% (-4.48% 🔻)
🔴
... / configure.module.ts
0% (-28.07% 🔻)
0% (-100% 🔻)
0%
0% (-28.07% 🔻)
🟢
... / api.service.ts
83.51%
71.43% (-0.79% 🔻)
86.67% 83.51%
🔴
... / block-dispatcher.service.ts
0% (-68.87% 🔻)
0% (-100% 🔻)
0% (-25% 🔻)
0% (-68.87% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-50% 🔻)
0% (-100% 🔻)
🔴
... / worker-block-dispatcher.service.ts
0% (-36.96% 🔻)
0% (-100% 🔻)
0%
0% (-36.96% 🔻)
🔴
... / dynamic-ds.service.ts
37.29% (-8.47% 🔻)
100%
0% (-50% 🔻)
37.29% (-8.47% 🔻)
🔴
... / fetch.module.ts
0% (-91.88% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-91.88% 🔻)
🟢
... / fetch.service.ts
83.33% (-0.43% 🔻)
100% 66.67%
83.33% (-0.43% 🔻)
🔴
... / indexer.manager.ts
49.06% (-8.49% 🔻)
100%
0% (-9.09% 🔻)
49.06% (-8.49% 🔻)
🔴
... / project.service.ts
53.75% (-42.5% 🔻)
0% (-42.86% 🔻)
0% (-75% 🔻)
53.75% (-42.5% 🔻)
🔴
... / sandbox.service.ts
42.86% (-11.11% 🔻)
0% (-50% 🔻)
0% (-33.33% 🔻)
42.86% (-11.11% 🔻)
🟡
... / unfinalizedBlocks.service.ts
62.75% (-23.53% 🔻)
100%
0% (-50% 🔻)
62.75% (-23.53% 🔻)
🔴
... / meta.controller.ts
0% (-86.67% 🔻)
0% (-100% 🔻)
0% (-50% 🔻)
0% (-86.67% 🔻)
🔴
... / meta.module.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / meta.service.ts
0% (-92% 🔻)
0% (-100% 🔻)
0% (-50% 🔻)
0% (-92% 🔻)
🟢
... / project.ts
84.72% (-4.17% 🔻)
66.67% (-1.52% 🔻)
75% (-12.5% 🔻)
84.72% (-4.17% 🔻)
🔴
... / test.utils.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴 node/src/yargs.ts
0% (-52% 🔻)
0% (-100% 🔻)
0%
0% (-52% 🔻)
🟢
... / buffer.ts
95% (-5% 🔻)
95.24% (-4.76% 🔻)
80% (-4.21% 🔻)
95% (-5% 🔻)
🔴
... / metadata.ts
57.89% (-21.05% 🔻)
100%
0% (-50% 🔻)
57.89% (-21.05% 🔻)

Test suite run failed

Failed tests: 41/481. Failed suites: 12/85.
  ● CLI codegen:generate › extract from TS manifest

    expect(received).toMatch(expected)

    Expected substring: "approve(address spender, uint256 rawAmount)"
    Received string:    "0x095ea7b3"

      684 |     );
      685 |     // TODO expected to fail, due to unable to skip comments
    > 686 |     expect(v.function).toMatch('approve(address spender, uint256 rawAmount)');
          |                        ^
      687 |     expect(v.topics[0]).toMatch('Transfer(address indexed from, address indexed to, uint256 amount)');
      688 |     expect(v.endpoint[0]).toMatch('https://eth.api.onfinality.io/public');
      689 |   });

      at Object.<anonymous> (packages/cli/src/controller/generate-controller.spec.ts:686:24)


  ● Dictionary V1 › coreDictionary › can use scoped dictionary query

    expect(received).toEqual(expected) // deep equality

    Expected: 0
    Received: undefined

      204 |       // Out of range of scoped entries
      205 |       const result = await dictionary.getData(100, 199, 10);
    > 206 |       expect(result?.batchBlocks.length).toEqual(0);
          |                                          ^
      207 |
      208 |       const result2 = await dictionary.getData(1000, 10000, 10);
      209 |       expect(result2?.batchBlocks.length).toBeGreaterThan(0);

      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:206:42)

  ● Dictionary V1 › return dictionary query result

    expect(received).toBeGreaterThan(expected)

    Matcher error: received value must be a number or bigint

    Received has value: undefined

      269 |     const endBlock = 10001;
      270 |     const dic = await dictionary.getData(startBlock, endBlock, batchSize);
    > 271 |     expect(dic?.batchBlocks.length).toBeGreaterThan(1);
          |                                     ^
      272 |     expect(dic?.batchBlocks[0]).toBe(1463);
      273 |   });
      274 |

      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:271:37)

  ● Individual dictionary V1 test › test query the correct range

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:296:24)


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


  ● Test suite failed to run

    Your test suite must contain at least one test.

      at onResult (node_modules/@jest/core/build/TestScheduler.js:133:18)
      at node_modules/@jest/core/build/TestScheduler.js:254:19
      at node_modules/emittery/index.js:363:13
          at Array.map (<anonymous>)
      at Emittery.emit (node_modules/emittery/index.js:361:23)


  ● CLI deploy, delete, promote › Deploy to Hosted Service and Delete

    Failed to validate IPFS CID: failure to get a peer from the ring-balancer

      80 | export function errorHandle(e: any, msg: string): Error {
      81 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 82 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      83 |   }
      84 |
      85 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:82:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:110:23)

  ● CLI deploy, delete, promote › should return true for valid ipfsCID

    Failed to validate IPFS CID: failure to get a peer from the ring-balancer

      80 | export function errorHandle(e: any, msg: string): Error {
      81 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 82 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      83 |   }
      84 |
      85 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:82:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:139:23)

  ● CLI deploy, delete, promote › to throw error for invalid ipfsCID

    expect(received).rejects.toThrow(expected)

    Expected substring: "Failed to validate IPFS CID: fake is not a valid subquery deployment id!"
    Received message:   "Failed to validate IPFS CID: failure to get a peer from the ring-balancer"

          80 | export function errorHandle(e: any, msg: string): Error {
          81 |   if (axios.isAxiosError(e) && e?.response?.data) {
        > 82 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
             |           ^
          83 |   }
          84 |
          85 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:82:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:144:5)
      at Object.toThrow (node_modules/expect/build/index.js:210:22)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:144:80)

  ● CLI deploy, delete, promote › get DictEndpoint - polkadot

    Failed to validate IPFS CID: failure to get a peer from the ring-balancer

      80 | export function errorHandle(e: any, msg: string): Error {
      81 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 82 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      83 |   }
      84 |
      85 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:82:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:150:23)

  ● CLI deploy, delete, promote › reDeploy to Hosted Service

    Failed to validate IPFS CID: failure to get a peer from the ring-balancer

      80 | export function errorHandle(e: any, msg: string): Error {
      81 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 82 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      83 |   }
      84 |
      85 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:82:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:160: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)


  ● Individual dictionary V1 test › test query the correct range

    expect(received).toEqual(expected) // deep equality

    Expected: [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, …]
    Received: undefined

      358 |     const endBlock = 10001;
      359 |     const dic = await dictionary.getData(startBlock, endBlock, batchSize);
    > 360 |     expect(dic?.batchBlocks).toEqual(range(startBlock, startBlock + batchSize));
          |                              ^
      361 |   });
      362 |
      363 |   it('use minimum value of event/extrinsic returned block as batch end block', async () => {

      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:360:30)

  ● Individual dictionary V2 test › can get data

    Dictionary get capability failed TypeError: Cannot read properties of undefined (reading '1')

      158 |       logger.error(error, `Dictionary query failed. request: ${JSON.stringify(requestData, null, 2)}`);
      159 |       // Handle the error as needed
    > 160 |       throw new Error(`Dictionary get capability failed ${error}`);
          |             ^
      161 |     }
      162 |   }
      163 |

      at TestDictionaryV2.getData (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts:160:13)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts:95:18)

  ● Individual dictionary V2 test › should able to handle convertResponseBlocks return empty array blocks and lastBufferedHeight is undefined

    Dictionary get capability failed TypeError: Cannot read properties of undefined (reading '1')

      158 |       logger.error(error, `Dictionary query failed. request: ${JSON.stringify(requestData, null, 2)}`);
      159 |       // Handle the error as needed
    > 160 |       throw new Error(`Dictionary get capability failed ${error}`);
          |             ^
      161 |     }
      162 |   }
      163 |

      at TestDictionaryV2.getData (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts:160:13)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts:146:18)

  ● Dictionary service › can use the dictionary registry to resolve a url

    ApolloError: Response not successful: Received status code 503

      at new ApolloError (node_modules/@apollo/client/errors/index.js:39:28)
      at node_modules/@apollo/client/core/QueryManager.js:772:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:167:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

  ● Dictionary service › init Dictionaries with mutiple endpoints, can be valid and non-valid

    ApolloError: Response not successful: Received status code 503

      at new ApolloError (node_modules/@apollo/client/errors/index.js:39:28)
      at node_modules/@apollo/client/core/QueryManager.js:772:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:167:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

  ● Dictionary service › can find valid dictionary with height

    ApolloError: Response not successful: Received status code 503

      at new ApolloError (node_modules/@apollo/client/errors/index.js:39:28)
      at node_modules/@apollo/client/core/QueryManager.js:772:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:167:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

  ● Dictionary service › scopedDictionaryEntries, dictionary get data should be called

    ApolloError: Response not successful: Received status code 503

      at new ApolloError (node_modules/@apollo/client/errors/index.js:39:28)
      at node_modules/@apollo/client/core/QueryManager.js:772:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:167:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

  ● Dictionary service › scopedDictionaryEntries, if query failed/timeout, should try next valid dictionary for query

    ApolloError: Response not successful: Received status code 503

      at new ApolloError (node_modules/@apollo/client/errors/index.js:39:28)
      at node_modules/@apollo/client/core/QueryManager.js:772:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:167:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

  ● Dictionary service › tried all dictionaries but all failed will return undefined

    ApolloError: Response not successful: Received status code 503

      at new ApolloError (node_modules/@apollo/client/errors/index.js:39:28)
      at node_modules/@apollo/client/core/QueryManager.js:772:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:167:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17


  ● Dictionary V1 › coreDictionary › set startHeight of this dictionary

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › coreDictionary › validateChainMeta and useDictionary

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › coreDictionary › validate dictionary with a height

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › coreDictionary › able to build queryEntryMap

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › coreDictionary › can use scoped dictionary query

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › coreDictionary › able to getDicitonaryQueryEntries

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › get metadata

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › init metadata and get metadata

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › return dictionary query result

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › should return undefined startblock height greater than dictionary last processed height

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Dictionary V1 › should use metadata last process height at end of query height

    Dictionary metadata query timeout in 10 seconds. Please increase --dictionary-timeout.

      11 | export async function timeout<T>(promise: Promise<T>, sec: number, errMsg = 'timeout'): Promise<T> {
      12 |   // so we can have a more comprehensive error stack
    > 13 |   const err = new Error(errMsg);
         |               ^
      14 |   let timeout: NodeJS.Timeout;
      15 |   return Promise.race([
      16 |     promise.then(

      at timeout (packages/node-core/src/utils/promise.ts:13:15)
      at TestDictionaryV1.init (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts:59:33)
      at prepareDictionary (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:159:29)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts:168:24)

  ● Individual dictionary V2 test › can get data

    Dictionary get capability failed TypeError: Cannot read properties of undefined (reading '1')

      158 |       logger.error(error, `Dictionary query failed. request: ${JSON.stringify(requestData, null, 2)}`);
      159 |       // Handle the error as needed
    > 160 |       throw new Error(`Dictionary get capability failed ${error}`);
          |             ^
      161 |     }
      162 |   }
      163 |

      at TestDictionaryV2.getData (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts:160:13)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts:95:18)

  ● Individual dictionary V2 test › should able to handle convertResponseBlocks return empty array blocks and lastBufferedHeight is undefined

    Dictionary get capability failed TypeError: Cannot read properties of undefined (reading '1')

      158 |       logger.error(error, `Dictionary query failed. request: ${JSON.stringify(requestData, null, 2)}`);
      159 |       // Handle the error as needed
    > 160 |       throw new Error(`Dictionary get capability failed ${error}`);
          |             ^
      161 |     }
      162 |   }
      163 |

      at TestDictionaryV2.getData (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts:160:13)
      at Object.<anonymous> (packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts:146:18)


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


  ● ApiService › can correctly call rpc methods that use block number

    thrown: "Exceeded timeout of 90000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      395 |
      396 |   /* This test can be reenabled once https://github.com/polkadot-js/api/pull/4540 has been released and the api is updated */
    > 397 |   it('can correctly call rpc methods that use block number', async () => {
          |   ^
      398 |     const apiService = await prepareApiService(
      399 |       'wss://moonbeam-alpha.api.onfinality.io/public-ws',
      400 |       '0x91bc6e169807aaa54802737e1c504b2577d4fafedd5a02c10293b1cd60e39527',

      at packages/node/src/indexer/api.service.test.ts:397:3
      at Object.<anonymous> (packages/node/src/indexer/api.service.test.ts:52:1)


  ● Cli publish › upload file to ipfs

    Publish project to default failed, HTTPError: <html>
    <head><title>403 Forbidden</title></head>
    <body>
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx/1.17.7</center>
    </body>
    </html>

      174 |     const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
      175 |     for await (const result of results) {
    > 176 |       fileCidMap.set(result.path, result.cid.toString());
          |               ^
      177 |
      178 |       await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
      179 |         console.warn(

      at packages/cli/src/controller/publish-controller.ts:176:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:179:30)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:92:21)

  ● Cli publish › should upload appropriate project to IPFS

    Publish project to default failed, HTTPError: <html>
    <head><title>403 Forbidden</title></head>
    <body>
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx/1.17.7</center>
    </body>
    </html>

      174 |     const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
      175 |     for await (const result of results) {
    > 176 |       fileCidMap.set(result.path, result.cid.toString());
          |               ^
      177 |
      178 |       await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
      179 |         console.warn(

      at packages/cli/src/controller/publish-controller.ts:176:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:179:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:102:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:107:26
          at async Promise.all (index 2)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:105:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:72:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:97:21)

  ● Cli publish › upload project from a manifest

    thrown: "Exceeded timeout of 150000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      100 |     console.log(`upload file cid: ${cid}`);
      101 |   });
    > 102 |
          | ^
      103 |   it('should upload appropriate project to IPFS', async () => {
      104 |     projectDir = await createTestProject(projectSpecV0_2_0);
      105 |     const cid = await uploadToIpfs([projectDir], testAuth);

      at packages/cli/src/controller/publish-controller.spec.ts:102:5
      at Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:72:1)


  ● Cli publish › upload file to ipfs

    Publish project to default failed, HTTPError: <html>
    <head><title>403 Forbidden</title></head>
    <body>
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx/1.17.7</center>
    </body>
    </html>

      174 |     const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
      175 |     for await (const result of results) {
    > 176 |       fileCidMap.set(result.path, result.cid.toString());
          |               ^
      177 |
      178 |       await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
      179 |         console.warn(

      at packages/cli/src/controller/publish-controller.ts:176:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:179:30)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:92:21)

  ● Cli publish › should upload appropriate project to IPFS

    Publish project to default failed, HTTPError: <html>
    <head><title>403 Forbidden</title></head>
    <body>
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx/1.17.7</center>
    </body>
    </html>

      174 |     const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
      175 |     for await (const result of results) {
    > 176 |       fileCidMap.set(result.path, result.cid.toString());
          |               ^
      177 |
      178 |       await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
      179 |         console.warn(

      at packages/cli/src/controller/publish-controller.ts:176:15
          at async Promise.all (index 0)
      at async uploadFile (packages/cli/src/controller/publish-controller.ts:179:30)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:102:26)
      at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:107:26
          at async Promise.all (index 2)
      at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:105:9)
      at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:72:28)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:97:21)

  ● Cli publish › upload project from a manifest

    thrown: "Exceeded timeout of 150000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      100 |     console.log(`upload file cid: ${cid}`);
      101 |   });
    > 102 |
          | ^
      103 |   it('should upload appropriate project to IPFS', async () => {
      104 |     projectDir = await createTestProject(projectSpecV0_2_0);
      105 |     const cid = await uploadToIpfs([projectDir], testAuth);

      at packages/cli/src/controller/publish-controller.spec.ts:102:5
      at Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:72:1)
      at Object.<anonymous> (packages/cli/src/commands/publish.test.ts:12:35)

  ● Intergration test - Publish › overwrites any exisiting CID files

    thrown: "Exceeded timeout of 150000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      24 |     projectDir = await createTestProject(projectSpecV1_0_0);
      25 |     const cidFilePath = path.resolve(projectDir, '.project-cid');
    > 26 |     await fs.promises.writeFile(cidFilePath, initCID);
         |     ^
      27 |     await Publish.run(['-f', projectDir, '-o']);
      28 |     const cidValue = await fs.promises.readFile(cidFilePath, 'utf8');
      29 |     expect(initCID).not.toEqual(cidValue);

      at packages/cli/src/commands/publish.test.ts:26:5
      at Object.<anonymous> (packages/cli/src/commands/publish.test.ts:14:1)

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

    thrown: "Exceeded timeout of 150000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      33 |     projectDir = await createTestProject(projectSpecV1_0_0);
      34 |     const manifestPath = path.resolve(projectDir, 'project.yaml');
    > 35 |     const testManifestPath = path.resolve(projectDir, 'test.yaml');
         |     ^
      36 |     fs.renameSync(manifestPath, testManifestPath);
      37 |     await Publish.run(['-f', testManifestPath]);
      38 |

      at packages/cli/src/commands/publish.test.ts:35:5
      at Object.<anonymous> (packages/cli/src/commands/publish.test.ts:14:1)

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

    thrown: "Exceeded timeout of 150000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      43 |
      44 |   it('create ipfsCID file stored in local with dictiory path', async () => {
    > 45 |     projectDir = await createTestProject(projectSpecV1_0_0);
         |     ^
      46 |     await Publish.run(['-f', projectDir]);
      47 |     const cidFile = path.resolve(projectDir, '.project-cid');
      48 |     const fileExists = fs.existsSync(cidFile);

      at packages/cli/src/commands/publish.test.ts:45:5
      at Object.<anonymous> (packages/cli/src/commands/publish.test.ts:14:1)

Report generated by 🧪jest coverage report action from 7e16fa3

@stwiname stwiname merged commit 19302b8 into main Mar 21, 2024
1 of 3 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.

3 participants