fix(ama-sdk): support of URL as spec-path input #7951
Annotations
6 errors and 1 warning
Test:
packages/@ama-sdk/create/src/index.it.spec.ts#L63
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: npm create @ama-sdk typescript @my-test/sdk -- --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk/swagger-spec.yml
STDERR:
npm WARN exec The following package was not found and will be installed: @ama-sdk/create@999.0.0
npm WARN deprecated swagger-methods@1.0.8: This package is no longer being maintained.
npm WARN deprecated superagent@7.1.6: Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731)
npm WARN deprecated json-schema-ref-parser@6.1.0: Please switch to @apidevtools/json-schema-ref-parser
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
\"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk/my-test/sdk/openapi.yaml'
npm ERR! code 1
npm ERR! path /home/runner/work/otter/it-tests/test-create-sdk
npm ERR! command failed
npm ERR! command sh -c create typescript @my-test/sdk --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk/swagger-spec.yml·
npm ERR! A complete log of this run can be found in: /home/runner/work/otter/otter/.cache/test-app/npm-cache/_logs/2024-03-29T09_24_21_522Z-debug-0.log·
OUTPUT:
,CREATE my-test/sdk/.commitlintrc.json (810 bytes)
CREATE my-test/sdk/.editorconfig (208 bytes)
CREATE my-test/sdk/.openapi-generator-ignore (90 bytes)
CREATE my-test/sdk/.renovaterc.json (844 bytes)
CREATE my-test/sdk/.swcrc (329 bytes)
CREATE my-test/sdk/.versionrc.json (110 bytes)
CREATE my-test/sdk/CONTRIBUTING.md (122 bytes)
CREATE my-test/sdk/jest.config.js (737 bytes)
CREATE my-test/sdk/readme.md (7144 bytes)
CREATE my-test/sdk/tsconfig.build.json (542 bytes)
CREATE my-test/sdk/tsconfig.doc.json (354 bytes)
CREATE my-test/sdk/tsconfig.json (226 bytes)
CREATE my-test/sdk/typedoc.json (289 bytes)
CREATE my-test/sdk/.vscode/settings.json (613 bytes)
CREATE my-test/sdk/configs/tsconfig.test.json (496 bytes)
CREATE my-test/sdk/src/index.ts (77 bytes)
CREATE my-test/sdk/src/api/fixtures.jest.ts (123 bytes)
CREATE my-test/sdk/src/api/index.ts (17 bytes)
CREATE my-test/sdk/src/fixtures/jest/index.ts (41 bytes)
CREATE my-test/sdk/src/fixtures/jest/package.json (353 bytes)
CREATE my-test/sdk/src/helpers/index.ts (17 bytes)
CREATE my-test/sdk/src/helpers/package.json (314 bytes)
CREATE my-test/sdk/src/models/enums.ts (93 bytes)
CREATE my-test/sdk/src/models/index.ts (128 bytes)
CREATE my-test/sdk/src/models/patterns.ts (102 bytes)
CREATE my-test/sdk/src/models/base/enums.ts (97 bytes)
CREATE my-test/sdk/src/models/base/index.ts (17 bytes)
CREATE my-test/sdk/src/models/base/patterns.ts (100 bytes)
CREATE my-test/sdk/src/models/core/enums.ts (48 bytes)
CREATE my-test/sdk/src/models/core/index.ts (49 bytes)
CREATE my-test/sdk/src/models/core/patterns.ts (51 bytes)
CREATE my-test/sdk/src/models/custom/enums.ts (50 bytes)
CREATE my-test/sdk/src/models/custom/index.ts (17 bytes)
CREATE my-test/sdk/src/models/custom/patterns.ts (53 bytes)
CREATE my-test/sdk/src/spec/api-mock.ts (123 bytes)
CREATE my-test/sdk/src/spec/index.ts (103 bytes)
CREATE my-test/sdk/src/spec/operation-adapter.ts (16 bytes)
CREATE my-test/sdk/src/spec/package.json (293 bytes)
CREATE my-test/sdk/src/spec/mock-factory/index.ts (49 bytes)
CREATE my-test/sdk/testing/tsconfig.spec.json (448 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.jest.json (319 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.source.json (242 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.jest.json (357 bytes)
CREATE my-test/sdk/tsconfi
|
Test:
packages/@ama-sdk/create/src/index.it.spec.ts#L74
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: npm create @ama-sdk typescript @my-test/sdk -- --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk1/swagger-spec-with-date.yml
STDERR:
\"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk1/my-test/sdk/openapi.yaml'
npm ERR! code 1
npm ERR! path /home/runner/work/otter/it-tests/test-create-sdk1
npm ERR! command failed
npm ERR! command sh -c create typescript @my-test/sdk --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk1/swagger-spec-with-date.yml·
npm ERR! A complete log of this run can be found in: /home/runner/work/otter/otter/.cache/test-app/npm-cache/_logs/2024-03-29T09_25_24_448Z-debug-0.log·
OUTPUT:
,CREATE my-test/sdk/.commitlintrc.json (810 bytes)
CREATE my-test/sdk/.editorconfig (208 bytes)
CREATE my-test/sdk/.openapi-generator-ignore (90 bytes)
CREATE my-test/sdk/.renovaterc.json (844 bytes)
CREATE my-test/sdk/.swcrc (329 bytes)
CREATE my-test/sdk/.versionrc.json (110 bytes)
CREATE my-test/sdk/CONTRIBUTING.md (122 bytes)
CREATE my-test/sdk/jest.config.js (737 bytes)
CREATE my-test/sdk/readme.md (7144 bytes)
CREATE my-test/sdk/tsconfig.build.json (542 bytes)
CREATE my-test/sdk/tsconfig.doc.json (354 bytes)
CREATE my-test/sdk/tsconfig.json (226 bytes)
CREATE my-test/sdk/typedoc.json (289 bytes)
CREATE my-test/sdk/.vscode/settings.json (613 bytes)
CREATE my-test/sdk/configs/tsconfig.test.json (496 bytes)
CREATE my-test/sdk/src/index.ts (77 bytes)
CREATE my-test/sdk/src/api/fixtures.jest.ts (123 bytes)
CREATE my-test/sdk/src/api/index.ts (17 bytes)
CREATE my-test/sdk/src/fixtures/jest/index.ts (41 bytes)
CREATE my-test/sdk/src/fixtures/jest/package.json (353 bytes)
CREATE my-test/sdk/src/helpers/index.ts (17 bytes)
CREATE my-test/sdk/src/helpers/package.json (314 bytes)
CREATE my-test/sdk/src/models/enums.ts (93 bytes)
CREATE my-test/sdk/src/models/index.ts (128 bytes)
CREATE my-test/sdk/src/models/patterns.ts (102 bytes)
CREATE my-test/sdk/src/models/base/enums.ts (97 bytes)
CREATE my-test/sdk/src/models/base/index.ts (17 bytes)
CREATE my-test/sdk/src/models/base/patterns.ts (100 bytes)
CREATE my-test/sdk/src/models/core/enums.ts (48 bytes)
CREATE my-test/sdk/src/models/core/index.ts (49 bytes)
CREATE my-test/sdk/src/models/core/patterns.ts (51 bytes)
CREATE my-test/sdk/src/models/custom/enums.ts (50 bytes)
CREATE my-test/sdk/src/models/custom/index.ts (17 bytes)
CREATE my-test/sdk/src/models/custom/patterns.ts (53 bytes)
CREATE my-test/sdk/src/spec/api-mock.ts (123 bytes)
CREATE my-test/sdk/src/spec/index.ts (103 bytes)
CREATE my-test/sdk/src/spec/operation-adapter.ts (16 bytes)
CREATE my-test/sdk/src/spec/package.json (293 bytes)
CREATE my-test/sdk/src/spec/mock-factory/index.ts (49 bytes)
CREATE my-test/sdk/testing/tsconfig.spec.json (448 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.jest.json (319 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.source.json (242 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.jest.json (357 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.json (127 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.source.json (287 bytes)
CREATE my-test/sdk/.eslintignore (132 bytes)
CREATE my-test/sdk/.eslintrc.js (1075 bytes)
CREATE my-test/sdk/.gitignore (613 bytes)
CREATE my-test/sdk/openapitools.json (409 bytes)
CREATE my-test/sdk/package.json (3992 bytes)
, \"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk1/my-test/sdk/openapi.yaml'
npm ERR! code 1
npm ERR! path /home/runner/work/otter/it-tests/test-create-sdk1
npm ERR! command failed
npm ERR! command sh -c create typescript @my-test/sdk --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk1/swagger-spec-with-date.yml·
npm ERR! A complete log of this run can be found in: /home/runner/work/otter/otter/.cache/tes
|
Test:
packages/@ama-sdk/create/src/index.it.spec.ts#L88
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: npm create @ama-sdk typescript sdk -- --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk2/swagger-spec.yml
STDERR:
\"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk2/sdk/openapi.yaml'
npm ERR! code 1
npm ERR! path /home/runner/work/otter/it-tests/test-create-sdk2
npm ERR! command failed
npm ERR! command sh -c create typescript sdk --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk2/swagger-spec.yml·
npm ERR! A complete log of this run can be found in: /home/runner/work/otter/otter/.cache/test-app/npm-cache/_logs/2024-03-29T09_25_59_891Z-debug-0.log·
OUTPUT:
,CREATE sdk/.commitlintrc.json (810 bytes)
CREATE sdk/.editorconfig (208 bytes)
CREATE sdk/.openapi-generator-ignore (90 bytes)
CREATE sdk/.renovaterc.json (844 bytes)
CREATE sdk/.swcrc (329 bytes)
CREATE sdk/.versionrc.json (110 bytes)
CREATE sdk/CONTRIBUTING.md (115 bytes)
CREATE sdk/jest.config.js (710 bytes)
CREATE sdk/readme.md (7144 bytes)
CREATE sdk/tsconfig.build.json (542 bytes)
CREATE sdk/tsconfig.doc.json (354 bytes)
CREATE sdk/tsconfig.json (226 bytes)
CREATE sdk/typedoc.json (289 bytes)
CREATE sdk/.vscode/settings.json (613 bytes)
CREATE sdk/configs/tsconfig.test.json (496 bytes)
CREATE sdk/src/index.ts (77 bytes)
CREATE sdk/src/api/fixtures.jest.ts (123 bytes)
CREATE sdk/src/api/index.ts (17 bytes)
CREATE sdk/src/fixtures/jest/index.ts (41 bytes)
CREATE sdk/src/fixtures/jest/package.json (344 bytes)
CREATE sdk/src/helpers/index.ts (17 bytes)
CREATE sdk/src/helpers/package.json (305 bytes)
CREATE sdk/src/models/enums.ts (93 bytes)
CREATE sdk/src/models/index.ts (128 bytes)
CREATE sdk/src/models/patterns.ts (102 bytes)
CREATE sdk/src/models/base/enums.ts (97 bytes)
CREATE sdk/src/models/base/index.ts (17 bytes)
CREATE sdk/src/models/base/patterns.ts (100 bytes)
CREATE sdk/src/models/core/enums.ts (48 bytes)
CREATE sdk/src/models/core/index.ts (49 bytes)
CREATE sdk/src/models/core/patterns.ts (51 bytes)
CREATE sdk/src/models/custom/enums.ts (50 bytes)
CREATE sdk/src/models/custom/index.ts (17 bytes)
CREATE sdk/src/models/custom/patterns.ts (53 bytes)
CREATE sdk/src/spec/api-mock.ts (123 bytes)
CREATE sdk/src/spec/index.ts (103 bytes)
CREATE sdk/src/spec/operation-adapter.ts (16 bytes)
CREATE sdk/src/spec/package.json (284 bytes)
CREATE sdk/src/spec/mock-factory/index.ts (49 bytes)
CREATE sdk/testing/tsconfig.spec.json (448 bytes)
CREATE sdk/tsconfigs/tsconfig.jest.json (319 bytes)
CREATE sdk/tsconfigs/tsconfig.source.json (242 bytes)
CREATE sdk/tsconfigs/esm2020/tsconfig.jest.json (357 bytes)
CREATE sdk/tsconfigs/esm2020/tsconfig.json (127 bytes)
CREATE sdk/tsconfigs/esm2020/tsconfig.source.json (287 bytes)
CREATE sdk/.eslintignore (132 bytes)
CREATE sdk/.eslintrc.js (1075 bytes)
CREATE sdk/.gitignore (613 bytes)
CREATE sdk/openapitools.json (402 bytes)
CREATE sdk/package.json (3976 bytes)
, \"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk2/sdk/openapi.yaml'
npm ERR! code 1
npm ERR! path /home/runner/work/otter/it-tests/test-create-sdk2
npm ERR! command failed
npm ERR! command sh -c create typescript sdk --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk2/swagger-spec.yml·
npm ERR! A complete log of this run can be found in: /home/runner/work/otter/otter/.cache/test-app/npm-cache/_logs/2024-03-29T09_25_59_891Z-debug-0.log
"
81 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports
82 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
> 83 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`);
| ^
84 | }
85 |
|
Test:
packages/@ama-sdk/create/src/index.it.spec.ts#L100
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: npm exec schematics @ama-sdk/schematics:typescript-core -- --spec-path ../../swagger-spec.yml
STDERR:
Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk3/my-test/sdk/openapi.yaml'·
OUTPUT:
,,Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk3/my-test/sdk/openapi.yaml'
"
81 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports
82 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
> 83 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`);
| ^
84 | }
85 | }
86 |
at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:83:11)
at packageManagerExec (packages/@o3r/test-helpers/src/utilities/package-manager.ts:115:10)
at packages/@ama-sdk/create/src/index.it.spec.ts:96:25
at Object.<anonymous> (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/toThrowMatchers.js:74:11)
at Object.throwingMatcher [as toThrow] (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/index.js:320:21)
at Object.<anonymous> (packages/@ama-sdk/create/src/index.it.spec.ts:100:11)
at Object.<anonymous> (src/index.it.spec.ts:100:11)
|
Test:
packages/@ama-sdk/create/src/index.it.spec.ts#L120
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: npm create @ama-sdk@999.0.0 typescript @my-test/sdk -- --exact-o3r-version --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk5/swagger-spec.yml
STDERR:
npm WARN exec The following package was not found and will be installed: @ama-sdk/create@999.0.0
npm WARN deprecated swagger-methods@1.0.8: This package is no longer being maintained.
npm WARN deprecated superagent@7.1.6: Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731)
npm WARN deprecated json-schema-ref-parser@6.1.0: Please switch to @apidevtools/json-schema-ref-parser
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
\"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: ENOENT: no such file or directory, open '/home/runner/work/otter/it-tests/test-create-sdk5/my-test/sdk/openapi.yaml'
npm ERR! code 1
npm ERR! path /home/runner/work/otter/it-tests/test-create-sdk5
npm ERR! command failed
npm ERR! command sh -c create typescript @my-test/sdk --exact-o3r-version --package-manager npm --spec-path /home/runner/work/otter/it-tests/test-create-sdk5/swagger-spec.yml·
npm ERR! A complete log of this run can be found in: /home/runner/work/otter/otter/.cache/test-app/npm-cache/_logs/2024-03-29T09_27_35_754Z-debug-0.log·
OUTPUT:
,CREATE my-test/sdk/.commitlintrc.json (810 bytes)
CREATE my-test/sdk/.editorconfig (208 bytes)
CREATE my-test/sdk/.openapi-generator-ignore (90 bytes)
CREATE my-test/sdk/.renovaterc.json (844 bytes)
CREATE my-test/sdk/.swcrc (329 bytes)
CREATE my-test/sdk/.versionrc.json (110 bytes)
CREATE my-test/sdk/CONTRIBUTING.md (122 bytes)
CREATE my-test/sdk/jest.config.js (737 bytes)
CREATE my-test/sdk/readme.md (7144 bytes)
CREATE my-test/sdk/tsconfig.build.json (542 bytes)
CREATE my-test/sdk/tsconfig.doc.json (354 bytes)
CREATE my-test/sdk/tsconfig.json (226 bytes)
CREATE my-test/sdk/typedoc.json (289 bytes)
CREATE my-test/sdk/.vscode/settings.json (613 bytes)
CREATE my-test/sdk/configs/tsconfig.test.json (496 bytes)
CREATE my-test/sdk/src/index.ts (77 bytes)
CREATE my-test/sdk/src/api/fixtures.jest.ts (123 bytes)
CREATE my-test/sdk/src/api/index.ts (17 bytes)
CREATE my-test/sdk/src/fixtures/jest/index.ts (41 bytes)
CREATE my-test/sdk/src/fixtures/jest/package.json (353 bytes)
CREATE my-test/sdk/src/helpers/index.ts (17 bytes)
CREATE my-test/sdk/src/helpers/package.json (314 bytes)
CREATE my-test/sdk/src/models/enums.ts (93 bytes)
CREATE my-test/sdk/src/models/index.ts (128 bytes)
CREATE my-test/sdk/src/models/patterns.ts (102 bytes)
CREATE my-test/sdk/src/models/base/enums.ts (97 bytes)
CREATE my-test/sdk/src/models/base/index.ts (17 bytes)
CREATE my-test/sdk/src/models/base/patterns.ts (100 bytes)
CREATE my-test/sdk/src/models/core/enums.ts (48 bytes)
CREATE my-test/sdk/src/models/core/index.ts (49 bytes)
CREATE my-test/sdk/src/models/core/patterns.ts (51 bytes)
CREATE my-test/sdk/src/models/custom/enums.ts (50 bytes)
CREATE my-test/sdk/src/models/custom/index.ts (17 bytes)
CREATE my-test/sdk/src/models/custom/patterns.ts (53 bytes)
CREATE my-test/sdk/src/spec/api-mock.ts (123 bytes)
CREATE my-test/sdk/src/spec/index.ts (103 bytes)
CREATE my-test/sdk/src/spec/operation-adapter.ts (16 bytes)
CREATE my-test/sdk/src/spec/package.json (293 bytes)
CREATE my-test/sdk/src/spec/mock-factory/index.ts (49 bytes)
CREATE my-test/sdk/testing/tsconfig.spec.json (448 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.jest.json (319 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.source.json (242 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tscon
|
Test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading