Repository navigation
Closed
Labels
Description
- Node Version: 14.9.0
- CitGM Version: 7.1.4
- Platform: multiple
Looks like the most recent version of eslint-plugin-jest, v24.0.0, is broken when running in CITGM on our CI:
e.g. https://ci.nodejs.org/job/citgm-smoker/2458/nodes=ubuntu1804-64/testReport/junit/(root)/citgm/eslint_plugin_jest_v24_0_0/
undefinedUsage Error: Unrecognized or legacy configuration settings found: ignoreEngines - run "yarn config -v" to see the list of settings supported in Yarn (in <environment>)
$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds]
I can reproduce locally with eslint-plugin-jest@v24.0.0 but not with eslint-plugin-jest@v23.20.0 (the previous release).
bash-4.2$ node bin/citgm eslint-plugin-jest
info: starting | eslint-plugin-jest
info: lookup | eslint-plugin-jest
info: lookup-found | eslint-plugin-jest
info: eslint-plugin-jest lookup-replace| https://github.com/jest-community/eslint-plugin-jest/archive/1392cf39d8d8fcc5d9bbcc92e3388ac
info: eslint-plugin-jest npm:| Downloading project: https://github.com/jest-community/eslint-plugin-jest/archive/1392cf39d8d8fcc5d9bb
info: eslint-plugin-jest npm:| Project downloaded eslint-plugin-jest-24.0.0.tgz
info: eslint-plugin-jest yarn:| yarn install started
error: failure | Install Failed
error: failing module(s) |
error: module name: | eslint-plugin-jest
error: version: | 24.0.0
error: error: | Install Failed
error: error: | undefinedUsage Error: Unrecognized or legacy configuration settings found: ignoreEngines - run "y
error: |
error: | $ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds]
error: done | The smoke test has failed.
info: duration | test duration: 4732ms
bash-4.2$
cc @SimenB
Activity
SimenB commentedon Sep 7, 2020
Ah sorry, we migrated to yarn v2. Removing
--ignore-enginesshould be enough (they've removed the flag and just warn now)richardlau commentedon Sep 7, 2020
We set
YARN_IGNORE_ENGINESunilaterally since #738 for #737. We can take it out but we'll need to check doing so doesn't affect other modules which useyarn.SimenB commentedon Sep 7, 2020
Hmm. We can run
yarn --version- if v2 do not add the arg?SimenB commentedon Sep 7, 2020
/cc @arcanis thoughts on best way to approach this?
arcanis commentedon Sep 8, 2020
If checking the version is possible that would be the easiest workaround. The second best one (but still significantly less good) would be to modify
yarnPathto refer to a wrapper script that would remove the extraneous configuration keys 🤔fix: don't set YARN_IGNORE_ENGINES env variable
richardlau commentedon Sep 26, 2020
#831 does this.
It also looks like
eslint-plugin-jestfails on big endian platforms (e.g. AIX, LinuxONE) and should be skipped on those (we already skip on AIX):https://ci.nodejs.org/job/citgm-smoker/nodes=rhel7-s390x/2473/testReport/(root)/citgm/eslint_plugin_jest_v24_0_2/
SimenB commentedon Sep 26, 2020
🎉
Wat. I've never seen that error and have no idea where it comes from. I tried grepping in the repo (which has both the yarn script and
node_modules) without finding that string. Googling seems to indicate it comes from some WASM stuff, so I guess it might be some native module?arcanis commentedon Sep 26, 2020
It seems like Emscripten doesn't support big endian systems, and we use it for the zip support 🤔
lookup: skip eslint-plugin-jest on big endian platforms (#834)