Skip to content

fix: ignore the version of a lone project in the dependency-status check - #17561

Merged
zkochan merged 3 commits into
mainfrom
fix-17560
Nov 2, 2026
Merged

zkochan merged 3 commits into
mainfrom
fix-17560

Conversation

@zkochan

@zkochan zkochan commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Bumping only the version of a single-project repository made verifyDepsBeforeRun report "The workspace structure has changed since last install" and spawn an install before the script. In pnpm v12 the install fast path re-resolved too.

The dependency-status check compares each recorded project's name and version with its manifest. A project's version decides only how other workspace projects' dependencies resolve to it, so the version is now compared only when the workspace has more than one project, or when linkWorkspacePackages is deep (a transitive dependency may then resolve to the lone project). The name, the project set, and every other check stay as they were. Multi-project workspaces keep the strict comparison: a dependent's workspace:^1 or a linked range can stop matching after a bump.

Fixed in both stacks:

  • v12: project_structure_matches in pnpm/crates/package-manager/src/optimistic_repeat_install/settle.rs (shared by the run gate, the install fast path, and the relocation check). It now takes the config to read linkWorkspacePackages.
  • v11: findWorkspaceStructureIssue in pnpm11/deps/status. v11 reaches this check only when a pnpm-workspace.yaml exists, as in the issue's repro.

Closes #17560

Verification

  • The issue's repro on a fixed v12 debug build: the warn run prints no warning, the default run starts no install.
  • New Rust unit tests: a lone project's bump passes both the install fast path and the run gate (each checked against the original state), and is refused under deep linking and in a two-project workspace. Each gate's assertion and the deep rule were checked by sabotage.
  • New v11 unit test and e2e test (singleProjectWorkspace.ts). The e2e fails on a bundle patched to always compare versions.
  • pnpm-package-manager optimistic-repeat-install tests (213), pnpm-cli verify_deps_before_run (49), @pnpm/deps.status (188), v11 verifyDepsBeforeRun e2e (37): all pass.

Squash Commit Body

The dependency-status check compared each workspace project's recorded
name and version with its manifest, so bumping the version of a
single-project repository made verifyDepsBeforeRun report drift and
spawn an install, and made the install fast path re-resolve.

A project's version only decides how other projects' dependencies
resolve to it, so it is compared only when the workspace has several
projects, or when linkWorkspacePackages is deep and a transitive
dependency may resolve to the lone project. The name stays compared
everywhere. Fixed in both the v11 and
v12 dependency-status checks.

Closes pnpm/pnpm#17560

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes
    are implemented in every affected version.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

🤖 Generated with Claude Code


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

Summary by CodeRabbit

  • Bug Fixes
    • In a single-project workspace, changing only the project version no longer triggers an out-of-sync dependency warning or requires an install before running a script when workspace linking is not set to deep.
    • With deep workspace linking enabled, version changes are recognized as workspace structure changes.
    • Version changes in multi-project workspaces continue to be recognized as workspace structure changes.

The dependency-status check compared each workspace project's recorded
name and version with its manifest, so bumping the version of a
single-project repository made `verifyDepsBeforeRun` report drift and
spawn an install, and made the install fast path re-resolve.

A project's version only decides how other projects' dependencies
resolve to it, so it is compared only when the workspace has several
projects. The name stays compared everywhere.

Fixes #17560

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between d902ed7 and f879c18.

Files selected for processing: 10
  • .changeset/lone-project-version-bump.md
  • pnpm/crates/package-manager/src/optimistic_repeat_install.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/deps_status.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/freshness.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/relocation.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/relocation/tests.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/settle.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/tests/workspace.rs
  • pnpm11/deps/status/src/findWorkspaceStructureIssue.ts
  • pnpm11/deps/status/test/findWorkspaceStructureIssue.test.ts
Files skipped from review as they are similar to previous changes: 1
  • .changeset/lone-project-version-bump.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

Walkthrough

The dependency-status and optimistic repeat-install checks now compare project versions only for multi-project workspaces or when linkWorkspacePackages is Deep. Tests cover version changes, project renames, and script execution after a single-project version-only change.

Changes: Single-project version checks

Layer / File(s) Summary
Dependency status and script verification
pnpm11/deps/status/src/findWorkspaceStructureIssue.ts, pnpm11/deps/status/test/findWorkspaceStructureIssue.test.ts, pnpm11/pnpm/test/verifyDepsBeforeRun/singleProjectWorkspace.ts, .changeset/lone-project-version-bump.md
The dependency-status check compares versions for multiple projects or when deep linking is enabled. Tests cover single-project and multi-project version changes, a project rename, and script execution after a version-only change. The changeset records patch releases for @pnpm/deps.status, pnpm, and pacquet.
Optimistic repeat-install checks
pnpm/crates/package-manager/src/optimistic_repeat_install/settle.rs, pnpm/crates/package-manager/src/optimistic_repeat_install/{optimistic_repeat_install.rs,deps_status.rs,freshness.rs,relocation.rs}, pnpm/crates/package-manager/src/optimistic_repeat_install/tests/workspace.rs, pnpm/crates/package-manager/src/optimistic_repeat_install/relocation/tests.rs
The repeat-install check compares versions for multiple projects or when workspace linking is Deep. Configuration is passed into workspace-state relocation and structure checks. Tests cover single-project version changes under different linking modes and a multi-project version change.

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

