Skip to content

chore: hold back node-gyp and the commented catalog pins from update --latest - #13257

Merged
zkochan merged 1 commit into
mainfrom
fix-upd
Jul 23, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix-upd

Conversation

@zkochan

@zkochan zkochan commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

Summary

The daily update-lockfile job fails with ERR_PNPM_UNSUPPORTED_ENGINE on [email protected] (run 30036170950). The culprit is node-gyp: it is declared directly in pnpm11/pnpm/package.json, so the catalog-oriented sweep in #13253 missed it. pnpm update --latest bumps it 12.4.0 → 13.0.1, and node-gyp 13 — together with its nopt 10 and which 7 dependencies — requires Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which engineStrict correctly rejects against nodeVersion: 22.13.0.

Overrides would not help here: the bump is of a direct dependency, and pinning which back would still leave node-gyp 13 and nopt 10 failing the same check (the local replay hits [email protected] next).

Verified by replaying the job locally (lockfile deleted, pnpm update --recursive --latest, as refresh-lockfile: true does). With node-gyp held back, resolution completes with no engine errors and node-gyp stays at 12.4.0 — it was the last floor-blocked dependency for today's registry state. The replay then stops at the next, separate blocker: ERR_PNPM_IGNORED_BUILDS for [email protected], the runtime: specifier bug fixed by #13250. This PR therefore does not make the job green on its own — that also needs #13250 to land, ship in an alpha, and have the pin on main bumped to it.

The same replay showed three catalog entries being bumped past pins their own comments say must hold, because only the engine-related ones were listed:

  • @types/node — kept on 22.x to match the supported Node.js floor (replay bumped it to ^26.1.1).
  • bole — kept on 5.x so the published @pnpm/logger's CJS bole shares the globalThis.$$bole output registry under Jest (replay bumped it to ^6.0.6).
  • tempy — kept at 3.0.0, since later versions deadlock the bundled binary at startup (replay bumped it to 3.2.0).

They are added to the list too, so the pins are enforced rather than only documented.

Note: #13250 carries an overlapping list under the older updateConfig.ignoreDependencies key; whichever lands second will need to reconcile with the update.ignoreDeps block on main.

Squash Commit Body

The daily update-lockfile job fails with ERR_PNPM_UNSUPPORTED_ENGINE on
[email protected]. The source is node-gyp, declared directly in
pnpm11/pnpm/package.json and therefore missed by the catalog-oriented sweep
in pnpm/pnpm#13253: `pnpm update --latest` bumps it 12.4.0 -> 13.0.1, and
node-gyp 13 -- along with its nopt 10 and which 7 dependencies -- requires
Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which engineStrict correctly
rejects against nodeVersion 22.13.0.

Replaying the job locally (lockfile deleted, `pnpm update --recursive
--latest`) confirms node-gyp was the last floor-blocked dependency: with it
held back, resolution completes with no engine errors and node-gyp stays at
12.4.0. The replay stops at the next, separate blocker instead --
ERR_PNPM_IGNORED_BUILDS for [email protected], the runtime: specifier fix in
pnpm/pnpm#13250.

The same replay also showed three catalog entries being bumped past pins
their comments say must hold: `@types/node` (22.x, matching the supported
Node.js floor), bole (5.x, so the published `@pnpm/logger`'s CJS bole shares
the output registry under Jest) and tempy (3.0.0, whose later versions
deadlock the bundled binary at startup). Only the engine-related pins were
enforced, so those three are added to the list as well.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
    (Repository configuration only — no code in either stack.)
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. (No published package changes.)

Written by an agent (Claude Code, claude-opus-4-8).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Chores
    • Updated dependency update settings to preserve compatibility with required Node.js versions.
    • Prevented selected development dependencies from being automatically upgraded.

…--latest

The daily update-lockfile job fails with ERR_PNPM_UNSUPPORTED_ENGINE on
[email protected]. The source is node-gyp, declared directly in
pnpm11/pnpm/package.json and therefore missed by the catalog-oriented sweep
in #13253: `pnpm update --latest` bumps it 12.4.0 -> 13.0.1, and
node-gyp 13 -- along with its nopt 10 and which 7 dependencies -- requires
Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which engineStrict correctly
rejects against nodeVersion 22.13.0.

Replaying the job locally (lockfile deleted, `pnpm update --recursive
--latest`) confirms node-gyp was the last floor-blocked dependency: with it
held back, resolution completes with no engine errors and node-gyp stays at
12.4.0. The replay stops at the next, separate blocker instead --
ERR_PNPM_IGNORED_BUILDS for [email protected], the runtime: specifier fix in
#13250.

The same replay also showed three catalog entries being bumped past pins
their comments say must hold: `@types/node` (22.x, matching the supported
Node.js floor), bole (5.x, so the published `@pnpm/logger`'s CJS bole shares
the output registry under Jest) and tempy (3.0.0, whose later versions
deadlock the bundled binary at startup). Only the engine-related pins were
enforced, so those three are added to the list as well.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 23, 2026 21:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Expanded update.ignoreDeps in pnpm-workspace.yaml with four Node.js compatibility-related dependencies and revised the explanatory comment.

Changes

Dependency update configuration

Layer / File(s) Summary
Ignore Node.js compatibility dependencies
pnpm-workspace.yaml
The update.ignoreDeps list now includes @types/node, bole, node-gyp, and tempy; the comment documents their Node.js version constraints and node-gyp’s direct package declaration.

Estimated code review effort: 2 (Simple) | ~5 minutes

Possibly related PRs

  • pnpm/pnpm#13229: Updates related update-lockfile behavior affected by the expanded ignore list.
  • pnpm/pnpm#13250: Adjusts related ignoreDeps configuration for latest dependency updates.
  • pnpm/pnpm#13253: Extends dependency exclusions for Node.js compatibility.

Suggested reviewers: copilot, aqeelat, qodo-code-review

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-upd

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Hold back node-gyp and additional pinned deps from pnpm update --latest

🐞 Bug fix ⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Prevent update-lockfile CI from bumping node-gyp to a Node-unsupported major.
• Enforce existing “comment-only” catalog pins by adding them to update.ignoreDeps.
• Clarify why specific dependencies must be held back during pnpm update --latest.
Diagram

graph TD
  WF["update-lockfile workflow"] --> UPD(["pnpm update --recursive --latest"]) --> REG{{"npm registry"}} --> LOCK[("pnpm-lock.yaml")]
  UPD --> CFG["pnpm-workspace.yaml"]
  UPD --> PKG["pnpm11/pnpm/package.json"]
  CFG -. "update.ignoreDeps" .-> UPD
  UPD --> NODE[["Node.js floor >= 22.13"]]

  subgraph Legend
    direction LR
    _wf["Workflow"] ~~~ _proc(["Command"]) ~~~ _file["Config/File"] ~~~ _ext{{"External"}} ~~~ _db[("Generated")]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Move node-gyp into the catalog (centralize pin)
  • ➕ Makes the holdback visible alongside other catalog pins/comments
  • ➕ Reduces risk of missing direct deps in future sweeps
  • ➖ Requires restructuring dependency management conventions for this workspace
  • ➖ May not match why node-gyp is currently declared directly in pnpm11/pnpm/package.json
2. Use a dedicated lockfile-refresh script with explicit constraints
  • ➕ Can encode richer policy (e.g., engine-aware ceilings, per-package rules) than a static ignore list
  • ➕ More discoverable/traceable than scattered YAML comments
  • ➖ More maintenance and complexity than a simple ignoreDeps list
  • ➖ Adds custom logic to a routine dependency update workflow

Recommendation: Keep the current approach (update.ignoreDeps) for now: it directly addresses the failure mode (pnpm update --latest bypassing “comment-only” pins and bumping node-gyp) with minimal churn and clear documentation. Consider catalog-centralizing node-gyp later if the repo wants a single source of truth for all pinned/ceilinged dependencies.

Files changed (1) +11 / -4

Other (1) +11 / -4
pnpm-workspace.yamlExpand update.ignoreDeps to enforce dependency holdbacks +11/-4

Expand update.ignoreDeps to enforce dependency holdbacks

• Rewords the ignoreDeps comment block to cover both engine-floor holdbacks and the special-case direct dependency (node-gyp). Adds @types/node, bole, tempy, and node-gyp to update.ignoreDeps so pnpm update --latest won’t bump them past intended pins.

pnpm-workspace.yaml

@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The workspace configuration parser and recursive update path consume update.ignoreDeps, including for direct non-catalog dependencies, and all four added names correspond to dependencies covered by the update workflow.

Reviews (1): Last reviewed commit: "chore: hold back node-gyp and the commen..." | Re-trigger Greptile

@zkochan
zkochan merged commit f4ebdb9 into main Jul 23, 2026
22 of 23 checks passed
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@zkochan
zkochan deleted the fix-upd branch July 23, 2026 21:37
@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pnpm-workspace.yaml`:
- Around line 552-574: Update the node-gyp dependency declaration in
pnpm11/pnpm/package.json to an exact 12.3.0 version so pnpm update --latest
cannot resolve it to 13.x. Keep the existing update.ignoreDeps entry unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 49253a31-63d4-4222-b709-64ca5f2995c4

📥 Commits

Reviewing files that changed from the base of the PR and between 3b1c181 and b54ee5a.

📒 Files selected for processing (1)
  • pnpm-workspace.yaml

Comment thread pnpm-workspace.yaml
Comment on lines +552 to +574
# Dependencies deliberately held back, which `pnpm update --latest` (run by the
# update-lockfile workflow) would otherwise bump. Most of them are packages
# whose newer versions require a Node.js version above pnpm's supported floor
# (>=22.13); the comment at each catalog entry above records the reason. node-gyp
# is not in the catalog: it is declared directly in pnpm11/pnpm/package.json, and
# node-gyp 13 (with its nopt 10 and which 7 dependencies) requires Node.js
# ^22.22.2 || ^24.15.0 || >=26.0.0.
update:
ignoreDeps:
- '@babel/core'
- '@babel/plugin-transform-explicit-resource-management'
- '@types/node'
- bin-links
- bole
- cspell
- ini
- libnpmpublish
- node-gyp
- normalize-package-data
- npm-packlist
- npm-registry-fetch
- ssri
- tempy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu

rg -n -C 3 'pnpm[[:space:]]+update|update-lockfile' \
  --glob '*.yml' --glob '*.yaml' --glob '*.json' .

rg -n -C 2 '"node-gyp"[[:space:]]*:' \
  --glob 'package.json' --glob 'pnpm-lock.yaml' .

Repository: pnpm/pnpm

Length of output: 1064


Pin node-gyp exactly in pnpm11/pnpm/package.json.

pnpm update --latest can resolve node-gyp to 13.x when only the caret ^12.3.0 is declared, while update.ignoreDeps only makes pnpm update skip unscoped updates; it does not enforce this version constraint. Add an exact node-gyp version here or make explicit use of that constraint in the workflow.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpm-workspace.yaml` around lines 552 - 574, Update the node-gyp dependency
declaration in pnpm11/pnpm/package.json to an exact 12.3.0 version so pnpm
update --latest cannot resolve it to 13.x. Keep the existing update.ignoreDeps
entry unchanged.

Source: Path instructions

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 this pull request may close these issues.

2 participants