You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e2e tests have been failing the 16th/17th of November
Error is revealed when running the meta-tx.test.ts test
FAIL e2e/tests/meta-tx.test.ts
● Test suite failed to run
e2e/tests/meta-tx.test.ts:30:30 - error TS2307: Cannot find module '../../contracts/protocol-contracts/scripts/domain/EvaluationMethod' or its corresponding type declarations.
30 import EvaluationMethod from "../../contracts/protocol-contracts/scripts/domain/EvaluationMethod";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
e2e/tests/meta-tx.test.ts:31:23 - error TS2307: Cannot find module '../../contracts/protocol-contracts/scripts/domain/TokenType' or its corresponding type declarations.
31 import TokenType from "../../contracts/protocol-contracts/scripts/domain/TokenType";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
However the cause of this error can be found before in the logs:
Npm postinstall step is failing when preparing the test environment:
> [email protected] e2e:suite:default
> ./e2e/run-e2e-suite.sh
Install protocol and dependencies...
npm WARN deprecated [email protected]: ganache-core is now ganache; visit https://trfl.io/g7 for details
npm WARN deprecated [email protected]: ganache-core is now ganache; visit https://trfl.io/g7 for details
npm WARN skipping integrity check for git dependency ssh://[email protected]/ProjectOpenSea/seaport.git
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: testrpc has been renamed to ganache-cli, please use this package from now on.
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated @ensdomains/[email protected]: Please use @ensdomains/ens-contracts
npm WARN deprecated @ensdomains/[email protected]: Please use @ensdomains/ens-contracts
npm ERR! code 1
npm ERR! path /home/runner/work/core-components/core-components/contracts/node_modules/postinstall-postinstall
npm ERR! command failed
npm ERR! command sh -c -- node ./run.js
npm ERR! error This project's package.json defines "packageManager": "yarn@npm@8.[11](https://github.com/bosonprotocol/core-components/actions/runs/6903347318/job/18786355111#step:10:12).0". However the current global version of Yarn is 1.22.21.
npm ERR!
npm ERR! Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and [14](https://github.com/bosonprotocol/core-components/actions/runs/6903347318/job/18786355111#step:10:15).19.
npm ERR! Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
npm ERR! node:child_process:935
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Command failed: yarn run postinstall
npm ERR! error This project's package.json defines "packageManager": "yarn@[email protected]". However the current global version of Yarn is 1.22.21.
npm ERR!
npm ERR! Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from [16](https://github.com/bosonprotocol/core-components/actions/runs/6903347318/job/18786355111#step:10:17).9 and 14.[19](https://github.com/bosonprotocol/core-components/actions/runs/6903347318/job/18786355111#step:10:20).
npm ERR! Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
npm ERR!
Problem has been worked around using the previous version (20.02) of the ubuntu image for the pipeline.
(
e2e tests have been failing the 16th/17th of November
Error is revealed when running the meta-tx.test.ts test
However the cause of this error can be found before in the logs:
Npm postinstall step is failing when preparing the test environment:
Problem has been worked around using the previous version (20.02) of the ubuntu image for the pipeline.
(
core-components/.github/workflows/ci.yaml
Line 41 in a10349b
However, a proper fix should be found to avoid staying stuck on this version
The text was updated successfully, but these errors were encountered: