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: 6/557. 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
160 | try {
161 | const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
> 162 | for await (const result of results) {
| ^
163 | fileCidMap.set(result.path, result.cid.toString());
164 |
165 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
at packages/cli/src/controller/publish-controller.ts:162:15
at async Promise.all (index 0)
at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:87:26)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 1)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:57:28)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:38:21)
Cause:
HTTPError:
403 Forbidden
403 Forbidden
nginx
163 | fileCidMap.set(result.path, result.cid.toString());
164 |
> 165 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
| ^
166 | console.warn(
167 | `Failed to pin file ${result.path}. There might be problems with this file being accessible later. ${e}`
168 | );
at Object.errorHandler [as handleError] (node_modules/ipfs-http-client/cjs/src/lib/core.js:84:15)
at async Client.fetch (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:165:30)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:87:26)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 1)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:57:28)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:38:21)
β Cli publish βΊ Get directory CID from multi-chain project
Publish project to default IPFS failed
160 | try {
161 | const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain});
> 162 | for await (const result of results) {
| ^
163 | fileCidMap.set(result.path, result.cid.toString());
164 |
165 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
at packages/cli/src/controller/publish-controller.ts:162:15
at async Promise.all (index 0)
at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:87:26)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 0)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 4)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async Promise.all (index 4)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:78:17)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 5)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:57:28)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:66:24)
Cause:
HTTPError:
403 Forbidden
403 Forbidden
nginx
163 | fileCidMap.set(result.path, result.cid.toString());
164 |
> 165 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => {
| ^
166 | console.warn(
167 | `Failed to pin file ${result.path}. There might be problems with this file being accessible later. ${e}`
168 | );
at Object.errorHandler [as handleError] (node_modules/ipfs-http-client/cjs/src/lib/core.js:84:15)
at async Client.fetch (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:165:30)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:87:26)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 0)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 4)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async Promise.all (index 4)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:78:17)
at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26
at async Promise.all (index 5)
at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9)
at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:57:28)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:66:24)
```
---
```
β 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: 6/557. 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 160 | try { 161 | const results = ipfsWrite.addAll(contents, {pin: true, cidVersion: 0, wrapWithDirectory: isMultichain}); > 162 | for await (const result of results) { | ^ 163 | fileCidMap.set(result.path, result.cid.toString()); 164 | 165 | await ipfsWrite.pin.remote.add(result.cid, {service: PIN_SERVICE}).catch((e) => { at packages/cli/src/controller/publish-controller.ts:162:15 at async Promise.all (index 0) at async uploadFile (packages/cli/src/controller/publish-controller.ts:165:30) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:87:26) at async /home/runner/work/subql/subql/packages/cli/src/controller/publish-controller.ts:92:26 at async Promise.all (index 1) at async replaceFileReferences (packages/cli/src/controller/publish-controller.ts:90:9) at async uploadToIpfs (packages/cli/src/controller/publish-controller.ts:57:28) at async Object.
403 Forbidden
403 Forbidden
Report generated by π§ͺjest coverage report action from 5b2084ce624049aa8633064a357db25a3eb615ed