Change: Bug fix · Severity of issue fixed: Medium

Assessment against linked issues

Objective Addressed Explanation
Prevent a version-only change to a single private root project from triggering a dependency-state warning or pre-script install [#17560] ✅

Possibly related issues

  • pnpm/pnpm#17560 — The change addresses the reported single-project version-only check while retaining version checks for multiple projects and deep workspace linking.

Suggested labels: product: pnpm@11, product: pacquet

Suggested reviewers: kairosci, efedurmaz16

Merge Risk: Minimal · up to f879c

A version-only change to a single-project workspace no longer triggers a spurious outdated-dependencies warning or install. Multi-project workspaces and deep workspace linking keep strict version comparison. No actionable merge-blocking risk remains.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration.

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

@garnet-runtime-review

garnet-runtime-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Runtime behavior changed

1 job changed
1 job recorded at the kernel (Linux x86_64)

At f879c18, compared with your previous push 9d24536 · the PR base 9266b41 has no record
Commit Change to this head
head f879c18
fix-17560 · run 41412725690
previous push 9d24536
run 41349762925
test now reaches blacksmith.blob.core.windows[.]net
test no longer reaches blacksmith.blob.core.windows[.]net
test no longer reaches registry.npmjs[.]org
PR base 9266b41
main · no record
not compared
TS CI / test · −1
 ↳ pn › node no longer reaches npm.jsr[.]io
  Runner.Worker › … (5) › pn
  └─ node
-    └─ ○ npm.jsr[.]io
Runner activity outside your workflow · +5 −7 · not counted
  systemd
    ├─ chronyd
-   │  ├─ ○ 170.187.142[.]180
-   │  ├─ ○ 172.233.157[.]223
-   │  ├─ ○ 216.250.115[.]174
-   │  ├─ ○ 45.12.52[.]138
+   │  ├─ ○ 162.244.81[.]139
+   │  ├─ ○ 198.60.22[.]240
+   │  ├─ ○ 23.93.251[.]54
+   │  └─ ○ 96.60.247[.]29
    ├─ … (1)
    │  └─ nginx
-   │     ├─ ○ 140.82.114[.]22
-   │     ├─ ○ results-receiver.actions[.]githubusercontent (github infra)
-   │     ├─ ○ results-receiver.actions[.]githubusercontent (github infra)
+   │     └─ ○ 140.82.114[.]21
    ├─ snapd
    │  └─ ○ api.snapcraft[.]io
    └─ systemd-resolve
       └─ ○ 8.8.8[.]8

10 other destinations, nothing new · Full record in Garnet ↗


How to read this
Runner.Worker     ← process on a path
└─ curl           ← process that acted
   └─ ○ example[.]com ← observed action

Read down: what ran, then what it reached. + only in this commit · − only in the compared run. Capture is best-effort. · Docs ↗

Runtime behavior, recorded by Garnet. Add it to your CI ↗

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     13.2±0.10ms    28.4 MB/sec    1.02     13.5±0.17ms    27.7 MB/sec
packument/parse                                  1.05     47.5±0.61µs  1396.8 MB/sec    1.00     45.3±0.50µs  1463.3 MB/sec
tarball/download_dependency                      1.07  962.3±117.23µs     4.4 MB/sec    1.00   898.4±77.26µs     4.7 MB/sec
tarball_batch/cold_store_many_medium_tarballs    1.05    230.6±4.10ms 69.4 KElem/sec    1.00    220.4±5.92ms 72.6 KElem/sec
version_pick/repeated_ranges_file                1.01      4.8±0.07ms  6.5 KElem/sec    1.00      4.7±0.03ms  6.6 KElem/sec
version_pick/repeated_ranges_raw                 1.02      4.8±0.11ms  6.5 KElem/sec    1.00      4.7±0.03ms  6.6 KElem/sec
workspace_resolution/hoist_heavy                 1.01    262.0±1.90ms        ? ?/sec    1.00    258.5±2.27ms        ? ?/sec
workspace_sort/chained_projects                  1.00     13.3±0.20ms        ? ?/sec    1.26     16.7±0.77ms        ? ?/sec

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Same-run regression check

HEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval.

Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.

Scenario Engine main median HEAD median Change Tolerance Result
isolated-fresh-restore-cold-cache-cold-store pacquet 2255.20 ms 2241.49 ms -0.6% 112.76 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1435.37 ms 1372.60 ms -4.4% 71.77 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 289.93 ms 289.50 ms -0.1% 14.50 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr 303.62 ms 299.93 ms -1.2% 15.18 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet 8.05 ms 8.23 ms 2.2% 2.00 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr 8.13 ms 7.98 ms -1.9% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 13.50 ms 16.32 ms 20.9% 2.00 ms Inconclusive (overlapping samples)
isolated-repeat-install-cold-cache-hot-store pnpr 15.97 ms 15.85 ms -0.7% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2545.34 ms 2612.34 ms 2.6% 127.27 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr 1497.88 ms 1532.89 ms 2.3% 74.89 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 778.64 ms 694.52 ms -10.8% 38.93 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 442.50 ms 504.77 ms 14.1% 22.12 ms Inconclusive (overlapping samples)
isolated-fresh-install-cold-cache-hot-store pacquet 1708.44 ms 1714.37 ms 0.3% 85.42 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 346.42 ms 352.21 ms 1.7% 17.32 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 256.00 ms 257.32 ms 0.5% 12.80 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 90.52 ms 89.29 ms -1.4% 4.53 ms Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet 202.30 ms 198.10 ms -2.1% 10.11 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 88.40 ms 92.49 ms 4.6% 4.42 ms Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet 90.83 ms 90.87 ms 0.0% 4.54 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4414.89 ms 4428.13 ms 0.3% 220.74 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3505.44 ms 3491.54 ms -0.4% 175.27 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 141.59 ms 152.67 ms 7.8% 7.08 ms Inconclusive (overlapping samples)
gvs-fresh-restore-hot-cache-hot-store pnpr 168.02 ms 160.02 ms -4.8% 8.40 ms Within tolerance
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet 1202.53 ms 1202.50 ms -0.0% 60.13 ms Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet 29.31 ms 29.02 ms -1.0% 2.00 ms Within tolerance

Same-run syscall check

Each install runs 2 more times per revision, untimed, under strace --follow-forks --summary-only. A file syscall regresses when HEAD's fewest calls exceed main's most by more than 2% of main or 50 calls, whichever is larger. mkdir and mkdirat count only the calls that created a directory, since concurrent installs fail a varying number with EEXIST. A syscall whose identical runs differ by more than that tolerance is reported unstable and not gated, unless HEAD's fewest calls also exceed main's most by more than the tolerance plus that difference. Each scenario lists its largest change relative to its tolerance and every row that is not within tolerance.

Scenario Engine Syscall main calls (max) HEAD calls (min) Change Tolerance Identical-run spread Result
isolated-fresh-restore-cold-cache-cold-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet statx 48340 48345 +0.0% 966 4 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet readlink 16893 15564 -7.9% 337 934 Unstable (identical runs differ by 934, not gated)
isolated-fresh-install-cold-cache-cold-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr readlink 15273 15301 +0.2% 305 30 Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr statx 48985 48993 +0.0% 979 6 Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet symlink 3898 3900 +0.1% 77 4 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr access 11 11 +0.0% 50 0 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet access 22 22 +0.0% 50 0 Within tolerance

Integrated-Benchmark Report (Linux)

Commit: f879c18aa477

Compared against main at: 9266b41e9b9e

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked, injected, and Cargo workspace scenarios compare current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs.

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.275 ± 0.084 2.200 2.463 1.60 ± 0.12
pacquet@main 2.293 ± 0.112 2.184 2.523 1.61 ± 0.13
pnpr@HEAD 1.448 ± 0.149 1.290 1.699 1.02 ± 0.13
pnpr@main 1.422 ± 0.096 1.291 1.575 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.27548625952,
      "stddev": 0.08446404744312754,
      "median": 2.2414925964199996,
      "user": 1.7367172199999998,
      "system": 1.30701734,
      "min": 2.19960999892,
      "max": 2.46337030992
    },
    {
      "command": "pacquet@main",
      "mean": 2.29298705302,
      "stddev": 0.11216133406993481,
      "median": 2.2551991729200003,
      "user": 1.70077392,
      "system": 1.29456494,
      "min": 2.18409098592,
      "max": 2.52261407792
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.44781613782,
      "stddev": 0.1491437331328949,
      "median": 1.37259638192,
      "user": 1.8600013199999998,
      "system": 1.43100304,
      "min": 1.29032035292,
      "max": 1.69926855792
    },
    {
      "command": "pnpr@main",
      "mean": 1.42186711142,
      "stddev": 0.09566856358642899,
      "median": 1.4353718794199999,
      "user": 1.6225427199999998,
      "system": 1.27839564,
      "min": 1.29139256992,
      "max": 1.57506661892
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 290.2 ± 8.9 275.3 303.0 1.00
pacquet@main 290.5 ± 5.6 283.9 302.3 1.00 ± 0.04
pnpr@HEAD 300.2 ± 6.2 290.9 309.4 1.03 ± 0.04
pnpr@main 303.6 ± 7.7 294.5 320.0 1.05 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.29021045538,
      "stddev": 0.008903773150494343,
      "median": 0.28949973178,
      "user": 0.33119154000000006,
      "system": 0.7036808199999999,
      "min": 0.27532657878,
      "max": 0.30298644678000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.29048931168,
      "stddev": 0.0056281890645827155,
      "median": 0.28992629828,
      "user": 0.32025644,
      "system": 0.7344937199999999,
      "min": 0.28393703778,
      "max": 0.30234024478
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30021421577999996,
      "stddev": 0.0061961960990389075,
      "median": 0.29993221328,
      "user": 0.33730914,
      "system": 0.7152815199999999,
      "min": 0.29089211978,
      "max": 0.30939362378
    },
    {
      "command": "pnpr@main",
      "mean": 0.30355242088,
      "stddev": 0.007735217082260667,
      "median": 0.30361687078,
      "user": 0.30766464000000004,
      "system": 0.73242432,
      "min": 0.29451383978,
      "max": 0.31998945078
    }
  ]
}

Scenario: Isolated linker: repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 8.3 ± 0.5 7.5 10.2 1.03 ± 0.08
pacquet@main 8.2 ± 0.5 7.4 11.7 1.01 ± 0.09
pnpr@HEAD 8.1 ± 0.4 7.3 11.7 1.00
pnpr@main 8.2 ± 0.4 7.5 11.2 1.02 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.008295868210675678,
      "stddev": 0.00045107781695840883,
      "median": 0.008232292160000002,
      "user": 0.005087333243243243,
      "system": 0.003959881081081079,
      "min": 0.007492316660000001,
      "max": 0.01021416166
    },
    {
      "command": "pacquet@main",
      "mean": 0.008165445801955834,
      "stddev": 0.0005390982439281366,
      "median": 0.008052728660000001,
      "user": 0.004973130725552049,
      "system": 0.0038806810725552027,
      "min": 0.007420711660000001,
      "max": 0.011658896660000001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.008068872796666677,
      "stddev": 0.00044051482281735324,
      "median": 0.00798218216,
      "user": 0.004777060000000002,
      "system": 0.003979864999999997,
      "min": 0.007271120660000001,
      "max": 0.011670408660000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.008200741163125006,
      "stddev": 0.0003924561742076898,
      "median": 0.00813300016,
      "user": 0.004889236875000005,
      "system": 0.003994314375000001,
      "min": 0.0075047696600000005,
      "max": 0.011193262660000002
    }
  ]
}

Scenario: Isolated linker: repeat install, cold cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 17.0 ± 3.4 11.0 27.7 1.24 ± 0.29
pacquet@main 13.7 ± 1.7 10.0 19.3 1.00
pnpr@HEAD 16.5 ± 2.8 11.7 25.4 1.20 ± 0.25
pnpr@main 16.5 ± 2.7 11.8 31.1 1.21 ± 0.25
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.01703181592625,
      "stddev": 0.0033677100935853507,
      "median": 0.01632214102,
      "user": 0.009638198124999995,
      "system": 0.008806660937499999,
      "min": 0.011017773020000001,
      "max": 0.027719968020000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.01369624054866242,
      "stddev": 0.0016663177985893395,
      "median": 0.01350186002,
      "user": 0.008244639108280253,
      "system": 0.006688527388535032,
      "min": 0.010023142020000002,
      "max": 0.019281596020000003
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.01649168363349694,
      "stddev": 0.002786982649074497,
      "median": 0.015852073020000003,
      "user": 0.00978165067484663,
      "system": 0.008012603926380368,
      "min": 0.011684073020000001,
      "max": 0.025373562020000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.0165499846315108,
      "stddev": 0.0026907960005127566,
      "median": 0.015967621020000003,
      "user": 0.01000567035971223,
      "system": 0.008008364316546758,
      "min": 0.011800854020000001,
      "max": 0.031104818020000004
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.604 ± 0.037 2.513 2.645 1.72 ± 0.12
pacquet@main 2.548 ± 0.030 2.507 2.596 1.68 ± 0.12
pnpr@HEAD 1.559 ± 0.117 1.403 1.746 1.03 ± 0.11
pnpr@main 1.513 ± 0.108 1.392 1.692 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6039804153399997,
      "stddev": 0.03680569127992162,
      "median": 2.61233503984,
      "user": 2.60128916,
      "system": 1.7865575200000001,
      "min": 2.51289915584,
      "max": 2.6454607818399998
    },
    {
      "command": "pacquet@main",
      "mean": 2.54798813884,
      "stddev": 0.02994294224269004,
      "median": 2.54533545834,
      "user": 2.33051336,
      "system": 1.7065561200000001,
      "min": 2.50658922984,
      "max": 2.5955838778399998
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5592885943400003,
      "stddev": 0.1165056780459916,
      "median": 1.5328924908400001,
      "user": 1.87096656,
      "system": 1.4396176200000004,
      "min": 1.40295361684,
      "max": 1.7460762588400003
    },
    {
      "command": "pnpr@main",
      "mean": 1.51337419944,
      "stddev": 0.10771522833729778,
      "median": 1.49788111084,
      "user": 1.81506336,
      "system": 1.44610292,
      "min": 1.3923635468400002,
      "max": 1.69160684984
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 697.1 ± 50.7 617.2 764.4 1.58 ± 0.13
pacquet@main 773.5 ± 29.6 716.0 817.3 1.76 ± 0.10
pnpr@HEAD 482.8 ± 77.0 380.9 625.1 1.10 ± 0.18
pnpr@main 440.3 ± 18.1 406.7 460.2 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6970986979000001,
      "stddev": 0.05065974635858821,
      "median": 0.6945162280000001,
      "user": 1.0835595199999999,
      "system": 1.4506937999999998,
      "min": 0.6171761875,
      "max": 0.7643876645000001
    },
    {
      "command": "pacquet@main",
      "mean": 0.7735427113,
      "stddev": 0.02964007847648691,
      "median": 0.7786433860000002,
      "user": 1.20955232,
      "system": 1.5625661,
      "min": 0.7159642705000001,
      "max": 0.8173292045000001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.4828089393,
      "stddev": 0.07700671632848252,
      "median": 0.5047688185000001,
      "user": 0.46704632,
      "system": 0.8887730999999999,
      "min": 0.3808652135,
      "max": 0.6250621955000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.44025823519999996,
      "stddev": 0.01812635078683736,
      "median": 0.442496122,
      "user": 0.42416092,
      "system": 0.8122870999999998,
      "min": 0.40673784150000003,
      "max": 0.4602099865
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.730 ± 0.061 1.673 1.890 5.00 ± 0.21
pacquet@main 1.708 ± 0.042 1.644 1.802 4.94 ± 0.16
pnpr@HEAD 0.352 ± 0.011 0.337 0.372 1.02 ± 0.04
pnpr@main 0.346 ± 0.008 0.333 0.359 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.7302380754199997,
      "stddev": 0.06149372933849061,
      "median": 1.71437496312,
      "user": 1.11502326,
      "system": 1.2657679,
      "min": 1.67303906712,
      "max": 1.88963787712
    },
    {
      "command": "pacquet@main",
      "mean": 1.7083625125200002,
      "stddev": 0.041527518728362356,
      "median": 1.70843767462,
      "user": 1.0798144600000001,
      "system": 1.1576932000000002,
      "min": 1.6435054781199998,
      "max": 1.80192302412
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.35218398502,
      "stddev": 0.011273202322020337,
      "median": 0.35221286762000004,
      "user": 0.32523046000000005,
      "system": 0.7207677999999997,
      "min": 0.33726478412000005,
      "max": 0.37156708712000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.34588773092,
      "stddev": 0.007515397522768514,
      "median": 0.34641569362,
      "user": 0.31795096,
      "system": 0.7138628999999999,
      "min": 0.33294350012,
      "max": 0.35904710712000004
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 263.1 ± 10.4 250.7 279.2 2.93 ± 0.14
pacquet@main 256.5 ± 18.8 229.8 291.2 2.86 ± 0.22
pnpr@HEAD 89.7 ± 2.3 86.2 94.8 1.00
pnpr@main 90.5 ± 2.4 86.1 95.1 1.01 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.26313897762000005,
      "stddev": 0.010383004434438172,
      "median": 0.25732347362,
      "user": 0.26112542,
      "system": 0.2784210690909091,
      "min": 0.25070462562,
      "max": 0.27916510362
    },
    {
      "command": "pacquet@main",
      "mean": 0.25653957971090907,
      "stddev": 0.01883448364224833,
      "median": 0.25599570862000004,
      "user": 0.25313232909090905,
      "system": 0.2654360690909091,
      "min": 0.22975718462000003,
      "max": 0.29116012362000004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.08969952139419354,
      "stddev": 0.0022847884099546395,
      "median": 0.08928747662,
      "user": 0.03364019419354838,
      "system": 0.02063228387096774,
      "min": 0.08622267861999999,
      "max": 0.09475191362
    },
    {
      "command": "pnpr@main",
      "mean": 0.09050397939419351,
      "stddev": 0.0023832289302534453,
      "median": 0.09051611362,
      "user": 0.03427216193548386,
      "system": 0.02147505806451613,
      "min": 0.08612940262,
      "max": 0.09508247462
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 205.1 ± 15.5 191.5 240.0 1.01 ± 0.10
pacquet@main 202.5 ± 12.2 182.1 220.4 1.00
pnpm@HEAD 3595.9 ± 79.3 3484.8 3727.2 17.75 ± 1.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.20512416762666666,
      "stddev": 0.015536008688862398,
      "median": 0.19810117796,
      "user": 0.22182487777777776,
      "system": 0.04943718,
      "min": 0.19148615196000002,
      "max": 0.23999250996000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.20253963529333335,
      "stddev": 0.012209950820385817,
      "median": 0.20229728996000002,
      "user": 0.22620776666666664,
      "system": 0.05290195777777777,
      "min": 0.18211741096,
      "max": 0.22038111196000001
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.595940875293334,
      "stddev": 0.07930484772256788,
      "median": 3.62745566796,
      "user": 5.3721567666666665,
      "system": 0.3629669577777777,
      "min": 3.48475393996,
      "max": 3.72722034496
    }
  ]
}

Scenario: Isolated linker: linked-workspace resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 92.9 ± 5.5 82.8 109.6 1.03 ± 0.10
pacquet@main 90.5 ± 6.4 82.1 115.4 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.09288388208620689,
      "stddev": 0.005531756279842491,
      "median": 0.0924923005,
      "user": 0.0837915475862069,
      "system": 0.0633236524137931,
      "min": 0.0827511935,
      "max": 0.1095872315
    },
    {
      "command": "pacquet@main",
      "mean": 0.09045894115625,
      "stddev": 0.006447806616821087,
      "median": 0.08840277699999999,
      "user": 0.08201190750000001,
      "system": 0.05887413625,
      "min": 0.0821208885,
      "max": 0.1154157475
    }
  ]
}

Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 91.5 ± 6.1 84.1 108.7 1.00
pacquet@main 92.3 ± 5.7 84.8 109.3 1.01 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.09149587047,
      "stddev": 0.006071499660997895,
      "median": 0.09087100522,
      "user": 0.03543104857142857,
      "system": 0.06356989714285714,
      "min": 0.08407635322000001,
      "max": 0.10868908222000001
    },
    {
      "command": "pacquet@main",
      "mean": 0.09228800473515153,
      "stddev": 0.005721496697557708,
      "median": 0.09083105422,
      "user": 0.03396766545454545,
      "system": 0.06591385818181818,
      "min": 0.08482847822,
      "max": 0.10929926022000001
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.476 ± 0.114 4.367 4.669 1.26 ± 0.05
pacquet@main 4.416 ± 0.040 4.350 4.477 1.25 ± 0.04
pnpr@HEAD 3.578 ± 0.176 3.401 3.844 1.01 ± 0.06
pnpr@main 3.547 ± 0.114 3.430 3.757 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.476366716559999,
      "stddev": 0.11430193679472045,
      "median": 4.4281298717599995,
      "user": 2.00766856,
      "system": 1.4679380800000001,
      "min": 4.36719985676,
      "max": 4.6685647887599995
    },
    {
      "command": "pacquet@main",
      "mean": 4.41643005846,
      "stddev": 0.03957331340454657,
      "median": 4.414886893759999,
      "user": 1.9436835599999998,
      "system": 1.5223918799999996,
      "min": 4.34961459076,
      "max": 4.47660757376
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5782830944600006,
      "stddev": 0.17553495395746183,
      "median": 3.4915383152600006,
      "user": 1.8926714599999996,
      "system": 1.4288987800000001,
      "min": 3.4013903127600003,
      "max": 3.8436712017600003
    },
    {
      "command": "pnpr@main",
      "mean": 3.54707538046,
      "stddev": 0.11445675835187047,
      "median": 3.5054388637600002,
      "user": 1.9949019599999995,
      "system": 1.53203618,
      "min": 3.43025660276,
      "max": 3.75726912376
    }
  ]
}

Scenario: GVS linker: fresh restore, hot cache + hot store

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 154.4 ± 8.0 138.6 167.8 1.08 ± 0.07
pacquet@main 142.7 ± 5.6 135.4 150.5 1.00
pnpr@HEAD 161.6 ± 12.1 147.0 188.9 1.13 ± 0.10
pnpr@main 168.0 ± 13.1 150.2 198.7 1.18 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.15438212112222224,
      "stddev": 0.008037420765525506,
      "median": 0.15267150840000002,
      "user": 0.19352121555555551,
      "system": 0.17335070666666663,
      "min": 0.13864686340000001,
      "max": 0.16780751440000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.14270905534117648,
      "stddev": 0.0055833269404791,
      "median": 0.14159180140000002,
      "user": 0.1838676011764706,
      "system": 0.1571935694117647,
      "min": 0.1353531524,
      "max": 0.15050065040000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.1616186193375,
      "stddev": 0.012131911924157766,
      "median": 0.16001540990000002,
      "user": 0.1988274725,
      "system": 0.16774441499999998,
      "min": 0.14702105140000002,
      "max": 0.18887895640000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.1680165545176471,
      "stddev": 0.013124693225387464,
      "median": 0.1680168264,
      "user": 0.2036752482352941,
      "system": 0.1714958635294117,
      "min": 0.1502127604,
      "max": 0.19869864240000001
    }
  ]
}

Scenario: Store only: unlocked direct deps, cold cache + hot store

Store-only install (enableModulesDir: false, per-file store index, trusted lockfile) against a lockfile missing the direct dependencies that have peers, with the metadata cache wiped per iteration: the install resolves those from the registry, reuses their subtrees from the lockfile and checks the store, linking nothing. Direct installs only.

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.204 ± 0.016 1.181 1.232 1.00
pacquet@main 1.217 ± 0.031 1.192 1.296 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.20440284972,
      "stddev": 0.016241989550731903,
      "median": 1.20250129772,
      "user": 0.6450008599999999,
      "system": 0.26455204,
      "min": 1.18121113572,
      "max": 1.23152404172
    },
    {
      "command": "pacquet@main",
      "mean": 1.21672691432,
      "stddev": 0.031490272606399874,
      "median": 1.20253105472,
      "user": 0.6320609599999998,
      "system": 0.26885104000000004,
      "min": 1.19156176372,
      "max": 1.29570775172
    }
  ]
}

Scenario: Cargo: repeat install, hot cache + hot store

Frozen repeat install of a Cargo workspace (cargo.enabled: true) whose crates are already materialized in <storeDir>/v11/crates/ and linked into .pnpm/crates/crates-io. Direct installs only.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 29.4 ± 1.9 26.4 38.0 1.00
pacquet@main 30.4 ± 4.7 25.7 58.0 1.03 ± 0.17
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.029352336037247705,
      "stddev": 0.0018919610855019444,
      "median": 0.02901753434,
      "user": 0.021002252110091747,
      "system": 0.016654901100917427,
      "min": 0.02638023734,
      "max": 0.038019305340000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.030375006178383828,
      "stddev": 0.004696636731331695,
      "median": 0.029310292340000002,
      "user": 0.022522942222222217,
      "system": 0.016168198181818184,
      "min": 0.02567749034,
      "max": 0.058037516340000005
    }
  ]
}

@codecov-commenter

codecov-commenter commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.67%. Comparing base (9266b41) to head (f879c18).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17561   +/-   ##
=======================================
  Coverage   92.67%   92.67%           
=======================================
  Files        1929     1929           
  Lines      251544   251553    +9     
=======================================
+ Hits       233112   233128   +16     
+ Misses      18432    18425    -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zkochan
zkochan marked this pull request as ready for review November 2, 2026 07:33
Copilot AI balanced review requested due to automatic review settings November 2, 2026 07:33

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 insufficient remaining quota. Try requesting a review at a lower effort level.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Ignore lone-project version bumps in dependency-status checks

🐞 Bug fix 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Ignore a lone project's version bump when checking workspace structure in pnpm v11 and v12.
• Preserve project-name and membership checks, and version checks for multi-project workspaces.
• Add regression tests and patch changesets for affected packages.
Diagram

graph TD
  A["v12 callers"] --> C["Compare project set"] --> D{"Multiple projects?"} -->|No| E["Compare names"] -->|Match| G["Other checks"]
  B["v11 status"] --> C
  D -->|Yes| F["Compare names versions"] -->|Match| G
  E -->|Mismatch| H["Structure drift"]
  F -->|Mismatch| H
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Compare only referenced workspace-project versions
  • ➕ Could avoid rejecting version bumps in multi-project workspaces with no affected dependents.
  • ➖ Requires dependency-resolution analysis in a structure check and increases the risk of missing linked or range-based relationships.

Recommendation: Keep the project-count rule. It fixes the lone-project case while preserving the conservative multi-project safeguard without adding dependency-graph analysis.

Files changed (6) +137 / -3

Bug fix (2) +13 / -3
settle.rsSkip lone-project version comparisons in v12 +8/-2

Skip lone-project version comparisons in v12

• The shared workspace-structure check now compares versions only when there is more than one project. Project count, directory keys, and names remain required to match.

pnpm/crates/package-manager/src/optimistic_repeat_install/settle.rs

findWorkspaceStructureIssue.tsSkip lone-project version comparisons in v11 +5/-1

Skip lone-project version comparisons in v11

• The workspace-structure check now ignores version differences for a single project while retaining project-set and name comparisons and strict version checks for larger workspaces.

pnpm11/deps/status/src/findWorkspaceStructureIssue.ts

Tests (3) +117 / -0
workspace.rsCover v12 install and run decisions after version bumps +48/-0

Cover v12 install and run decisions after version bumps

• Adds tests showing that a lone-project version bump passes both the optimistic install check and run dependency-status check, while a bump in a two-project workspace remains rejected.

pnpm/crates/package-manager/src/optimistic_repeat_install/tests/workspace.rs

findWorkspaceStructureIssue.test.tsTest v11 workspace-structure comparison boundaries +48/-0

Test v11 workspace-structure comparison boundaries

• Adds unit tests for an accepted lone-project version bump and rejected multi-project version bump and lone-project rename.

pnpm11/deps/status/test/findWorkspaceStructureIssue.test.ts

singleProjectWorkspace.tsTest script execution after a lone-project version bump +21/-0

Test script execution after a lone-project version bump

• Adds an end-to-end case that installs a single-project workspace, bumps its version, and confirms its script runs with verifyDepsBeforeRun set to error.

pnpm11/pnpm/test/verifyDepsBeforeRun/singleProjectWorkspace.ts

Documentation (1) +7 / -0
lone-project-version-bump.mdRecord patch releases for the dependency-status fix +7/-0

Record patch releases for the dependency-status fix

• Adds a user-facing changeset for @pnpm/deps.status, pnpm, and pacquet describing the lone-project version-bump fix.

.changeset/lone-project-version-bump.md

@qodo-code-review

