subquery / subql

SubQuery is an Open, Flexible, Fast and Universal data indexing framework for web3. Our mission is to help developers create the decentralised products of the future.
https://subquery.network
GNU General Public License v3.0
19.06k stars 328 forks source link

[SKIPCI] fix docker build 20240716 #2490

Closed jiqiang90 closed 1 month ago

jiqiang90 commented 1 month ago

Description

Fix ci docker build failed due to extra , in ts config file. jq: parse error: Expected another key-value pair at line 38, column 3

Type of change

Please delete options that are not relevant.

Checklist

github-actions[bot] commented 1 month ago

Coverage report for .

[!CAUTION] Test run failed

St.:grey_question:
Category Percentage Covered / Total
🟡 Statements
64.28% (-5.83% 🔻)
18819/29277
🟡 Branches
77.87% (-0.42% 🔻)
2379/3055
🟡 Functions
65.91% (+3.41% 🔼)
1048/1590
🟡 Lines
64.28% (-5.83% 🔻)
18819/29277

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

Test suite run failed

Failed tests: 27/563. Failed suites: 8/100.
``` ● Fetch Service › checks chain heads at an interval expect(jest.fn()).toHaveBeenCalledTimes(expected) Expected number of calls: 1 Received number of calls: 0 340 | 341 | // Initial calls within init > 342 | expect(finalizedSpy).toHaveBeenCalledTimes(1); | ^ 343 | expect(bestSpy).toHaveBeenCalledTimes(1); 344 | 345 | await delay((CHAIN_INTERVAL / 1000) * 1.5); // Convert to seconds then half a block interval off at Object. (packages/node-core/src/indexer/fetch.service.spec.ts:342:26) ``` --- ``` ● Dictionary V1 › coreDictionary › set startHeight of this dictionary ApolloError: Response not successful: Received status code 500 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 () 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 › validateChainMeta and useDictionary ApolloError: Response not successful: Received status code 500 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 () 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 › validate dictionary with a height ApolloError: Response not successful: Received status code 500 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 () 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 › able to build queryEntryMap ApolloError: Response not successful: Received status code 500 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 () 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 › can use scoped dictionary query ApolloError: Response not successful: Received status code 500 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 () 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 › able to getDicitonaryQueryEntries ApolloError: Response not successful: Received status code 500 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 () 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 › get metadata ApolloError: Response not successful: Received status code 500 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 () 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 › init metadata and get metadata ApolloError: Response not successful: Received status code 500 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 () 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 › return dictionary query result ApolloError: Response not successful: Received status code 500 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 () 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 › should return undefined startblock height greater than dictionary last processed height ApolloError: Response not successful: Received status code 500 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 () 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 › should use metadata last process height at end of query height ApolloError: Response not successful: Received status code 500 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 () 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 ● Individual dictionary V1 test › return undefined when dictionary api failed ApolloError: Response not successful: Received status code 500 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 () 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 ● Individual dictionary V1 test › limits the dictionary query to that block range ApolloError: Response not successful: Received status code 500 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 () 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 ● Individual dictionary V1 test › test query the correct range ApolloError: Response not successful: Received status code 500 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 () 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 ● Individual dictionary V1 test › use minimum value of event/extrinsic returned block as batch end block ApolloError: Response not successful: Received status code 500 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 () 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 ``` --- ``` ● Substrate DictionaryService › should return all specVersion expect(received).toBeGreaterThan(expected) Matcher error: received value must be a number or bigint Received has value: undefined 55 | const specVersions = await dictionaryService.getSpecVersions(); 56 | > 57 | expect(specVersions?.length).toBeGreaterThan(0); | ^ 58 | dictionaryService.onApplicationShutdown(); 59 | }, 50000); 60 | }); at Object. (packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.spec.ts:57:34) ``` --- ``` ● Codegen can generate schema › Should dedupe enums ENOENT: no such file or directory, open '/home/runner/work/subql/subql/packages/cli/test/schemaTest/src/types/models/foo.ts' ``` --- ``` ● IPFSClient Lite › should upload files and yield results Failed to upload files to IPFS 116 | return jsonLines.map((line) => JSON.parse(line)).map(mapResponse); 117 | } catch (error) { > 118 | throw new Error(`Failed to upload files to IPFS`, {cause: error}); | ^ 119 | } 120 | } 121 | at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:118:13) at Object. (packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts:25:21) Cause: AxiosError: Request failed with status code 403 at settle (node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11) ● IPFSClient Lite › should add a file to IPFS and return AddResult Failed to upload files to IPFS 116 | return jsonLines.map((line) => JSON.parse(line)).map(mapResponse); 117 | } catch (error) { > 118 | throw new Error(`Failed to upload files to IPFS`, {cause: error}); | ^ 119 | } 120 | } 121 | at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:118:13) at IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:52:21) at Object. (packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts:55:23) Cause: AxiosError: Request failed with status code 403 at settle (node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11) ● IPFSClient Lite › should pin a content with given CID to a remote pinning service Failed to pin CID QmQKeYj2UZJoTN5yXSvzJy4A3CjUuSmEWAKeZV4herh5bS to remote service 74 | return response.data; 75 | } catch (e) { > 76 | throw new Error(`Failed to pin CID ${cid} to remote service`, {cause: e}); | ^ 77 | } 78 | } 79 | at IPFSHTTPClientLite.pinRemoteAdd (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:76:13) at Object. (packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts:64:20) Cause: AxiosError: Request failed with status code 403 at settle (node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11) ``` --- ``` ● Cli publish › should upload appropriate project to IPFS Publish project to default IPFS failed 159 | 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 | at packages/cli/src/controller/publish-controller.ts:161:15 at async Promise.all (index 0) at async uploadFile (packages/cli/src/controller/publish-controller.ts:164:30) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:86:26) at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:91:26 at async Promise.all (index 1) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:89:9) at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:56:28) at async Object. (packages/cli/src/controller/publish-controller.spec.ts:38: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:164:30) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:86:26) at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:91:26 at async Promise.all (index 1) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:89:9) at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:56:28) at async Object. (packages/cli/src/controller/publish-controller.spec.ts:38:21) Cause: AxiosError: Request failed with status code 403 at settle (node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11) ● Cli publish › Get directory CID from multi-chain project Publish project to default IPFS failed 159 | 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 | at packages/cli/src/controller/publish-controller.ts:161:15 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) Cause: AxiosError: Request failed with status code 403 at settle (node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11) ``` --- ``` ● FetchService › can get the finalized height TypeError: fetchService.getFinalizedHeight is not a function 45 | 46 | it('can get the finalized height', async () => { > 47 | const height = await (fetchService as any).getFinalizedHeight(); | ^ 48 | expect(height).toBeGreaterThan(0); 49 | }); 50 | at Object. (packages/node/src/indexer/fetch.service.test.ts:47:48) ``` --- ``` ● Intergration test - Publish › overwrites any exisiting CID files thrown: "Exceeded timeout of 300000 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." 28 | it('overwrites any exisiting CID files', async () => { 29 | const initCID = 'QmWLxg7xV7ZWUyc7ZxZ8XuQQ7NmH8WQGXzg7VZ3QQNqF-testing'; > 30 | const cidFilePath = path.resolve(projectDir, '.project-cid'); | ^ 31 | await fs.promises.writeFile(cidFilePath, initCID); 32 | await Publish.run(['-f', projectDir, '-o']); 33 | const cidValue = await fs.promises.readFile(cidFilePath, 'utf8'); at packages/cli/src/commands/publish.test.ts:30:5 at Object. (packages/cli/src/commands/publish.test.ts:15:1) ● Intergration test - Publish › create ipfsCID file stored in local with dictiory path thrown: "Exceeded timeout of 300000 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." 36 | 37 | it('create ipfsCID file stored in local with dictiory path', async () => { > 38 | await Publish.run(['-f', projectDir]); | ^ 39 | const cidFile = path.resolve(projectDir, '.project-cid'); 40 | const fileExists = fs.existsSync(cidFile); 41 | const IPFScontent = await fs.promises.readFile(cidFile, 'utf8'); at packages/cli/src/commands/publish.test.ts:38:5 at Object. (packages/cli/src/commands/publish.test.ts:15:1) ● Intergration test - Publish › file name consistent with manfiest file name, if -f is used thrown: "Exceeded timeout of 300000 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." 45 | 46 | // Run this last because it modifies the project > 47 | it('file name consistent with manfiest file name, if -f is used', async () => { | ^ 48 | const manifestPath = path.resolve(projectDir, 'project.yaml'); 49 | const testManifestPath = path.resolve(projectDir, 'test.yaml'); 50 | fs.renameSync(manifestPath, testManifestPath); at packages/cli/src/commands/publish.test.ts:47:5 at Object. (packages/cli/src/commands/publish.test.ts:15:1) ```

Report generated by 🧪jest coverage report action from c961fe4941c649d99c0615ace2aeebcb96beef0e