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.
Failed tests: 5/549. Failed suites: 3/98.
```
β 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'
```
---
```
β Cli publish βΊ should upload appropriate project to IPFS
Publish project to default IPFS failed
172 | const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
173 | for await (const result of results) {
> 174 | fileCidMap.set(result.path, result.cid.toString());
| ^
175 |
176 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
177 | console.warn(
at packages/cli/src/controller/publish-controller.ts:174:15
at async Promise.all (index 0)
at async uploadFile (packages/cli/src/controller/publish-controller.ts:177:30)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:100:26)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:105:26
at async Promise.all (index 1)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:103:9)
at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:70:28)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:33:21)
Cause:
HTTPError:
403 Forbidden
403 Forbidden
nginx/1.17.7
175 |
176 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
> 177 | console.warn(
| ^
178 | `Failed to pin file ${result.path}. There might be problems with this file being accessible later. ${e}`
179 | );
180 | });
at Object.errorHandler [as handleError] (node_modules/ipfs-http-client/cjs/src/lib/core.js:84:15)
at async Client.fetch (node_modules/ipfs-http-client/node_modules/ipfs-utils/src/http.js:161:9)
at async addAll (node_modules/ipfs-http-client/cjs/src/add-all.js:21:17)
at async Object.last [as default] (node_modules/it-last/index.js:13:20)
at async Object.add (node_modules/ipfs-http-client/cjs/src/add.js:18:14)
at async Promise.all (index 0)
at async uploadFile (packages/cli/src/controller/publish-controller.ts:177:30)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:100:26)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:105:26
at async Promise.all (index 1)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:103:9)
at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:70:28)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:33:21)
```
---
```
β 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)
```
Coverage report for
.
Show new covered files π£
|
Show files with reduced coverage π»
|
Test suite run failed
Failed tests: 5/549. Failed suites: 3/98.
``` β 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' ``` --- ``` β Cli publish βΊ should upload appropriate project to IPFS Publish project to default IPFS failed 172 | const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain}); 173 | for await (const result of results) { > 174 | fileCidMap.set(result.path, result.cid.toString()); | ^ 175 | 176 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => { 177 | console.warn( at packages/cli/src/controller/publish-controller.ts:174:15 at async Promise.all (index 0) at async uploadFile (packages/cli/src/controller/publish-controller.ts:177:30) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:100:26) at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:105:26 at async Promise.all (index 1) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:103:9) at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:70:28) at async Object.
403 Forbidden
Report generated by π§ͺjest coverage report action from 461277d2563b7404a7346da0df115a7d14b58e39