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 D:\\a\\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: fetch failed
npm ERR! code 1
npm ERR! path D:\\a\\otter\\it-tests\\test-create-sdk
npm ERR! command failed
npm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c create typescript @my-test/sdk --package-manager npm --spec-path D:\\a\\otter\\it-tests\\test-create-sdk\\swagger-spec.yml·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-29T09_33_54_946Z-debug-0.log·
OUTPUT:
,CREATE my-test/sdk/.commitlintrc.json (847 bytes)
CREATE my-test/sdk/.editorconfig (221 bytes)
CREATE my-test/sdk/.openapi-generator-ignore (91 bytes)
CREATE my-test/sdk/.renovaterc.json (886 bytes)
CREATE my-test/sdk/.swcrc (345 bytes)
CREATE my-test/sdk/.versionrc.json (119 bytes)
CREATE my-test/sdk/CONTRIBUTING.md (126 bytes)
CREATE my-test/sdk/jest.config.js (763 bytes)
CREATE my-test/sdk/readme.md (7363 bytes)
CREATE my-test/sdk/tsconfig.build.json (568 bytes)
CREATE my-test/sdk/tsconfig.doc.json (374 bytes)
CREATE my-test/sdk/tsconfig.json (240 bytes)
CREATE my-test/sdk/typedoc.json (301 bytes)
CREATE my-test/sdk/.vscode/settings.json (636 bytes)
CREATE my-test/sdk/configs/tsconfig.test.json (517 bytes)
CREATE my-test/sdk/src/index.ts (81 bytes)
CREATE my-test/sdk/src/api/fixtures.jest.ts (125 bytes)
CREATE my-test/sdk/src/api/index.ts (18 bytes)
CREATE my-test/sdk/src/fixtures/jest/index.ts (42 bytes)
CREATE my-test/sdk/src/fixtures/jest/package.json (363 bytes)
CREATE my-test/sdk/src/helpers/index.ts (18 bytes)
CREATE my-test/sdk/src/helpers/package.json (324 bytes)
CREATE my-test/sdk/src/models/enums.ts (97 bytes)
CREATE my-test/sdk/src/models/index.ts (134 bytes)
CREATE my-test/sdk/src/models/patterns.ts (106 bytes)
CREATE my-test/sdk/src/models/base/enums.ts (99 bytes)
CREATE my-test/sdk/src/models/base/index.ts (18 bytes)
CREATE my-test/sdk/src/models/base/patterns.ts (102 bytes)
CREATE my-test/sdk/src/models/core/enums.ts (50 bytes)
CREATE my-test/sdk/src/models/core/index.ts (51 bytes)
CREATE my-test/sdk/src/models/core/patterns.ts (53 bytes)
CREATE my-test/sdk/src/models/custom/enums.ts (52 bytes)
CREATE my-test/sdk/src/models/custom/index.ts (18 bytes)
CREATE my-test/sdk/src/models/custom/patterns.ts (55 bytes)
CREATE my-test/sdk/src/spec/api-mock.ts (125 bytes)
CREATE my-test/sdk/src/spec/index.ts (106 bytes)
CREATE my-test/sdk/src/spec/operation-adapter.ts (17 bytes)
CREATE my-test/sdk/src/spec/package.json (303 bytes)
CREATE my-test/sdk/src/spec/mock-factory/index.ts (51 bytes)
CREATE my-test/sdk/testing/tsconfig.spec.json (471 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.jest.json (339 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.source.json (255 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.jest.json (373 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.json (137 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.source.json (298
|
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 D:\\a\\otter\\it-tests\\test-create-sdk1\\swagger-spec-with-date.yml
STDERR:
\"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: fetch failed
npm ERR! code 1
npm ERR! path D:\\a\\otter\\it-tests\\test-create-sdk1
npm ERR! command failed
npm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c create typescript @my-test/sdk --package-manager npm --spec-path D:\\a\\otter\\it-tests\\test-create-sdk1\\swagger-spec-with-date.yml·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-29T09_35_26_718Z-debug-0.log·
OUTPUT:
,CREATE my-test/sdk/.commitlintrc.json (847 bytes)
CREATE my-test/sdk/.editorconfig (221 bytes)
CREATE my-test/sdk/.openapi-generator-ignore (91 bytes)
CREATE my-test/sdk/.renovaterc.json (886 bytes)
CREATE my-test/sdk/.swcrc (345 bytes)
CREATE my-test/sdk/.versionrc.json (119 bytes)
CREATE my-test/sdk/CONTRIBUTING.md (126 bytes)
CREATE my-test/sdk/jest.config.js (763 bytes)
CREATE my-test/sdk/readme.md (7363 bytes)
CREATE my-test/sdk/tsconfig.build.json (568 bytes)
CREATE my-test/sdk/tsconfig.doc.json (374 bytes)
CREATE my-test/sdk/tsconfig.json (240 bytes)
CREATE my-test/sdk/typedoc.json (301 bytes)
CREATE my-test/sdk/.vscode/settings.json (636 bytes)
CREATE my-test/sdk/configs/tsconfig.test.json (517 bytes)
CREATE my-test/sdk/src/index.ts (81 bytes)
CREATE my-test/sdk/src/api/fixtures.jest.ts (125 bytes)
CREATE my-test/sdk/src/api/index.ts (18 bytes)
CREATE my-test/sdk/src/fixtures/jest/index.ts (42 bytes)
CREATE my-test/sdk/src/fixtures/jest/package.json (363 bytes)
CREATE my-test/sdk/src/helpers/index.ts (18 bytes)
CREATE my-test/sdk/src/helpers/package.json (324 bytes)
CREATE my-test/sdk/src/models/enums.ts (97 bytes)
CREATE my-test/sdk/src/models/index.ts (134 bytes)
CREATE my-test/sdk/src/models/patterns.ts (106 bytes)
CREATE my-test/sdk/src/models/base/enums.ts (99 bytes)
CREATE my-test/sdk/src/models/base/index.ts (18 bytes)
CREATE my-test/sdk/src/models/base/patterns.ts (102 bytes)
CREATE my-test/sdk/src/models/core/enums.ts (50 bytes)
CREATE my-test/sdk/src/models/core/index.ts (51 bytes)
CREATE my-test/sdk/src/models/core/patterns.ts (53 bytes)
CREATE my-test/sdk/src/models/custom/enums.ts (52 bytes)
CREATE my-test/sdk/src/models/custom/index.ts (18 bytes)
CREATE my-test/sdk/src/models/custom/patterns.ts (55 bytes)
CREATE my-test/sdk/src/spec/api-mock.ts (125 bytes)
CREATE my-test/sdk/src/spec/index.ts (106 bytes)
CREATE my-test/sdk/src/spec/operation-adapter.ts (17 bytes)
CREATE my-test/sdk/src/spec/package.json (303 bytes)
CREATE my-test/sdk/src/spec/mock-factory/index.ts (51 bytes)
CREATE my-test/sdk/testing/tsconfig.spec.json (471 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.jest.json (339 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.source.json (255 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.jest.json (373 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.json (137 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.source.json (298 bytes)
CREATE my-test/sdk/.eslintignore (141 bytes)
CREATE my-test/sdk/.eslintrc.js (1125 bytes)
CREATE my-test/sdk/.gitignore (658 bytes)
CREATE my-test/sdk/openapitools.json (424 bytes)
CREATE my-test/sdk/package.json (4111 bytes)
, \"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: fetch failed
npm ERR! code 1
npm ERR! path D:\\a\\otter\\it-tests\\test-create-sdk1
npm ERR! command failed
npm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c create typescript @my-test/sdk --package-manager npm --spec-path D:\\a\\otter\\it-tests\\test-create-sdk1\\swagger-spec-with-date.yml·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-29T09_35_26_718Z-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 |
|
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 D:\\a\\otter\\it-tests\\test-create-sdk2\\swagger-spec.yml
STDERR:
\"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: fetch failed
npm ERR! code 1
npm ERR! path D:\\a\\otter\\it-tests\\test-create-sdk2
npm ERR! command failed
npm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c create typescript sdk --package-manager npm --spec-path D:\\a\\otter\\it-tests\\test-create-sdk2\\swagger-spec.yml·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-29T09_36_08_384Z-debug-0.log·
OUTPUT:
,CREATE sdk/.commitlintrc.json (847 bytes)
CREATE sdk/.editorconfig (221 bytes)
CREATE sdk/.openapi-generator-ignore (91 bytes)
CREATE sdk/.renovaterc.json (886 bytes)
CREATE sdk/.swcrc (345 bytes)
CREATE sdk/.versionrc.json (119 bytes)
CREATE sdk/CONTRIBUTING.md (119 bytes)
CREATE sdk/jest.config.js (736 bytes)
CREATE sdk/readme.md (7363 bytes)
CREATE sdk/tsconfig.build.json (568 bytes)
CREATE sdk/tsconfig.doc.json (374 bytes)
CREATE sdk/tsconfig.json (240 bytes)
CREATE sdk/typedoc.json (301 bytes)
CREATE sdk/.vscode/settings.json (636 bytes)
CREATE sdk/configs/tsconfig.test.json (517 bytes)
CREATE sdk/src/index.ts (81 bytes)
CREATE sdk/src/api/fixtures.jest.ts (125 bytes)
CREATE sdk/src/api/index.ts (18 bytes)
CREATE sdk/src/fixtures/jest/index.ts (42 bytes)
CREATE sdk/src/fixtures/jest/package.json (354 bytes)
CREATE sdk/src/helpers/index.ts (18 bytes)
CREATE sdk/src/helpers/package.json (315 bytes)
CREATE sdk/src/models/enums.ts (97 bytes)
CREATE sdk/src/models/index.ts (134 bytes)
CREATE sdk/src/models/patterns.ts (106 bytes)
CREATE sdk/src/models/base/enums.ts (99 bytes)
CREATE sdk/src/models/base/index.ts (18 bytes)
CREATE sdk/src/models/base/patterns.ts (102 bytes)
CREATE sdk/src/models/core/enums.ts (50 bytes)
CREATE sdk/src/models/core/index.ts (51 bytes)
CREATE sdk/src/models/core/patterns.ts (53 bytes)
CREATE sdk/src/models/custom/enums.ts (52 bytes)
CREATE sdk/src/models/custom/index.ts (18 bytes)
CREATE sdk/src/models/custom/patterns.ts (55 bytes)
CREATE sdk/src/spec/api-mock.ts (125 bytes)
CREATE sdk/src/spec/index.ts (106 bytes)
CREATE sdk/src/spec/operation-adapter.ts (17 bytes)
CREATE sdk/src/spec/package.json (294 bytes)
CREATE sdk/src/spec/mock-factory/index.ts (51 bytes)
CREATE sdk/testing/tsconfig.spec.json (471 bytes)
CREATE sdk/tsconfigs/tsconfig.jest.json (339 bytes)
CREATE sdk/tsconfigs/tsconfig.source.json (255 bytes)
CREATE sdk/tsconfigs/esm2020/tsconfig.jest.json (373 bytes)
CREATE sdk/tsconfigs/esm2020/tsconfig.json (137 bytes)
CREATE sdk/tsconfigs/esm2020/tsconfig.source.json (298 bytes)
CREATE sdk/.eslintignore (141 bytes)
CREATE sdk/.eslintrc.js (1125 bytes)
CREATE sdk/.gitignore (658 bytes)
CREATE sdk/openapitools.json (417 bytes)
CREATE sdk/package.json (4095 bytes)
, \"6.6.0\"
- Installing packages (npm)...
✔ Packages installed successfully.
Error: fetch failed
npm ERR! code 1
npm ERR! path D:\\a\\otter\\it-tests\\test-create-sdk2
npm ERR! command failed
npm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c create typescript sdk --package-manager npm --spec-path D:\\a\\otter\\it-tests\\test-create-sdk2\\swagger-spec.yml·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-29T09_36_08_384Z-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 | }
86 |
at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:83:11)
at packageManagerCreate (packages/@o3r/test-helpers/src/utilities/packa
|
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 'D:\\a\\otter\\it-tests\\test-create-sdk3\\my-test\\sdk\\openapi.yaml'·
OUTPUT:
,,Error: ENOENT: no such file or directory, open 'D:\\a\\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 D:\\a\\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: fetch failed
npm ERR! code 1
npm ERR! path D:\\a\\otter\\it-tests\\test-create-sdk5
npm ERR! command failed
npm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c create typescript @my-test/sdk --exact-o3r-version --package-manager npm --spec-path D:\\a\\otter\\it-tests\\test-create-sdk5\\swagger-spec.yml·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-29T09_39_05_812Z-debug-0.log·
OUTPUT:
,CREATE my-test/sdk/.commitlintrc.json (847 bytes)
CREATE my-test/sdk/.editorconfig (221 bytes)
CREATE my-test/sdk/.openapi-generator-ignore (91 bytes)
CREATE my-test/sdk/.renovaterc.json (886 bytes)
CREATE my-test/sdk/.swcrc (345 bytes)
CREATE my-test/sdk/.versionrc.json (119 bytes)
CREATE my-test/sdk/CONTRIBUTING.md (126 bytes)
CREATE my-test/sdk/jest.config.js (763 bytes)
CREATE my-test/sdk/readme.md (7363 bytes)
CREATE my-test/sdk/tsconfig.build.json (568 bytes)
CREATE my-test/sdk/tsconfig.doc.json (374 bytes)
CREATE my-test/sdk/tsconfig.json (240 bytes)
CREATE my-test/sdk/typedoc.json (301 bytes)
CREATE my-test/sdk/.vscode/settings.json (636 bytes)
CREATE my-test/sdk/configs/tsconfig.test.json (517 bytes)
CREATE my-test/sdk/src/index.ts (81 bytes)
CREATE my-test/sdk/src/api/fixtures.jest.ts (125 bytes)
CREATE my-test/sdk/src/api/index.ts (18 bytes)
CREATE my-test/sdk/src/fixtures/jest/index.ts (42 bytes)
CREATE my-test/sdk/src/fixtures/jest/package.json (363 bytes)
CREATE my-test/sdk/src/helpers/index.ts (18 bytes)
CREATE my-test/sdk/src/helpers/package.json (324 bytes)
CREATE my-test/sdk/src/models/enums.ts (97 bytes)
CREATE my-test/sdk/src/models/index.ts (134 bytes)
CREATE my-test/sdk/src/models/patterns.ts (106 bytes)
CREATE my-test/sdk/src/models/base/enums.ts (99 bytes)
CREATE my-test/sdk/src/models/base/index.ts (18 bytes)
CREATE my-test/sdk/src/models/base/patterns.ts (102 bytes)
CREATE my-test/sdk/src/models/core/enums.ts (50 bytes)
CREATE my-test/sdk/src/models/core/index.ts (51 bytes)
CREATE my-test/sdk/src/models/core/patterns.ts (53 bytes)
CREATE my-test/sdk/src/models/custom/enums.ts (52 bytes)
CREATE my-test/sdk/src/models/custom/index.ts (18 bytes)
CREATE my-test/sdk/src/models/custom/patterns.ts (55 bytes)
CREATE my-test/sdk/src/spec/api-mock.ts (125 bytes)
CREATE my-test/sdk/src/spec/index.ts (106 bytes)
CREATE my-test/sdk/src/spec/operation-adapter.ts (17 bytes)
CREATE my-test/sdk/src/spec/package.json (303 bytes)
CREATE my-test/sdk/src/spec/mock-factory/index.ts (51 bytes)
CREATE my-test/sdk/testing/tsconfig.spec.json (471 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.jest.json (339 bytes)
CREATE my-test/sdk/tsconfigs/tsconfig.source.json (255 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.jest.json (373 bytes)
CREATE my-test/sdk/tsconfigs/esm2020/tsconfig.json (137 bytes)
CREATE my-t
|
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