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-yarn -- --package-manager yarn --skip-confirmation --yarn-version 4.1.0
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
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-az844-627.(none)')
Option '--' has been specified multiple times. The value '--no-create-application' will be used.
- Determining package manager...
ℹ Using package manager: yarn
- Loading package information from registry...
✔ Package information loaded.
No terminal detected. '--skip-confirmation' can be used to bypass installation confirmation. Ensure package name is correct prior to '--skip-confirmation' option usage.
Command aborted.
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-yarn --package-manager yarn --skip-confirmation --yarn-version 4.1.0
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_58_406Z-debug-0.log
OUTPUT:
,
&BPPPB & &BPGB&
#Y7!!!!!J# &#BGP5YYJJ??????????JJYY5PG#& P7!!!!7JG
#!!!!!!!!!7Y5J?7!!!!!!!!!!!!!!!!!!!!!!!!!!!7?JPB5!!!!!!!!!G
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~5
BJ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?5
&?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!7B
G?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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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!!!!!
|
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-bdIg7K\angular-errors.log" for further details.
OUTPUT:
,,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-bdIg7K\angular-errors.log" for further details.
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:
An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-KkImjn\angular-errors.log" for further details.
OUTPUT:
,,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-KkImjn\angular-errors.log" for further details.
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-SVp4JQ\angular-errors.log" for further details.
OUTPUT:
,,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-SVp4JQ\angular-errors.log" for further details.
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-5NkDsy\angular-errors.log" for further details.
OUTPUT:
,,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-5NkDsy\angular-errors.log" for further details.
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-DPybaB\angular-errors.log" for further details.
OUTPUT:
,,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-DPybaB\angular-errors.log" for further details.
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/test-helpers/src/utilities/package-manager.ts#L114
Command failed: yarn ng g @o3r/core:store-entity-async --store-name test-entity-async --model-name Bound --model-id-prop-name id --project-name test-app
STDERR:
No destination directory configured.
You can file new issues by selecting from our issue templates (https://github.com/AmadeusITGroup/otter/issues/new/choose) and filling out the issue template.
To facilitate the reproduction of the issue, do not forget to provide us your environment information:
- User Agent Architecture: x64
- User Agent Platform: win32
- User Agent Version: 10.0.20348
- Node Version: 20.11.1
- Package Manager Name: yarn
- Package Manager Version: 4.1.0
- Otter Version: 999.0.0
OUTPUT:
, You can activate it at any time by running `ng add @o3r/telemetry`.
,No destination directory configured.
You can file new issues by selecting from our issue templates (https://github.com/AmadeusITGroup/otter/issues/new/choose) and filling out the issue template.
To facilitate the reproduction of the issue, do not forget to provide us your environment information:
- User Agent Architecture: x64
- User Agent Platform: win32
- User Agent Version: 10.0.20348
- Node Version: 20.11.1
- Package Manager Name: yarn
- Package Manager Version: 4.1.0
- Otter Version: 999.0.0
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:38: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:·
OUTPUT:
,Usage Error: Workspace 'test-app' not found. Did you mean any of the following:
- o3r-project-with-app-yarn?·
$ yarn workspace <workspaceName> <commandName> ...
,"
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-aTYAui\angular-errors.log" for further details.
OUTPUT:
,,An unhandled exception occurred: Collection "@o3r/core" cannot be resolved.
See "C:\Users\RUNNER~1\AppData\Local\Temp\ng-aTYAui\angular-errors.log" for further details.
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:·
OUTPUT:
,Usage Error: Workspace 'test-app' not found. Did you mean any of the following:
- o3r-project-with-app-yarn?·
$ yarn workspace <workspaceName> <commandName> ...
,"
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