Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: dependencies CI job is sometimes failing #685

Closed
not-my-profile opened this issue Mar 16, 2023 · 0 comments · Fixed by #687
Closed

ci: dependencies CI job is sometimes failing #685

not-my-profile opened this issue Mar 16, 2023 · 0 comments · Fixed by #687

Comments

@not-my-profile
Copy link
Contributor

not-my-profile commented Mar 16, 2023

The lerna bootstrap command part of the dependencies CI job is currently sometimes failing with the error message:

npm ERR! code 1
npm ERR! path /home/circleci/axe-core-npm/packages/webdriverio/node_modules/chromedriver
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Current existing ChromeDriver binary is unavailable, proceeding with download and extraction.
npm ERR! Downloading from file:  https://chromedriver.storage.googleapis.com/109.0.5414.74/chromedriver_linux64.zip
npm ERR! Saving to file: /tmp/109.0.5414.74/chromedriver/chromedriver_linux64.zip
npm ERR! Received 1040K...
npm ERR! Received 2080K...
npm ERR! Received 3120K...
npm ERR! Received 4160K...
npm ERR! Received 5200K...
npm ERR! Received 6240K...
npm ERR! Received 7129K total.
npm ERR! Extracting zip contents to /tmp/109.0.5414.74/chromedriver.
npm ERR! ChromeDriver installation failed Error: Error extracting archive: Error: unexpected end of file
npm ERR!     at extractDownload (/home/circleci/axe-core-npm/packages/webdriverio/node_modules/chromedriver/install.js:309:11)
npm ERR!     at async install (/home/circleci/axe-core-npm/packages/webdriverio/node_modules/chromedriver/install.js:71:7)

This appears to be some unreliable CI fluke since the job failed and succeeded once for the exact same commit:

image

I am not sure what exactly is causing this CI failure ... it doesn't happen locally for me. Changing the command to npm run bootstrap -- --ci || (md5sum /tmp/109.0.5414.74/chromedriver/chromedriver_linux64.zip; ls -l /tmp/109.0.5414.74/chromedriver; false) revealed that the zip extraction indeed is successful ... which makes the occurrence of the "Error extracting archive" all the more puzzling.

Inserting a cd packages/webdriverio && npm ci before the lerna bootstrap call fixed the problem, showing that this indeed appears to be a lerna bug. Since lerna bootstrap is deprecated anyway it probably makes sense to switch to NPM workspaces.

I have two PRs that are affected by this:

@not-my-profile not-my-profile changed the title ci: dependencies CI job is failing after force push ci: dependencies CI job is sometimes failing Mar 16, 2023
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 16, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 16, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 16, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 16, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 16, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 16, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 16, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

Note that this commit intentionally doesn't yet remove
packages/playwright/package-lock.json because that file
is still needed by the playwright CI job since it has
to do an `npm ci` with Node v14, which comes with npm 6.14,
which doesn't yet support NPM workspaces.  Once we drop support for
@wdyio/sync we can update that job and remove that lock file.

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 17, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 21, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Mar 21, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Jun 30, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
not-my-profile added a commit to not-my-profile/axe-core-npm that referenced this issue Jun 30, 2023
The `lerna bootstrap` command is deprecated[1]
and resulted in a very weird CI failure (dequelabs#685).

This commit switches the repository to instead use
NPM workspaces.[2]

[1]: lerna/lerna#3410
[2]: https://docs.npmjs.com/cli/v7/using-npm/workspaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant