feat(it-tests): test schematics with yarn 1 #7339
Annotations
10 errors and 1 warning
Test:
packages/@o3r/test-helpers/src/utilities/package-manager.ts#L114
Command failed: npm create @o3r@999.0.0 o3r-project-with-app-yarn1 -- --package-manager yarn --skip-confirmation --yarn-version 1.22.19
STDERR:
npm WARN exec The following package was not found and will be installed: @o3r/[email protected]
- Installing packages (yarn)...
✔ Packages installed successfully.
warning: in the working copy of '.npmrc', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.yarn/releases/yarn-1.22.19.cjs', LF will be replaced by CRLF the next time Git touches it
Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'runneradmin@fv-az731-856.(none)')
warning " > @o3r/[email protected]" has unmet peer dependency "type-fest@^4.10.2".
error Couldn't find the binary ng
npm ERR! code 3
npm ERR! path D:\a\otter\it-tests
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create o3r-project-with-app-yarn1 --package-manager yarn --skip-confirmation --yarn-version 1.22.19
npm ERR! A complete log of this run can be found in: D:\a\otter\otter\.cache\test-app\npm-cache\_logs\2024-03-01T14_09_38_084Z-debug-0.log
OUTPUT:
,
&BPPPB & &BPGB&
#Y7!!!!!J# &#BGP5YYJJ??????????JJYY5PG#& P7!!!!7JG
#!!!!!!!!!7Y5J?7!!!!!!!!!!!!!!!!!!!!!!!!!!!7?JPB5!!!!!!!!!G
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~5
BJ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?5
&?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!7B
G?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!75&
#J!!!!!!!!!!!!!!!!!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!!!!!75&
BY?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!7JG&
#PYJ?7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!77?YPB&
&BPPB &Y7JYYYJ7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!7?YYYJ??B
#?!!!!?P B7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!5
Y!!!!!!!?B P!!!!!!!!7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Y
Y!!!!!!!!!Y& P!!!!!!!!!5Y!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?Y7!!!!!!!!Y
5!!!!!!!!!!7G G!!!!!!!!!!75GY7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?PP?!!!!!!!!!!5
#!!!!!!!!!!!!Y!!!!!!!!!!!!?5GPY7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!7?5GPJ!!!!!!!!!!!!!G
J!!!!!!!!!!!7&Y!!!!!!!!!!!!!!!7J5GPY?7!!!!!!!!!!!!!!!!!!!!!!7JPGPJ7!!!!!!!!!!!!!!!7&
#7!!!!!!!!!!5#!!!!!!!!!!!!!!!!!!!!?Y5PPY?!!!!!!!!!!!!!!!7J5PPY?7!!!!!!!!!!!!!!!!!!!5
G!!!!!!!!!7&Y!!!!!!!
|
Test:
packages/@o3r/extractors/schematics/index.it.spec.ts#L41
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: yarn workspace test-app build
STDERR:
warning package.json: \"dependencies\" has dependency \"@o3r/extractors\" with range \"999.0.0\" that collides with a dependency in \"devDependencies\" of the same name with version \"~999.0.0\"
error Cannot find the root of your workspace - are you sure you're currently in a workspace?·
OUTPUT:
,yarn workspace v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
,warning package.json: \"dependencies\" has dependency \"@o3r/extractors\" with range \"999.0.0\" that collides with a dependency in \"devDependencies\" of the same name with version \"~999.0.0\"
error Cannot find the root of your workspace - are you sure you're currently in a workspace?
"
112 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports
113 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
> 114 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`);
| ^
115 | }
116 | }
117 |
at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerWorkspaceRun (packages/@o3r/test-helpers/src/utilities/package-manager.ts:197:10)
at packageManagerRunOnProject (packages/@o3r/test-helpers/src/utilities/package-manager.ts:208:26)
at packages/@o3r/extractors/schematics/index.it.spec.ts:41:44
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/@o3r/extractors/schematics/index.it.spec.ts:41:113)
at Object.<anonymous> (schematics/index.it.spec.ts:41:113)
|
Test:
packages/@o3r/test-helpers/src/utilities/package-manager.ts#L114
Command failed: yarn ng g @o3r/core:component test-component --project-name test-app --use-localization false
STDERR:
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-O5ouVY\angular-errors.log" for further details.
error Command failed with exit code 127.
OUTPUT:
,yarn run v1.22.19
$ ng g @o3r/core:component test-component --project-name test-app --use-localization false
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-O5ouVY\angular-errors.log" for further details.
error Command failed with exit code 127.
at execCmd (../test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerExec (../test-helpers/src/utilities/package-manager.ts:146:10)
at Object.<anonymous> (schematics/index.it.spec.ts:36:23)
|
Test:
packages/@o3r/test-helpers/src/utilities/package-manager.ts#L114
Command failed: yarn ng g @o3r/core:component test-component --use-component-fixtures false --component-structure full --project-name test-app
STDERR:
warning package.json: "dependencies" has dependency "@o3r/testing" with range "999.0.0" that collides with a dependency in "devDependencies" of the same name with version "~999.0.0"
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-Xz7fpO\angular-errors.log" for further details.
error Command failed with exit code 127.
OUTPUT:
,yarn run v1.22.19
$ ng g @o3r/core:component test-component --use-component-fixtures false --component-structure full --project-name test-app
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
,warning package.json: "dependencies" has dependency "@o3r/testing" with range "999.0.0" that collides with a dependency in "devDependencies" of the same name with version "~999.0.0"
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-Xz7fpO\angular-errors.log" for further details.
error Command failed with exit code 127.
at execCmd (../test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerExec (../test-helpers/src/utilities/package-manager.ts:146:10)
at Object.<anonymous> (schematics/index.it.spec.ts:36:23)
|
Test:
packages/@o3r/test-helpers/src/utilities/package-manager.ts#L114
Command failed: yarn ng g @o3r/core:component test-component --project-name test-app --use-otter-config false
STDERR:
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-rQCWho\angular-errors.log" for further details.
error Command failed with exit code 127.
OUTPUT:
,yarn run v1.22.19
$ ng g @o3r/core:component test-component --project-name test-app --use-otter-config false
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-rQCWho\angular-errors.log" for further details.
error Command failed with exit code 127.
at execCmd (../test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerExec (../test-helpers/src/utilities/package-manager.ts:146:10)
at Object.<anonymous> (schematics/index.it.spec.ts:36:23)
|
Test:
packages/@o3r/test-helpers/src/utilities/package-manager.ts#L114
Command failed: yarn ng g @o3r/core:component test-component --activate-dummy --use-rules-engine false --project-name test-app
STDERR:
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-UcexDh\angular-errors.log" for further details.
error Command failed with exit code 127.
OUTPUT:
,yarn run v1.22.19
$ ng g @o3r/core:component test-component --activate-dummy --use-rules-engine false --project-name test-app
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-UcexDh\angular-errors.log" for further details.
error Command failed with exit code 127.
at execCmd (../test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerExec (../test-helpers/src/utilities/package-manager.ts:146:10)
at Object.<anonymous> (schematics/index.it.spec.ts:36:23)
|
Test:
packages/@o3r/test-helpers/src/utilities/package-manager.ts#L114
Command failed: yarn ng g @o3r/core:component test-component --use-otter-analytics false --project-name test-app
STDERR:
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-EeNzwi\angular-errors.log" for further details.
error Command failed with exit code 127.
OUTPUT:
,yarn run v1.22.19
$ ng g @o3r/core:component test-component --use-otter-analytics false --project-name test-app
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-EeNzwi\angular-errors.log" for further details.
error Command failed with exit code 127.
at execCmd (../test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerExec (../test-helpers/src/utilities/package-manager.ts:146:10)
at Object.<anonymous> (schematics/index.it.spec.ts:35:23)
|
Test:
packages/@o3r/components/schematics/index.it.spec.ts#L33
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: yarn workspace test-app build
STDERR:
error Cannot find the root of your workspace - are you sure you're currently in a workspace?·
OUTPUT:
,yarn workspace v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
,error Cannot find the root of your workspace - are you sure you're currently in a workspace?
"
112 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports
113 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
> 114 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`);
| ^
115 | }
116 | }
117 |
at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerWorkspaceRun (packages/@o3r/test-helpers/src/utilities/package-manager.ts:197:10)
at packageManagerRunOnProject (packages/@o3r/test-helpers/src/utilities/package-manager.ts:208:26)
at packages/@o3r/components/schematics/index.it.spec.ts:33:44
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/@o3r/components/schematics/index.it.spec.ts:33:113)
at Object.<anonymous> (schematics/index.it.spec.ts:33:113)
|
Test:
packages/@o3r/test-helpers/src/utilities/package-manager.ts#L114
Command failed: yarn ng g @o3r/core:component --defaults true test-component --use-otter-theming false --project-name test-app
STDERR:
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-6AxFIr\angular-errors.log" for further details.
error Command failed with exit code 127.
OUTPUT:
,yarn run v1.22.19
$ ng g @o3r/core:component --defaults true test-component --use-otter-theming false --project-name test-app
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-6AxFIr\angular-errors.log" for further details.
error Command failed with exit code 127.
at execCmd (../test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerExec (../test-helpers/src/utilities/package-manager.ts:146:10)
at Object.<anonymous> (schematics/index.it.spec.ts:35:23)
|
Test:
packages/@o3r/design/schematics/index.it.spec.ts#L33
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: yarn workspace test-app build
STDERR:
error Cannot find the root of your workspace - are you sure you're currently in a workspace?·
OUTPUT:
,yarn workspace v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
,error Cannot find the root of your workspace - are you sure you're currently in a workspace?
"
112 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports
113 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
> 114 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`);
| ^
115 | }
116 | }
117 |
at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:114:11)
at packageManagerWorkspaceRun (packages/@o3r/test-helpers/src/utilities/package-manager.ts:197:10)
at packageManagerRunOnProject (packages/@o3r/test-helpers/src/utilities/package-manager.ts:208:26)
at packages/@o3r/design/schematics/index.it.spec.ts:33:44
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/@o3r/design/schematics/index.it.spec.ts:33:113)
at Object.<anonymous> (schematics/index.it.spec.ts:33:113)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: stCarolas/[email protected], actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading