Closed Bug 1880391 Opened 2 years ago Closed 2 years ago

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)

defect
Points:
1

Tracking

(firefox125 fixed)

RESOLVED FIXED
124 Branch
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
Flags: needinfo?(hskupin)

The underlying failure here is:

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.

I can reproduce locally. Let me see if I can find a quick fix for now.

Assignee: nobody → hskupin
Severity: -- → S2
Status: NEW → ASSIGNED
Component: CDP → Agent
Priority: -- → P1
Summary: Perma source-test-puppeteer npm ERR! code EUSAGE | npm ERR! Invalid: lock file's @ljharb/through@2.3.11 does not satisfy @ljharb/through@2.3.12 → 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"
Whiteboard: [webdriver:m10]

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?

Flags: needinfo?(hskupin)

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

Flags: needinfo?(mh+mozilla)

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.

Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ba64473ee76b [puppeteer] Upgrade node module ljharb/through to fix bustage. r=webdriver-reviewers,Sasha
Keywords: leave-open

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.

Status: ASSIGNED → RESOLVED
Points: --- → 1
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

(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.

Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: