Skip to content

fix: require current-lockfile proof for filtered installs without a wanted lockfile - #17174

Merged
zkochan merged 1 commit into
mainfrom
fix-180
Oct 20, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix-180

Conversation

@zkochan

@zkochan zkochan commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes a follow-up from pnpm/pnpm#17150 where a workspace project skipped by a filtered install (with an existing node_modules directory) could be reported as up to date after pnpm-lock.yaml was deleted (or when a covered project lacked a per-project lockfile under sharedWorkspaceLockfile: false):

  1. pnpm v11 (@pnpm/deps.status): findModulesDirIssue previously skipped findProjectMissingFromCurrentLockfile whenever workspaceState.validation was set, assuming checkRecordedWorkspace would run. However, when proof == null (such as when pnpm-lock.yaml is missing and the current lockfile stands in for it, or under sharedWorkspaceLockfile: false when covered projects are missing a lockfile), checkModifiedSinceLastValidation runs instead. Gate the skip in findModulesDirIssue on proof != null (hasValidationProof), and also verify in readCurrentLockfileAsWanted that the current lockfile records the direct dependencies of every checked project when workspaceState.filteredInstall is set.
  2. pnpm v12 (pnpm-package-manager): In held_projects_match_lockfile, check require_recorded_in_current both when comparing against a wanted lockfile and when current stands in for a missing wanted lockfile, and verify that current records not only the importer key in current.importers but also a snapshot in current.snapshots for each of its direct non-link dependencies (handling current lockfiles written by pnpm v11 filtered installs, which retain every importer while pruning unselected packages).

Closes pnpm/tasks#180
Related to #17150

Squash Commit Body

When pnpm-lock.yaml is missing after a filtered install (or when a covered
project is missing a per-project lockfile under sharedWorkspaceLockfile: false),
the recorded validation proof is not used and the current lockfile stands in as
the wanted lockfile:

1. In pnpm v11 (`@pnpm/deps.status`), gate the skip of
   `findProjectMissingFromCurrentLockfile` in `findModulesDirIssue` on a usable
   validation proof rather than the presence of `workspaceState.validation`, and
   verify in `readCurrentLockfileAsWanted` that the current lockfile records the
   direct dependencies of every checked project after a filtered install.
2. In pnpm v12 (`pnpm-package-manager`), check that the current lockfile records
   each unproven project and the snapshots of its direct dependencies both when
   comparing against a wanted lockfile and when the current lockfile stands in
   for a missing wanted lockfile.

Closes pnpm/tasks#180
Related to pnpm/pnpm#17150

Written by an agent (Antigravity, Gemini 4 Argon).

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 or updated tests.

Written by an agent (Antigravity, Gemini 4 Argon).


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

Summary by CodeRabbit

  • Bug Fixes
    • Improved dependency-status checks for filtered installs when the wanted lockfile is unavailable.
    • Projects with declared dependencies are now correctly reported as outdated or not installed when their lockfile records or dependency snapshots are missing.
    • Projects without dependencies continue to pass validation without requiring lockfile records.
    • Improved consistency of validation across current and wanted lockfiles, including clearer missing-install reporting.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: pnpm/pnpm/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 43ec0f59-2fd0-4f0c-8a4a-5bf7c876f5de
📥 Commits

Reviewing files that changed from the base of the PR and between 92b7467 and 3813392.

📒 Files selected for processing: 7
  • pnpm/crates/package-manager/src/optimistic_repeat_install/current_lockfile.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/manifest_agreement.rs
  • pnpm/crates/package-manager/src/optimistic_repeat_install/tests.rs
  • pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts
  • pnpm11/deps/status/src/findModulesDirIssue.ts
  • pnpm11/deps/status/src/wantedLockfiles.ts
  • pnpm11/deps/status/test/recordedValidation.test.ts

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

📝 Walkthrough

The Rust and pnpm 11 dependency-status paths now check that the current lockfile records selected projects with dependencies when the wanted lockfile is missing. Tests cover filtered and unfiltered checks in both paths.

Changes: Filtered-install freshness checks

Layer / File(s) Summary
Rust current-lockfile validation
pnpm/crates/package-manager/src/optimistic_repeat_install/current_lockfile.rs, pnpm/crates/package-manager/src/optimistic_repeat_install/manifest_agreement.rs, pnpm/crates/package-manager/src/optimistic_repeat_install/tests.rs
The current lockfile must contain an importer and snapshots for resolved direct dependencies. The check also runs when the wanted lockfile is absent. Tests cover missing importer and snapshot records in both cases.
pnpm 11 proof and fallback checks
pnpm11/deps/status/src/findModulesDirIssue.ts, pnpm11/deps/status/src/wantedLockfiles.ts, pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts, pnpm11/deps/status/test/recordedValidation.test.ts
Modules-directory validation now receives whether validation proof exists. Before the current lockfile is used as a fallback, filtered installs check that it records the projects being checked. The test covers selected, excluded, and unfiltered projects when the wanted lockfile is missing.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Assessment against linked issues

Objective Addressed Explanation
[Issue #180] Check current-lockfile records when the wanted lockfile is missing, and cover the trigger in both stacks. ✅

Possibly related PRs

  • pnpm/pnpm#15607: Changes the direct-dependency records in importer sections that these checks validate.

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

Suggested reviewers: neonsid

Merge Risk: ⚪ Minimal · up to 38133

No actionable merge-blocking issue remains in the reviewed changes.

✨ 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

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.

@garnet-runtime-review

garnet-runtime-review Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Execution Profiles recorded for 1 job, triggered by 3813392

1 job changed −1 destination · compared with 4ae76b1
recorded at the kernel by Garnet · 2026-10-20 21:44 UTC

−1 · TS CI / test ↗
@@ 4ae76b1 (previous) vs 3813392 (current) @@
  systemd
  ├─ bash
  │  └─ bash
  │     └─ bash
  │        └─ bash
  │           └─ bash
  │              └─ bash
  │                 ├─ bash
  │                 │  ├─ node
  │                 │  │  ├─ git (step: "<unknown>")
  │                 │  │  │  ├─ git
  │                 │  │  │  │  └─ git
  │                 │  │  │  │     └─ git-remote-http
  │                 │  │  │  │        └─ ○ github[.]com
  │                 │  │  │  └─ ○ 192.168.127.1
  │                 │  │  └─ pn (step: "Validate test chunk inputs")
  │                 │  │     ├─ dash
  │                 │  │     │  └─ node
  │                 │  │     │     └─ pn
  │                 │  │     │        └─ dash
  │                 │  │     │           └─ pn
  │                 │  │     │              └─ dash
  │                 │  │     │                 └─ pnpm
  │                 │  │     │                    └─ dash
  │                 │  │     │                       └─ node
  │                 │  │     │                          ├─ ○ codeload.github[.]com
  │                 │  │     │                          └─ ○ registry.npmjs[.]org
  │                 │  │     └─ ○ nodejs[.]org
  │                 │  └─ gh (step: "Wait for prebuilt pnpr binaries")
  │                 │     └─ ○ api.github[.]com
+ │                 └─ node (runner background · +1)
+ │                    └─ ○ blob.blz25prdstrz09a.store.core[.]windows
  ├─ chronyd (runner background · +4 −4)
+ │  ├─ ○ 108.61.215.221
+ │  ├─ ○ 15.204.246.57
  │  ├─ ○ 169.254.169.123
  │  ├─ ○ 185.125.190.56
  │  ├─ ○ 185.125.190.57
  │  ├─ ○ 185.125.190.58
- │  ├─ ○ 198.178.138.195
- │  ├─ ○ 206.197.76.123
+ │  ├─ ○ 38.28.93.135
+ │  ├─ ○ 44.190.5.123
- │  ├─ ○ 66.244.16.123
  │  ├─ ○ 91.189.91.157
- │  └─ ○ 96.19.94.82
  ├─ nginx (runner background · −2)
  │  └─ nginx
- │     ├─ ○ 140.82.112.21
  │     ├─ ○ 140.82.112.22
- │     ├─ ○ 140.82.114.21
  │     ├─ ○ 8.8.8.8
  │     └─ ○ glb-db52c2cf8be544.github[.]com
  └─ snapd
     └─ ○ api.snapcraft[.]io
 
  Runner.Worker
  ├─ MainThread
  │  ├─ ○ blacksmith.blob.core.windows[.]net
- │  └─ ○ productionresultssa7.blob.core.windows[.]net
  ├─ bash
  │  ├─ rustup (step: "Initialize Rust before dependenc…tion ($/.github/actions/rustup)")
  │  │  ├─ ○ dualstack.k.sni.global.fastly[.]net
  │  │  └─ ○ localhost (dns resolver)
  │  └─ MainThread
  │     └─ pn
  │        └─ dash
  │           └─ node
  │              └─ pn
  │                 └─ node (step: "Validate test chunk inputs")
  │                    └─ ○ npm.jsr[.]io
  └─ node
     └─ pnpm
        └─ ○ unofficial-builds.nodejs[.]org

View this job's Execution Profile in Garnet →


💡 How to read this
Runner.Worker          ← process on a path
└─ npm
   └─ node             ← process that acted
      └─ ○ npmjs[.]org ← observed action

follow a path downward to see what ran and what it did — each path to an observed action is an execution chain

names on the path = processes · ○ = observed action · (…) = context

+ only in the current record · − only in the previous record · runner background = the runner's infrastructure, not your workflow

@blacksmith-sh

blacksmith-sh Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Found 4 test failures on Blacksmith runners:

Failures

Test View Logs
test/unpublish.ts/unpublish View Logs
test/unpublish.ts/unpublish View Logs
test/unpublish.ts/unpublish View Logs
test/unpublish.ts (6.903 s)/unpublish.ts (6.903 s) View Logs

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

@codecov-commenter

codecov-commenter commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@92b7467). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17174   +/-   ##
=======================================
  Coverage        ?   92.46%           
=======================================
  Files           ?     1853           
  Lines           ?   239198           
  Branches        ?        0           
=======================================
  Hits            ?   221177           
  Misses          ?    18021           
  Partials        ?        0           

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

@github-actions

github-actions Bot commented Oct 20, 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 3146.64 ms 3091.42 ms -1.8% 157.33 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1664.22 ms 1567.59 ms -5.8% 83.21 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 461.55 ms 429.88 ms -6.9% 23.08 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr 433.95 ms 500.74 ms 15.4% 21.70 ms Inconclusive (overlapping samples)
isolated-repeat-install-hot-cache-hot-store pacquet 13.06 ms 13.28 ms 1.7% 2.00 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr 13.87 ms 13.15 ms -5.1% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 22.70 ms 21.80 ms -4.0% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 27.16 ms 27.24 ms 0.3% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2736.66 ms 2644.51 ms -3.4% 136.83 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr 1669.79 ms 1732.28 ms 3.7% 83.49 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 749.90 ms 760.19 ms 1.4% 37.50 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 484.61 ms 747.10 ms 54.2% 24.23 ms Inconclusive (overlapping samples)
isolated-fresh-install-cold-cache-hot-store pacquet 1907.36 ms 1982.36 ms 3.9% 95.37 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 493.60 ms 433.34 ms -12.2% 24.68 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 581.69 ms 377.48 ms -35.1% 29.08 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 118.74 ms 126.47 ms 6.5% 5.94 ms Inconclusive (overlapping samples)
isolated-peer-heavy-resolve-hot-cache-offline pacquet 324.69 ms 319.22 ms -1.7% 16.23 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 148.17 ms 150.23 ms 1.4% 7.41 ms Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet 111.71 ms 111.62 ms -0.1% 5.59 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 6447.61 ms 5671.12 ms -12.0% 322.38 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 4785.58 ms 4209.93 ms -12.0% 239.28 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 192.24 ms 171.62 ms -10.7% 9.61 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr 210.75 ms 260.76 ms 23.7% 10.54 ms Inconclusive (overlapping samples)
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet 1314.11 ms 1326.75 ms 1.0% 65.71 ms Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet 52.40 ms 52.95 ms 1.0% 2.62 ms Within tolerance

Integrated-Benchmark Report (Linux)

Commit: 3813392b5ae8

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 3.068 ± 0.093 2.904 3.168 1.90 ± 0.11
pacquet@main 3.140 ± 0.118 2.895 3.294 1.95 ± 0.12
pnpr@HEAD 1.612 ± 0.076 1.542 1.750 1.00
pnpr@main 1.679 ± 0.108 1.523 1.884 1.04 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.0677860234199996,
      "stddev": 0.09321571933127347,
      "median": 3.0914182819200002,
      "user": 3.1351514199999997,
      "system": 2.4453557599999995,
      "min": 2.90362252292,
      "max": 3.16816968892
    },
    {
      "command": "pacquet@main",
      "mean": 3.14037083852,
      "stddev": 0.11779979093704455,
      "median": 3.1466439464200002,
      "user": 3.2688299199999995,
      "system": 2.4857189599999994,
      "min": 2.8945604259200004,
      "max": 3.29429253792
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6120520751199998,
      "stddev": 0.07597790318726785,
      "median": 1.56759129642,
      "user": 2.7011848199999995,
      "system": 2.1669502599999997,
      "min": 1.54219937992,
      "max": 1.74978400492
    },
    {
      "command": "pnpr@main",
      "mean": 1.6787300076199998,
      "stddev": 0.10799389787653012,
      "median": 1.6642164799199999,
      "user": 2.65417292,
      "system": 2.15783826,
      "min": 1.5226435969199998,
      "max": 1.88442636592
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 429.7 ± 45.1 353.6 485.2 1.00
pacquet@main 465.7 ± 47.8 379.4 518.6 1.08 ± 0.16
pnpr@HEAD 489.1 ± 28.2 439.7 521.9 1.14 ± 0.14
pnpr@main 446.6 ± 37.9 405.2 523.0 1.04 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.4296869795400001,
      "stddev": 0.04511719189923327,
      "median": 0.4298834906400001,
      "user": 0.49614675999999996,
      "system": 0.9239094800000001,
      "min": 0.35364478614000006,
      "max": 0.48522198314000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.46568913444,
      "stddev": 0.04780997147384907,
      "median": 0.46155164814000005,
      "user": 0.50681806,
      "system": 0.9668534799999999,
      "min": 0.37944916814000007,
      "max": 0.51856190914
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.48908614934,
      "stddev": 0.028180575888314727,
      "median": 0.50074451464,
      "user": 0.50682826,
      "system": 0.99096118,
      "min": 0.43971879514000006,
      "max": 0.52190664114
    },
    {
      "command": "pnpr@main",
      "mean": 0.44656175504,
      "stddev": 0.037928211219672714,
      "median": 0.43395465814000006,
      "user": 0.50442046,
      "system": 0.9542050799999998,
      "min": 0.40519161014000005,
      "max": 0.52298133314
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 13.7 ± 1.8 10.8 19.7 1.01 ± 0.18
pacquet@main 13.5 ± 1.7 10.7 20.1 1.00
pnpr@HEAD 13.6 ± 1.8 9.3 20.0 1.01 ± 0.18
pnpr@main 14.2 ± 1.7 10.9 20.1 1.05 ± 0.18
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.013695695868677258,
      "stddev": 0.0017941447918622493,
      "median": 0.01327794862,
      "user": 0.007494871746031744,
      "system": 0.00746533989417989,
      "min": 0.010809984620000001,
      "max": 0.01967233062
    },
    {
      "command": "pacquet@main",
      "mean": 0.01353228291787234,
      "stddev": 0.0016978052896046171,
      "median": 0.013062305120000001,
      "user": 0.007381126382978727,
      "system": 0.007354187659574469,
      "min": 0.01069763362,
      "max": 0.02006569762
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.0136018677121659,
      "stddev": 0.001772227780970016,
      "median": 0.013152112620000002,
      "user": 0.007725591244239637,
      "system": 0.007101774377880179,
      "min": 0.009314120620000001,
      "max": 0.02003567062
    },
    {
      "command": "pnpr@main",
      "mean": 0.014152063725990784,
      "stddev": 0.0017326471983109188,
      "median": 0.013865489620000001,
      "user": 0.007902370230414745,
      "system": 0.00747114119815668,
      "min": 0.01090844862,
      "max": 0.02008151762
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 22.6 ± 3.8 16.5 33.9 1.00
pacquet@main 22.8 ± 2.8 17.2 33.4 1.01 ± 0.21
pnpr@HEAD 27.7 ± 4.5 19.8 41.8 1.23 ± 0.29
pnpr@main 28.1 ± 4.2 20.7 42.7 1.24 ± 0.28
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.022590303582882894,
      "stddev": 0.00381912200597371,
      "median": 0.0217966777,
      "user": 0.012828576936936936,
      "system": 0.010974929729729728,
      "min": 0.0164502067,
      "max": 0.033949723700000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.022753766576288657,
      "stddev": 0.0027977676617768044,
      "median": 0.0227030307,
      "user": 0.012335464742268045,
      "system": 0.011867504329896906,
      "min": 0.0172349817,
      "max": 0.033359073700000005
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.027717351261403515,
      "stddev": 0.004486133209839785,
      "median": 0.0272431007,
      "user": 0.014097982105263161,
      "system": 0.01503346736842106,
      "min": 0.0197947947,
      "max": 0.041754585700000006
    },
    {
      "command": "pnpr@main",
      "mean": 0.02807542489999999,
      "stddev": 0.004237435659966803,
      "median": 0.0271598692,
      "user": 0.013407325714285713,
      "system": 0.01645830571428571,
      "min": 0.0206595797,
      "max": 0.04270520170000001
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.632 ± 0.047 2.552 2.692 1.60 ± 0.11
pacquet@main 2.792 ± 0.111 2.712 3.028 1.70 ± 0.13
pnpr@HEAD 1.734 ± 0.113 1.567 1.913 1.05 ± 0.10
pnpr@main 1.644 ± 0.107 1.485 1.775 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.63241962588,
      "stddev": 0.046527256665267205,
      "median": 2.64451357228,
      "user": 2.6174725999999997,
      "system": 1.8025872399999998,
      "min": 2.55184284628,
      "max": 2.69233809728
    },
    {
      "command": "pacquet@main",
      "mean": 2.79207085028,
      "stddev": 0.11133415726755481,
      "median": 2.7366646357800004,
      "user": 2.9704395,
      "system": 2.11498734,
      "min": 2.7119080592800002,
      "max": 3.02827962428
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.7337515678800002,
      "stddev": 0.113181984034082,
      "median": 1.73228454528,
      "user": 2.0485227999999998,
      "system": 1.7300860400000002,
      "min": 1.56671610028,
      "max": 1.9128566542799998
    },
    {
      "command": "pnpr@main",
      "mean": 1.6437636062799998,
      "stddev": 0.10661321891989352,
      "median": 1.66978556378,
      "user": 2.0025759,
      "system": 1.69989554,
      "min": 1.4846442172799998,
      "max": 1.77486212128
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 788.7 ± 97.6 691.2 967.7 1.61 ± 0.26
pacquet@main 743.0 ± 37.9 684.6 795.4 1.52 ± 0.18
pnpr@HEAD 726.1 ± 164.5 456.0 987.2 1.49 ± 0.37
pnpr@main 488.4 ± 51.8 400.7 558.6 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.7886502864600001,
      "stddev": 0.09756836856015062,
      "median": 0.7601922892600002,
      "user": 1.1481634999999997,
      "system": 1.1041891999999998,
      "min": 0.6911872427600001,
      "max": 0.9677029647600001
    },
    {
      "command": "pacquet@main",
      "mean": 0.74299210356,
      "stddev": 0.03787216995136357,
      "median": 0.74990075426,
      "user": 1.0751012999999998,
      "system": 1.0880013,
      "min": 0.6845844507600001,
      "max": 0.79540002076
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.7261260019600001,
      "stddev": 0.16447546030934665,
      "median": 0.7471036822600001,
      "user": 0.6007924000000001,
      "system": 0.9946670999999998,
      "min": 0.4559879317600001,
      "max": 0.9871635027600001
    },
    {
      "command": "pnpr@main",
      "mean": 0.4883511096600001,
      "stddev": 0.05176325664390969,
      "median": 0.4846075817600001,
      "user": 0.4485806,
      "system": 0.8280350999999999,
      "min": 0.40065400176000004,
      "max": 0.55862080376
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.990 ± 0.045 1.932 2.103 4.62 ± 0.20
pacquet@main 1.903 ± 0.052 1.826 2.019 4.42 ± 0.20
pnpr@HEAD 0.430 ± 0.016 0.407 0.457 1.00
pnpr@main 0.497 ± 0.057 0.409 0.589 1.16 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.9903324896,
      "stddev": 0.04470497168964058,
      "median": 1.9823602909,
      "user": 1.57306782,
      "system": 1.4763174200000002,
      "min": 1.9318674959,
      "max": 2.1034260189
    },
    {
      "command": "pacquet@main",
      "mean": 1.9032364633,
      "stddev": 0.051689865617063256,
      "median": 1.9073596104,
      "user": 1.45561972,
      "system": 1.38101122,
      "min": 1.8260307859,
      "max": 2.0187534909
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.4303896827000001,
      "stddev": 0.016072510691087057,
      "median": 0.4333415869,
      "user": 0.40648951999999994,
      "system": 0.8654885199999999,
      "min": 0.4072636139,
      "max": 0.4569104619
    },
    {
      "command": "pnpr@main",
      "mean": 0.4973688473,
      "stddev": 0.05677697810157545,
      "median": 0.49359661590000004,
      "user": 0.47695282,
      "system": 1.0217314200000003,
      "min": 0.4091301199,
      "max": 0.5888797899000001
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 402.3 ± 81.2 301.9 538.6 3.31 ± 0.74
pacquet@main 623.0 ± 106.6 522.7 815.9 5.12 ± 1.01
pnpr@HEAD 128.9 ± 12.6 112.0 167.9 1.06 ± 0.15
pnpr@main 121.6 ± 11.7 103.5 148.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.40228799346000005,
      "stddev": 0.08124705320476454,
      "median": 0.37748374436,
      "user": 0.41931586000000004,
      "system": 0.15882616,
      "min": 0.30189990086,
      "max": 0.53863660786
    },
    {
      "command": "pacquet@main",
      "mean": 0.62295377446,
      "stddev": 0.10662686607335306,
      "median": 0.58168999086,
      "user": 0.6644427599999999,
      "system": 0.24712595999999998,
      "min": 0.52265539186,
      "max": 0.8158651838600001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.12894488296,
      "stddev": 0.012614438464732806,
      "median": 0.12647159986,
      "user": 0.06129675999999999,
      "system": 0.02530366,
      "min": 0.11204044286,
      "max": 0.16785895386
    },
    {
      "command": "pnpr@main",
      "mean": 0.12162974736000001,
      "stddev": 0.011692466928519682,
      "median": 0.11874489986,
      "user": 0.05504800545454546,
      "system": 0.023974450909090908,
      "min": 0.10353992286000001,
      "max": 0.14882021686
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 337.9 ± 44.2 293.7 427.0 1.04 ± 0.17
pacquet@main 324.2 ± 29.4 290.2 369.0 1.00
pnpm@HEAD 5735.8 ± 771.1 4981.3 7152.2 17.69 ± 2.87
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.3379275044511111,
      "stddev": 0.044230580020258765,
      "median": 0.31922026834,
      "user": 0.3634726822222222,
      "system": 0.06571518444444444,
      "min": 0.29373514834000003,
      "max": 0.42696687834
    },
    {
      "command": "pacquet@main",
      "mean": 0.32422814734000005,
      "stddev": 0.029382056439749102,
      "median": 0.32469132334,
      "user": 0.34724457111111107,
      "system": 0.062275073333333326,
      "min": 0.29016007534000005,
      "max": 0.36904364334
    },
    {
      "command": "pnpm@HEAD",
      "mean": 5.735770587228888,
      "stddev": 0.771142078549327,
      "median": 5.39672435634,
      "user": 8.872187015555555,
      "system": 0.6105742955555554,
      "min": 4.98130731834,
      "max": 7.15215888034
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 153.4 ± 17.2 133.6 189.0 1.04 ± 0.14
pacquet@main 147.7 ± 11.4 126.3 172.1 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.15341904891411764,
      "stddev": 0.017207028457440498,
      "median": 0.15023087762,
      "user": 0.1387142164705882,
      "system": 0.07621460470588236,
      "min": 0.13358563962,
      "max": 0.18895086162
    },
    {
      "command": "pacquet@main",
      "mean": 0.14774056198842103,
      "stddev": 0.011411239238956709,
      "median": 0.14816721762,
      "user": 0.14526277684210523,
      "system": 0.0646267347368421,
      "min": 0.12628158562,
      "max": 0.17206026162000002
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 111.4 ± 11.1 88.5 134.8 1.02 ± 0.17
pacquet@main 108.8 ± 14.2 87.8 135.1 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.11142042102,
      "stddev": 0.011056006340440629,
      "median": 0.11161693290000001,
      "user": 0.041537239999999996,
      "system": 0.07845375999999998,
      "min": 0.0884983389,
      "max": 0.1347546949
    },
    {
      "command": "pacquet@main",
      "mean": 0.1088341643074074,
      "stddev": 0.014196004969022668,
      "median": 0.11170918090000001,
      "user": 0.038739607407407416,
      "system": 0.0774260488888889,
      "min": 0.0878378569,
      "max": 0.1350799459
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 5.682 ± 0.447 4.777 6.531 1.33 ± 0.12
pacquet@main 6.494 ± 0.626 5.545 7.246 1.52 ± 0.16
pnpr@HEAD 4.282 ± 0.189 4.104 4.692 1.00
pnpr@main 4.873 ± 0.399 4.367 5.542 1.14 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 5.681938090359999,
      "stddev": 0.44712679239526093,
      "median": 5.671123064160001,
      "user": 3.65530938,
      "system": 2.5952701199999995,
      "min": 4.77712685266,
      "max": 6.53050723966
    },
    {
      "command": "pacquet@main",
      "mean": 6.493916777460001,
      "stddev": 0.6261491445529624,
      "median": 6.447612854660001,
      "user": 3.98758658,
      "system": 2.85058782,
      "min": 5.54454051366,
      "max": 7.245864780660001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 4.28235805596,
      "stddev": 0.18910935942815976,
      "median": 4.20993027116,
      "user": 3.11183798,
      "system": 2.3797428199999997,
      "min": 4.10434595366,
      "max": 4.6923112086600005
    },
    {
      "command": "pnpr@main",
      "mean": 4.872537450459999,
      "stddev": 0.39912874061079007,
      "median": 4.78557990366,
      "user": 3.31467768,
      "system": 2.55669112,
      "min": 4.36670411866,
      "max": 5.542042432660001
    }
  ]
}

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 177.8 ± 17.6 154.1 200.9 1.00
pacquet@main 199.0 ± 38.5 144.6 304.2 1.12 ± 0.24
pnpr@HEAD 277.3 ± 43.6 228.6 363.2 1.56 ± 0.29
pnpr@main 214.9 ± 19.5 187.4 249.5 1.21 ± 0.16
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.17775036046307696,
      "stddev": 0.01758056798535623,
      "median": 0.17162328254000003,
      "user": 0.22070119692307688,
      "system": 0.17110003999999998,
      "min": 0.15414828954,
      "max": 0.20088425354000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.1989506500066667,
      "stddev": 0.03853143197601276,
      "median": 0.19223881354000003,
      "user": 0.24268051999999998,
      "system": 0.19790570666666665,
      "min": 0.14462286854,
      "max": 0.30418099254000003
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.27731493934,
      "stddev": 0.043569484068494355,
      "median": 0.26076044454,
      "user": 0.32506331999999993,
      "system": 0.24802483999999997,
      "min": 0.22862580554000003,
      "max": 0.36318658454
    },
    {
      "command": "pnpr@main",
      "mean": 0.21489902844000003,
      "stddev": 0.01953009357415424,
      "median": 0.21075360804000004,
      "user": 0.25371851999999995,
      "system": 0.21162244000000002,
      "min": 0.18744559654,
      "max": 0.24953835554000003
    }
  ]
}

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.340 ± 0.061 1.280 1.495 1.01 ± 0.05
pacquet@main 1.330 ± 0.040 1.281 1.389 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.34037955992,
      "stddev": 0.06057281018903048,
      "median": 1.32675313742,
      "user": 0.80070692,
      "system": 0.27029487999999996,
      "min": 1.28000460342,
      "max": 1.49492559042
    },
    {
      "command": "pacquet@main",
      "mean": 1.32995731082,
      "stddev": 0.03964991494384263,
      "median": 1.31410992192,
      "user": 0.7748678199999998,
      "system": 0.25964448,
      "min": 1.28076716142,
      "max": 1.38875441842
    }
  ]
}

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 54.5 ± 8.9 38.6 89.6 1.01 ± 0.22
pacquet@main 53.9 ± 7.8 41.9 74.5 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.054521711098181824,
      "stddev": 0.008947874259927557,
      "median": 0.05295317308,
      "user": 0.037365979999999986,
      "system": 0.028853810181818176,
      "min": 0.03856553508,
      "max": 0.08964803208000001
    },
    {
      "command": "pacquet@main",
      "mean": 0.05387421261333333,
      "stddev": 0.007816723548173149,
      "median": 0.05240355008,
      "user": 0.039194735555555554,
      "system": 0.027355073333333327,
      "min": 0.04189063408,
      "max": 0.07447109008000001
    }
  ]
}

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                    pr
-----                                            ----                                    --
lockfile/parse_pnpm_lock                         1.16     20.4±3.30ms    18.4 MB/sec     1.00     17.5±2.50ms    21.4 MB/sec
packument/parse                                  1.13     60.0±4.51µs  1106.5 MB/sec     1.00     52.9±3.80µs  1254.4 MB/sec
tarball/download_dependency                      1.04  1333.1±173.98µs     3.2 MB/sec    1.00  1280.1±418.60µs     3.3 MB/sec
tarball_batch/cold_store_many_medium_tarballs    1.12   309.2±49.57ms 51.7 KElem/sec     1.00   275.5±16.02ms 58.1 KElem/sec
version_pick/repeated_ranges_file                1.00      5.2±0.32ms  6.1 KElem/sec     1.11      5.7±0.78ms  5.5 KElem/sec
version_pick/repeated_ranges_raw                 1.05      5.4±0.35ms  5.8 KElem/sec     1.00      5.1±0.23ms  6.1 KElem/sec
workspace_resolution/hoist_heavy                 1.07   521.0±89.30ms        ? ?/sec     1.00   486.6±68.02ms        ? ?/sec
workspace_sort/chained_projects                  1.00     31.8±7.07ms        ? ?/sec     1.20    38.0±13.99ms        ? ?/sec

…anted lockfile

When pnpm-lock.yaml is missing after a filtered install (or when a covered
project is missing a per-project lockfile under sharedWorkspaceLockfile: false),
the recorded validation proof is not used and the current lockfile stands in as
the wanted lockfile:

1. In pnpm v11 (`@pnpm/deps.status`), gate the skip of
   `findProjectMissingFromCurrentLockfile` in `findModulesDirIssue` on a usable
   validation proof rather than the presence of `workspaceState.validation`, and
   verify in `readCurrentLockfileAsWanted` that the current lockfile records the
   direct dependencies of every checked project after a filtered install.
2. In pnpm v12 (`pnpm-package-manager`), check that the current lockfile records
   each unproven project and the snapshots of its direct dependencies both when
   comparing against a wanted lockfile and when the current lockfile stands in
   for a missing wanted lockfile.

Closes pnpm/tasks#180
Related to #17150
@zkochan
zkochan marked this pull request as ready for review October 20, 2026 21:32
Copilot AI balanced review requested due to automatic review settings October 20, 2026 21:32

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

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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Require current-lockfile proof for filtered installs

🐞 Bug fix 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Prevent filtered installs from appearing current when selected projects lack installed
 dependencies.
• Verify current-lockfile records when validation proof or the wanted lockfile is unavailable.
• Add pnpm 11 and 12 regression coverage for missing importers and dependency snapshots.
Diagram

graph TD
  A["Selected projects"] --> B{"Validation proof?"}
  B -->|Yes| C["Recorded validation"] --> F["Current status"]
  B -->|No| D["Current lockfile"] --> E{"Dependencies recorded?"}
  E -->|Yes| F
  E -->|No| G["Outdated status"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Require reinstall whenever the wanted lockfile is missing
  • ➕ Avoids treating an incomplete current lockfile as proof.
  • ➖ Forces unnecessary installs when the current lockfile safely represents the selected projects.

Recommendation: Keep the targeted current-lockfile checks. They preserve the existing missing-wanted-lockfile recovery path while rejecting projects whose installation cannot be demonstrated; unconditional reinstall is safer but unnecessarily disruptive.

Files changed (7) +151 / -55

Bug fix (5) +105 / -40
current_lockfile.rsCheck importer and direct dependency snapshots +19/-0

Check importer and direct dependency snapshots

• Adds a predicate requiring a current-lockfile importer and snapshots for each direct non-link dependency. This detects pnpm 11 filtered lockfiles that retain unselected importers but omit their packages.

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

manifest_agreement.rsRequire current records for unproven projects +33/-17

Require current records for unproven projects

• Applies the importer-and-snapshot check to projects lacking install proof, both when comparing wanted and current lockfiles and when current stands in for a missing wanted lockfile.

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

checkWorkspaceDepsStatus.tsUse validation proof to govern filtered-install checks +23/-19

Use validation proof to govern filtered-install checks

• Calculates usable validation proof before checking modules directories, so the current-lockfile check runs when proof is unavailable. When the wanted lockfile is missing, verifies covered projects against the current lockfile before using it as a stand-in.

pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts

findModulesDirIssue.tsCheck current lockfile unless validation proof exists +16/-4

Check current lockfile unless validation proof exists

• Replaces the presence-of-validation-state shortcut with a usable-proof flag. Exposes the existing importer and direct-dependency check and its not-installed message for the missing-wanted-lockfile path.

pnpm11/deps/status/src/findModulesDirIssue.ts

wantedLockfiles.tsVerify projects before accepting a current-lockfile stand-in +14/-0

Verify projects before accepting a current-lockfile stand-in

• Adds an assertion that dependency-bearing projects are recorded in the current lockfile. It reports an outdated-dependencies error when a project cannot be shown as installed.

pnpm11/deps/status/src/wantedLockfiles.ts

Tests (2) +46 / -15
tests.rsCover incomplete current lockfiles in filtered installs +30/-15

Cover incomplete current lockfiles in filtered installs

• Extends the filtered-install test to reject missing importers and missing direct-dependency snapshots, with and without the wanted lockfile. Retains the dependency-free project case.

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

recordedValidation.test.tsTest missing wanted lockfile after a filtered install +16/-0

Test missing wanted lockfile after a filtered install

• Confirms the installed selection remains current while an omitted project is reported as not installed, whether checked alone or with the full workspace.

pnpm11/deps/status/test/recordedValidation.test.ts

@qodo-code-review

qodo-code-review Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Missing lockfiles incur a second full parse 🐞 Bug ➹ Performance
Description
findModulesDirIssue now reads and parses the current lockfile when a recorded validation exists
but hasValidationProof is false, and readCurrentLockfileAsWanted reads and parses that same file
again. After a filtered install with a missing wanted lockfile, an otherwise valid status check
reaches both calls, adding a full lockfile parse to the command's critical path in large workspaces.
Code

pnpm11/deps/status/src/findModulesDirIssue.ts[74]

+  if (selectedProjectDirs == null || ctx.hasValidationProof) return undefined
Relevance

●●● Strong

Recent history accepts avoiding repeated lockfile work in status checks, especially when caching
prevents repeated reads or hashing.

PR-#16992

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
When proof is absent, the changed gate allows the current-lockfile scan to run. A filtered workspace
then continues through modified-workspace validation to the changed missing-wanted reader;
readCurrentLockfile calls _read on each invocation rather than caching its result.

pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts[53-69]
pnpm11/deps/status/src/findModulesDirIssue.ts[74-77]
pnpm11/deps/status/src/findModulesDirIssue.ts[237-252]
pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts[97-103]
pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts[406-415]
pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts[437-448]
pnpm11/lockfile/fs/src/read.ts[25-33]

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

## Issue description
A filtered workspace with a missing wanted lockfile parses the current lockfile once in the modules-directory check and again when using it as the wanted lockfile.
## Fix Focus Areas
- pnpm11/deps/status/src/findModulesDirIssue.ts[74-77]
- pnpm11/deps/status/src/checkWorkspaceDepsStatus.ts[437-448]
## Recommended Fix
Share a check-scoped current-lockfile read or promise between the modules-directory check and the missing-wanted-lockfile reader. Preserve the new installed-project checks in both paths.

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

Dismiss ↗ | View ↗


Grey Divider

Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Compliance rules (platform): 62 rules
✅ Cross-repo context — repo relationships
  Explored: repo: pnpm/update (sha: 2457663d) — View relationship
  Explored: repo: pnpm/setup (sha: a0881977) — View relationship
  Explored: repo: pnpm/exec (sha: d9dca8d2) — View relationship
Review mode: Auto: 🧠 Deep: Cross-version lockfile logic spans multiple independent paths with dense correctness risk.

Grey Divider

Tip of the day
💡 Did you know, you can open the rule or relationship behind a finding in one click

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

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.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Oct 20, 2026
@zkochan
zkochan merged commit 9dc367c into main Oct 20, 2026
71 of 72 checks passed
@zkochan
zkochan deleted the fix-180 branch October 20, 2026 22:20
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: current-lockfile check is skipped when the state records a validation but the wanted lockfile is missing

3 participants