Perma Puppeteer failure: "npm ERR! code EUSAGE | npm ERR! Invalid: lock file's @ljharb/through@2.3.11 does not satisfy @ljharb/through@2.3.12 "
Categories
(Remote Protocol :: Agent, defect, P1)
Tracking
(firefox125 fixed)
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: CosminS, Assigned: whimboo)
Details
(Keywords: intermittent-failure, regression, regressionwindow-wanted, Whiteboard: [webdriver:m10])
Attachments
(1 file)
These are failing even on previous green runs that points to an off-tree issue.
Failure log: https://treeherder.mozilla.org/logviewer?job_id=447302612&repo=autoland
Raw log: https://firefoxci.taskcluster-artifacts.net/Azgz4CZGTnCid7vtvZeZsw/0/public/logs/live_backing.log
Henrik, could you please have a look over this one? Thank you.
[task 2024-02-14T21:45:46.008Z] npm WARN EBADENGINE }
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! code EUSAGE
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR!
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR!
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! Invalid: lock file's @ljharb/through@2.3.11 does not satisfy @ljharb/through@2.3.12
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR!
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! Clean install a project
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR!
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! Usage:
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! npm ci
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR!
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! Options:
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR!
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR!
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! Run "npm help ci" for more info
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! A complete log of this run can be found in:
[task 2024-02-14T21:45:46.008Z]
[task 2024-02-14T21:45:46.008Z] npm ERR! /builds/worker/.npm/_logs/2024-02-14T21_45_44_064Z-debug-0.log
[task 2024-02-14T21:45:46.008Z]
[taskcluster 2024-02-14 21:45:48.132Z] === Task Finished ===
[taskcluster 2024-02-14 21:45:48.561Z] Unsuccessful task run with exit code: 1 completed in 249.068 seconds
| Assignee | ||
Comment 1•2 years ago
|
||
The underlying failure here is:
npm cican only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file withnpm installbefore continuing.
I can reproduce locally. Let me see if I can find a quick fix for now.
| Assignee | ||
Comment 2•2 years ago
|
||
The last release of the related npm package https://www.npmjs.com/package/@ljharb/through was 21 days ago. So not sure why it started failing now?
Upgrading our package-lock.json file to version 2.3.12 fixes it. Maybe the problem is that this npm package is not listed in Puppeteer's package.json file?
| Assignee | ||
Comment 3•2 years ago
|
||
Most likely the problem here comes from recent landings of node changes on bug 1879465, bug 1879465 or bug 1879466. Whereby none of these changed the node version for the Puppeteer job yet.
So the regression started here:
https://treeherder.mozilla.org/jobs?repo=mozilla-central&searchStr=pup&revision=d6732fe2041a1e6da2c6d9d7d02ca4e327319c91
| Assignee | ||
Comment 4•2 years ago
|
||
| Assignee | ||
Comment 5•2 years ago
|
||
Note that the attached patch will fix the bustage but the EBADENGINE warning is still visible in the logs:
https://treeherder.mozilla.org/logviewer?job_id=447406043&repo=try&lineNumber=96
But maybe this only exists because some packages want Node 18 and it will be solved when we do this upgrade on bug 1875239.
| Assignee | ||
Updated•2 years ago
|
Comment 7•2 years ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 10•2 years ago
|
||
The underlying failure is fixed and the EBADENGINE warning doesn't cause issues. I'm closing the bug but will keep the need-info request for Mike.
Comment 11•2 years ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+1] from comment #3)
Most likely the problem here comes from recent landings of node changes on bug 1879465, bug 1879465 or bug 1879466. Whereby none of these changed the node version for the Puppeteer job yet.
So the regression started here:
https://treeherder.mozilla.org/jobs?repo=mozilla-central&searchStr=pup&revision=d6732fe2041a1e6da2c6d9d7d02ca4e327319c91
Considering that push had nothing node related in it, my guess is external forces (e.g. npm registry). And guess what, retriggering the green job on the parent push returned the same failure. So it had nothing to do with something in tree.
Description
•