qodo-code-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. The release note combines two user-visible outcomes ✓ Resolved
Description
The changeset sentence says verifyDepsBeforeRun both stops reporting a lone-project version change
as drift and stops installing before scripts run. These are separate observable effects that should
be stated as separate sentences so each release-note entry describes one logical change.
Code

.changeset/lone-project-version-bump.md[7]

+`verifyDepsBeforeRun` no longer reports dependencies as out of sync, or installs before running a script, when only the `version` field of a single-project repository changed [#17560](https://github.com/pnpm/pnpm/issues/17560).
Evidence
The added changeset sentence joins two separate observable effects with or, which matches the
checklist's compound-sentence failure criterion.

Rule 3058304: Avoid compound sentences in individual changeset entries
.changeset/lone-project-version-bump.md[7-7]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset entry combines two distinct user-visible outcomes in one sentence: the dependency-status warning is suppressed, and an unnecessary install is avoided.

## Fix Focus Areas
- .changeset/lone-project-version-bump.md[7-7]

## Recommended Fix
Rewrite the release note as two sentences, with one sentence stating that `verifyDepsBeforeRun` no longer reports a lone project's version-only change as out of sync, and a second sentence stating that it no longer installs before running a script for that change.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context sources
⚠️ Tickets: not configured — No jira, linear integration is connected for the linked tickets
✅ Compliance rules (platform): 60 rules
✅ Cross-repo context — repo relationships
  Explored: repo: pnpm/update (sha: 2457663d) — View relationship
Review mode: Auto: ⚖️ Balanced: Runtime dependency-status behavior changes across Rust and TypeScript paths.
✅ Fix-loop round: fix loop

Grey Divider

Tip of the day
💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit f879c18

Results up to commit d902ed7 ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. The release note combines two user-visible outcomes ✓ Resolved
Description
The changeset sentence says verifyDepsBeforeRun both stops reporting a lone-project version change
as drift and stops installing before scripts run. These are separate observable effects that should
be stated as separate sentences so each release-note entry describes one logical change.
Code

.changeset/lone-project-version-bump.md[7]

+`verifyDepsBeforeRun` no longer reports dependencies as out of sync, or installs before running a script, when only the `version` field of a single-project repository changed [#17560](https://github.com/pnpm/pnpm/issues/17560).
Evidence
The added changeset sentence joins two separate observable effects with or, which matches the
checklist's compound-sentence failure criterion.

Rule 3058304: Avoid compound sentences in individual changeset entries
.changeset/lone-project-version-bump.md[7-7]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset entry combines two distinct user-visible outcomes in one sentence: the dependency-status warning is suppressed, and an unnecessary install is avoided.

## Fix Focus Areas
- .changeset/lone-project-version-bump.md[7-7]

## Recommended Fix
Rewrite the release note as two sentences, with one sentence stating that `verifyDepsBeforeRun` no longer reports a lone project's version-only change as out of sync, and a second sentence stating that it no longer installs before running a script for that change.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

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

  • Fix comments: Fix CodeRabbit comments on this PR

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

zkochan and others added 2 commits November 2, 2026 09:17
With `linkWorkspacePackages: deep` a transitive dependency may resolve
to the lone project by its version, so its version stays compared there.

The Rust test now restores the recorded state between the install and
run gates, so each gate is checked against the original state, and
validates the bumped manifest so only the structure check can fire.

The changeset states its two effects in separate sentences.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps freshness.rs within the file-length limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 08:23

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 insufficient remaining quota. Try requesting a review at a lower effort level.

@zkochan

zkochan commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Qodo's changeset finding is valid. Fixed in 9fcd9b9: the release note now states the two effects in separate sentences.


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

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit f879c18

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

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Nov 2, 2026
@zkochan
zkochan merged commit 3d55360 into main Nov 2, 2026
80 checks passed
@zkochan
zkochan deleted the fix-17560 branch November 2, 2026 10:08
zkochan added a commit that referenced this pull request Nov 3, 2026
…ething can resolve to it (#17579)

Bumping the version of a workspace project that nothing depends on made
both dependency-status checks report "The workspace structure has
changed since last install", so verifyDepsBeforeRun reinstalled before
every script and the install fast path re-resolved, though a full
install changed nothing.

A version decides only how dependencies resolve to the project, so it
is now compared only when:

- a dependency group of any project or a catalog entry names the
  project, directly or through an npm: or workspace: alias;
- an override, a package extension, or a patched dependency mentions
  its name (a substring match, which can refuse more than needed but
  never misses);
- a pnpmfile is loaded in a workspace of several projects, since a
  readPackage hook may add a dependency on any project;
- a dependency or a catalog entry is a local path, such as
  workspace:../lib or file:../lib, which names a project by directory
  under any alias;
- linkWorkspacePackages is deep.

A lone project keeps the rule from #17561. The repeat-install
oracle now requires both gates to accept such a version bump.

Closes pnpm/tasks#246
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet product: pnpm@11 reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verifyDepsBeforeRun triggers install when only a private root project version changes

3 participants