Skip to content

feat: compose the catalogs and overrides rewrites with other drift - #13804

Merged
zkochan merged 11 commits into
mainfrom
fix-13799
Aug 11, 2026
Merged

zkochan merged 11 commits into
mainfrom
fix-13799

Conversation

@zkochan

@zkochan zkochan commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Summary

catalogs and overrides were the last two fast rewrites that still had to be
the only change in a run. Everything else was folded into the composed pipeline
by #13766, so editing pnpm.overrides while also removing a dependency
— or changing a catalog entry in the same commit as a range bump — re-resolved
the whole graph even though either change alone is rewritten in place.

Both now join the pipeline, running last so their guards see the packages a full
resolution would see, with catalogs before overrides. The two conditions that
made them exclusive stay as gates on the whole run: an override whose value is a
catalog: reference, and a lockfile carrying a time section.

While covering the new catalogs × overrides interaction I found two lockfiles the
rewrites could already write wrong, both reachable before this change: an
override moving a package a catalog entry records left the entry naming the
version the override had just pruned, and a catalog entry moving a package an
unscoped override pins moved it past the pinned version. Each now hands the move
to the resolver; both have a regression test.

pacquet composes the two the same way, in the reuse seed it hands the resolver
(lockfile_reuse_seed), with a CLI test that fails without the change. Its
lockfile is always rebuilt from that resolution, catalog snapshots included, so
the two wrong-lockfile cases have no counterpart there and need no mirror.

Closes #13799. Part of #13696.

Squash Commit Body

The two resolver-consulting fast rewrites still had to arrive alone.
`catalogs` and `overrides` were absent from the composed pipeline, so
editing `pnpm.overrides` while also removing a dependency, or changing a
catalog entry in the same commit as a range bump, re-resolved the whole
graph even though either change on its own is rewritten in place.

Both now join the pipeline. They run last, after the shared graph
epilogue, patch rekeying and the settings block, so their guards see the
packages a full resolution would see; catalogs runs before overrides, the
order a resolution applies the two in. The conditions that made them
exclusive survive as gates: an override whose value is a `catalog:`
reference still sends the whole run to the resolver, and a lockfile
carrying a `time` section still bails whenever either rewrite is in play,
since only a resolution can record the publish date of a version they
introduce.

Two lockfiles the rewrites could write wrong are fixed on the way, both
reachable before this change and more likely once the two compose. An
override moving a package a catalog entry records left the entry naming
the version the override had just pruned; a catalog entry moving a
package an unscoped override pins moved it past the pinned version. Each
now hands the move to the resolver.

pacquet composes the two the same way, in the reuse seed it hands the
resolver. Its lockfile is always rebuilt from that resolution, catalog
snapshots included, so the two wrong-lockfile cases have no counterpart
there and need no mirror.

Closes pnpm/pnpm#13799. Part of pnpm/pnpm#13696.

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
  • 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.

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


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

Summary by CodeRabbit

  • Bug Fixes
    • Improved lockfile updates when dependency catalogs and overrides change together.
    • Preserved compatible locked versions while updating dependency ranges, including when the registry is unavailable.
    • Removed obsolete dependency entries and catalog references when dependencies are deleted.
    • Added safer fallback to full resolution when overrides affect cataloged packages.
    • Fixed stale package versions after combined catalog and override changes.
  • Tests
    • Expanded coverage for optional dependencies, peer dependencies, and importer updates.
  • Documentation
    • Added release notes for the affected packages.

Copilot AI lite review requested due to automatic review settings August 11, 2026 02:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The change composes catalog and override lockfile rewrites with other fast-update operations. It adds safety checks for catalog conflicts, converts the composition path to asynchronous execution, updates Rust lockfile reuse, and adds regression coverage.

Changes

Catalog and override composition

Layer / File(s) Summary
Asynchronous rewrite engine
pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts, pnpm11/installing/deps-installer/src/install/tryFastUpdateCatalogVersions.ts, pnpm11/installing/deps-installer/src/install/tryFastUpdateOverrides.ts
tryComposeFastUpdates applies catalog rewrites before override rewrites. Catalog-referencing overrides and root-level moves of cataloged packages use the fallback path.
Install drift orchestration
pnpm11/installing/deps-installer/src/install/index.ts
Catalogs and overrides are classified as composable drift. The install flow passes both through the asynchronous composition pipeline and preserves resolver and lockfile-time checks.
Rust lockfile reuse
pnpm/crates/package-manager/src/install_with_fresh_lockfile/resolve.rs
Lockfile reuse applies catalog changes before exact override changes and falls back when the combined rewrite is unsafe.
Regression coverage and release notes
pnpm11/installing/deps-installer/test/install/*, pnpm/crates/cli/tests/suite/lockfile_resolution_reuse.rs, .changeset/composed-catalog-and-override-rewrites.md
Tests cover combined rewrites, pruning, fallback cases, asynchronous helpers, peer suffixes, and lockfile reuse. Release notes describe the behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Assessment against linked issues

Objective Addressed Explanation
Compose catalog and override rewrites with other lockfile drift [#13799] ✅
Apply catalog rewrites before catalog-dependent overrides [#13799] ✅
Preserve overridesUseCatalogs and time fallback conditions [#13799] ✅

Sequence Diagram(s)

sequenceDiagram
  participant Install
  participant DriftClassifier
  participant tryComposeFastUpdates
  participant CatalogRewrite
  participant OverrideRewrite
  participant Lockfile
  Install->>DriftClassifier: classify catalog, override, and other drift
  DriftClassifier->>tryComposeFastUpdates: pass composable drift and resolver options
  tryComposeFastUpdates->>CatalogRewrite: apply catalog rewrites
  CatalogRewrite-->>tryComposeFastUpdates: return updated lockfile state
  tryComposeFastUpdates->>OverrideRewrite: apply override rewrites
  OverrideRewrite-->>tryComposeFastUpdates: return composed lockfile state
  tryComposeFastUpdates->>Lockfile: store the fast update
  Lockfile-->>Install: return update result
Loading

Possibly related PRs

  • pnpm/pnpm#13766 — Introduced the shared fast-update composition pipeline extended here.
  • pnpm/pnpm#13777 — Shares lockfile time eligibility handling for resolver-backed rewrites.
  • pnpm/pnpm#13689 — Directly relates to catalog fast-update and override-reuse integration.

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

Suggested reviewers: greptile-apps

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13799

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

❤️ Share

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

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Compose catalogs/overrides fast rewrites into lockfile drift pipeline

✨ Enhancement 🐞 Bug fix 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Allow catalogs and overrides lockfile rewrites to compose with other drift in one run
• Preserve resolver-only gates for catalog-referencing overrides and lockfiles with time metadata
• Fix incorrect lockfile outcomes when catalogs and overrides move the same package; add regressions
Diagram

graph TD
  A["mutateModules()"] --> B["tryFastUpdateLockfile()"] --> C{"Composable drift\n(+ gates)?"} --> D["tryComposeFastUpdates()"] --> E["Catalogs rewrite"] --> F["Overrides rewrite"] --> G["Write updated lockfile"]
  C --> H["Full resolution\n(resolver)"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Always fall back to full resolution on catalogs/overrides changes
  • ➕ Simplest control flow; no async composition and fewer edge-case gates
  • ➕ Avoids subtle correctness interactions between catalogs snapshots and overrides
  • ➖ Regresses performance for common multi-change installs (the core problem this PR addresses)
  • ➖ Increases resolver load and network usage even when safe in-place rewrites exist
2. Single combined “resolver-consulting rewrite” step for catalogs+overrides
  • ➕ Centralizes correctness logic for catalogs/overrides interactions
  • ➕ Could reduce duplicated gating and ‘who owns the move’ checks
  • ➖ Bigger refactor; harder to land safely and test incrementally
  • ➖ Less flexible if future drift steps need independent composition ordering

Recommendation: The PR’s approach is the best tradeoff: it preserves existing fast rewrites while making them composable, and it keeps correctness by gating the known unsafe shapes (catalog: overrides and lockfile time). The additional ‘hand the move to the resolver’ conditions for catalog/override cross-moves are appropriate because they prevent writing inconsistent catalog snapshots and keep ownership of each rewrite clear.

Files changed (15) +493 / -233

Enhancement (3) +179 / -153
resolve.rsCompose catalog and override reuse-seed rewrites (catalogs then overrides) +56/-60

Compose catalog and override reuse-seed rewrites (catalogs then overrides)

• Reworks lockfile reuse seed selection to allow catalogs and overrides fast rewrites to compose instead of being mutually exclusive. Adds explicit gating so overrides that reference catalog: never use either rewrite, and applies the catalogs rewrite result as input to the overrides rewrite when needed.

pnpm/crates/package-manager/src/install_with_fresh_lockfile/resolve.rs

index.tsMake catalogs/overrides part of composable drift with shared gating +66/-88

Make catalogs/overrides part of composable drift with shared gating

• Moves catalogs and overrides from ‘only change allowed’ async paths into the unified composed drift pipeline. Adds gating for overrides that reference catalog: and preserves the lockfile time-section restriction when resolver-consulting rewrites are involved; constructs rewrite options only when needed to avoid surfacing resolver-only validation errors.

pnpm11/installing/deps-installer/src/install/index.ts

tryComposeFastUpdates.tsExtend composed fast update pipeline to run catalogs then overrides (async) +57/-5

Extend composed fast update pipeline to run catalogs then overrides (async)

• Turns tryComposeFastUpdates into an async pipeline and expands drift dimensions to include catalogs and overrides. Adds an applyCatalogsUpdate helper that runs range-only catalog updates first, then exact catalog version moves, and finally runs the overrides rewrite.

pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts

Bug fix (2) +29 / -3
tryFastUpdateCatalogVersions.tsBlock catalog exact moves when an unscoped override pins the same package +13/-3

Block catalog exact moves when an unscoped override pins the same package

• Extends options to accept parsedOverrides and introduces an isOverridden check. Prevents fast catalog version moves when an override decides the final version, forcing fallback to resolver to avoid producing inconsistent outcomes.

pnpm11/installing/deps-installer/src/install/tryFastUpdateCatalogVersions.ts

tryFastUpdateOverrides.tsFall back when an override would move a cataloged package +16/-0

Fall back when an override would move a cataloged package

• Adds a guard that detects fast overrides moving packages that appear in lockfile catalog snapshots. Forces resolver fallback so the catalogs rewrite (which owns snapshot movement) can keep catalog entries consistent with the moved package version.

pnpm11/installing/deps-installer/src/install/tryFastUpdateOverrides.ts

Refactor (1) +0 / -3
fast_update_catalog_versions.rsTidy catalog fast-update gate comment +0/-3

Tidy catalog fast-update gate comment

• Removes duplicated comment lines while keeping the same resolver-gating rationale. No behavioral change intended in this file.

pnpm/crates/package-manager/src/fast_update_catalog_versions.rs

Tests (8) +276 / -74
lockfile_resolution_reuse.rsAdd pacquet CLI regression for catalogs+overrides composition +69/-0

Add pacquet CLI regression for catalogs+overrides composition

• Introduces an end-to-end test proving that a catalog edit plus a removal override can be handled in a single pass without contacting the registry. Verifies catalog snapshot specifier/version correctness and that removed packages are pruned from snapshots.

pnpm/crates/cli/tests/suite/lockfile_resolution_reuse.rs

catalogFastUpdate.tsUpdate catalogs+overrides interaction test to expect single-pass absorption +11/-5

Update catalogs+overrides interaction test to expect single-pass absorption

• Changes the prior expectation of resolver fallback to assert that simultaneous catalog range changes and override updates are absorbed in one pass. Verifies only the overridden package is resolved and that catalog snapshots/specifiers are updated correctly.

pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts

catalogVersionFastUpdate.tsAdd regression: catalog move falls back when override pins target +11/-0

Add regression: catalog move falls back when override pins target

• Adds a targeted unit test ensuring tryFastUpdateCatalogVersions returns unsupported when an unscoped override pins the same package, matching the new safety gate.

pnpm11/installing/deps-installer/test/install/catalogVersionFastUpdate.ts

composedFastUpdate.tsAdd composed fast-update coverage for overrides/catalogs + removals +128/-12

Add composed fast-update coverage for overrides/catalogs + removals

• Converts tests to await the now-async tryComposeFastUpdates and adds new scenarios: override+removal, catalog+removal, and fallback when an override moves a cataloged package. Includes a helper that resolves the same changes via full resolution for equivalence comparison.

pnpm11/installing/deps-installer/test/install/composedFastUpdate.ts

ignoredOptionalDependencies.tsAdapt ignoredOptionalDependencies fast-update tests to async composition +10/-10

Adapt ignoredOptionalDependencies fast-update tests to async composition

• Updates helper wrappers and assertions to await async fast-update functions after tryComposeFastUpdates became async. Keeps existing behavior coverage intact while aligning with new orchestration.

pnpm11/installing/deps-installer/test/install/ignoredOptionalDependencies.ts

importerGroupMoveFastUpdate.tsAdapt importer group-move fast-update tests to async composition +15/-15

Adapt importer group-move fast-update tests to async composition

• Updates test helpers and call sites to await tryComposeFastUpdates through an async wrapper. No change in test intent; aligns with new async pipeline contract.

pnpm11/installing/deps-installer/test/install/importerGroupMoveFastUpdate.ts

importerRemovalFastUpdate.tsAdapt importer removal/pruning fast-update tests to async composition +24/-24

Adapt importer removal/pruning fast-update tests to async composition

• Updates tests to await async wrappers and ensures composed fast updates still prune subtrees and catalogs correctly. Keeps fallback tests intact for unsupported peer-suffix scenarios.

pnpm11/installing/deps-installer/test/install/importerRemovalFastUpdate.ts

lockedVersionReuse.tsAdapt lockfile reuse fast-update tests to async composition +8/-8

Adapt lockfile reuse fast-update tests to async composition

• Updates tryComposeFastUpdates usages to await the async function. Retains coverage for reuse vs fallback behavior across registry-keyed versions and peer-suffix edge cases.

pnpm11/installing/deps-installer/test/install/lockedVersionReuse.ts

Documentation (1) +9 / -0
composed-catalog-and-override-rewrites.mdDocument composed catalogs/overrides fast updates and correctness fixes +9/-0

Document composed catalogs/overrides fast updates and correctness fixes

• Adds a changeset describing that catalogs and overrides edits can now be absorbed alongside other lockfile drift. Notes two fixed incorrect-lockfile cases involving catalogs snapshots and overrides moves, which now force re-resolution.

.changeset/composed-catalog-and-override-rewrites.md

@greptile-apps

greptile-apps Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (6): Last reviewed commit: "fix: tolerate an absent `pnpm.overrides`..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts (1)

159-205: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Add the removal-override composition case to the TypeScript tests.

This test covers a catalog edit with a version-moving override. The new pacquet CLI test at pnpm/crates/cli/tests/suite/lockfile_resolution_reuse.rs lines 315-382 covers a catalog edit with an is-positive: '-' removal override in the same install.

Add the equivalent TypeScript scenario. Use a catalog-managed parent with the optional is-positive dependency. Widen the catalog range, add the removal override, and verify that the fast path preserves the locked catalog version while pruning is-positive without registry access.

As per coding guidelines, behavior changes that span both implementations must keep test scenarios and coverage synchronized. As per path instructions, require meaningful regression coverage in both stacks.

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

In `@pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts` around
lines 159 - 205, Add a TypeScript fast-update test alongside “simultaneous
catalog and override changes are absorbed in one pass” using a catalog-managed
parent with optional is-positive, then widen the catalog range and apply the
is-positive: '-' removal override in the second install. Track requested
packages and assert no registry resolution for the retained parent version,
while verifying the lockfile keeps that catalog version and removes is-positive
from its dependencies.

Sources: Coding guidelines, Path instructions

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

Inline comments:
In `@pnpm/crates/package-manager/src/install_with_fresh_lockfile/resolve.rs`:
- Around line 304-323: Mirror the catalog/override conflict guards across all
affected sites: in
pnpm/crates/package-manager/src/install_with_fresh_lockfile/resolve.rs (lines
304-323), update try_fast_update_overrides to reject root overrides targeting
packages present in lockfile.catalogs while preserving the parent selector
exclusion, and update try_fast_update_catalog_versions to accept
parsed_overrides and reject catalog moves whose alias is targeted by a root
override. Apply the equivalent guards in
pnpm11/installing/deps-installer/src/install/tryFastUpdateOverrides.ts (lines
72-85) and pass and use parsed overrides in
pnpm11/installing/deps-installer/src/install/tryFastUpdateCatalogVersions.ts
(line 66). Add synchronized regression tests covering both conflict directions.

---

Outside diff comments:
In `@pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts`:
- Around line 159-205: Add a TypeScript fast-update test alongside “simultaneous
catalog and override changes are absorbed in one pass” using a catalog-managed
parent with optional is-positive, then widen the catalog range and apply the
is-positive: '-' removal override in the second install. Track requested
packages and assert no registry resolution for the retained parent version,
while verifying the lockfile keeps that catalog version and removes is-positive
from its dependencies.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

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

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1a6ad4b1-2048-4d57-b717-4de5455c7781

📥 Commits

Reviewing files that changed from the base of the PR and between ac97bc1 and f669485.

📒 Files selected for processing (15)
  • .changeset/composed-catalog-and-override-rewrites.md
  • pnpm/crates/cli/tests/suite/lockfile_resolution_reuse.rs
  • pnpm/crates/package-manager/src/fast_update_catalog_versions.rs
  • pnpm/crates/package-manager/src/install_with_fresh_lockfile/resolve.rs
  • pnpm11/installing/deps-installer/src/install/index.ts
  • pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts
  • pnpm11/installing/deps-installer/src/install/tryFastUpdateCatalogVersions.ts
  • pnpm11/installing/deps-installer/src/install/tryFastUpdateOverrides.ts
  • pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts
  • pnpm11/installing/deps-installer/test/install/catalogVersionFastUpdate.ts
  • pnpm11/installing/deps-installer/test/install/composedFastUpdate.ts
  • pnpm11/installing/deps-installer/test/install/ignoredOptionalDependencies.ts
  • pnpm11/installing/deps-installer/test/install/importerGroupMoveFastUpdate.ts
  • pnpm11/installing/deps-installer/test/install/importerRemovalFastUpdate.ts
  • pnpm11/installing/deps-installer/test/install/lockedVersionReuse.ts
💤 Files with no reviewable changes (1)
  • pnpm/crates/package-manager/src/fast_update_catalog_versions.rs

@github-actions

github-actions Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.34     16.9±1.85ms    22.1 MB/sec    1.00     12.7±0.44ms    29.5 MB/sec
packument/parse                                  1.18     49.3±3.23µs  1344.4 MB/sec    1.00     41.9±0.79µs  1582.4 MB/sec
tarball/download_dependency                      1.00      2.7±0.16ms  1630.9 KB/sec    1.00      2.7±0.19ms  1625.5 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.07   213.9±22.01ms 74.8 KElem/sec    1.00   200.1±10.44ms 80.0 KElem/sec
workspace_resolution/hoist_heavy                 1.10   346.3±20.13ms        ? ?/sec    1.00   316.1±24.56ms        ? ?/sec

@qodo-code-review

qodo-code-review Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (2) 📜 Skill insights (0)

Grey Divider


Action required

1. Unawaited async compose ✓ Resolved 🐞 Bug ≡ Correctness
Description
tryComposeFastUpdates now returns Promise<boolean>, but some tests still call it synchronously
and compare the resulting Promise object to a boolean. This will fail the test assertions (and can
fail type-checking) after the async signature change.
Code

pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[R93-96]

+export async function tryComposeFastUpdates (
  candidate: LockfileObject,
  opts: ComposeFastUpdatesOptions
-): boolean {
+): Promise<boolean> {
Relevance

●●● Strong

Unawaited async call will break Jest assertions; deterministic test fix is typically accepted.

PR-#13777

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The function definition is now async and returns a Promise, but the referenced tests still call it
without awaiting, so Jest will compare a Promise object to a boolean and fail.

pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-124]
pnpm11/installing/deps-installer/test/install/newImporterFastUpdate.ts[157-216]

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

### Issue description
`tryComposeFastUpdates()` was changed to `async` and now returns `Promise<boolean>`. Some tests still do:
```ts
expect(tryComposeFastUpdates(subject, {...})).toBe(false)
```
This compares a Promise to `false` and will fail.

### Issue Context
At least `newImporterFastUpdate.ts` contains multiple un-awaited calls.

### Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-96]
- pnpm11/installing/deps-installer/test/install/newImporterFastUpdate.ts[157-216]

### Suggested fix
- Mark the affected tests as `async`.
- Update assertions to `expect(await tryComposeFastUpdates(...)).toBe(false)` (or `toBe(true)` as appropriate).
- Ensure any helper wrappers that call `tryComposeFastUpdates` return/await a Promise consistently.

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



Remediation recommended

2. Unconditional overrides scan 🐞 Bug ➹ Performance ⭐ New
Description
mutateModules() now scans all configured override values to compute overridesUseCatalogs even
when changedLockfileSettings does not include catalogs or overrides. This adds avoidable
O(#overrides) work to every install that reaches this code path, which can be noticeable in large
workspaces with big override blocks.
Code

pnpm11/installing/deps-installer/src/install/index.ts[R752-753]

+    const overridesUseCatalogs = Object.values(configuredOverrides)
+      .some((specifier) => parseCatalogProtocol(specifier) != null)
Relevance

●● Moderate

Similar micro-optimizations to avoid extra scans were previously rejected, but this one is small and
localized.

PR-#13600
PR-#13792

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The scan happens unconditionally before hasAsyncDrift is checked, but overridesUseCatalogs only
influences behavior when hasAsyncDrift is true, so the scan can be skipped entirely for the common
case where catalogs/overrides aren’t part of the drift.

pnpm11/installing/deps-installer/src/install/index.ts[744-759]
REVIEW_GUIDE.md[115-127]

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

### Issue description
`overridesUseCatalogs` is computed by scanning `Object.values(configuredOverrides)` on every install, even when there is no async drift (`catalogs`/`overrides` are not among `changedLockfileSettings`). This is extra work on pnpm’s install hot path.

### Issue Context
The value is only relevant when `hasAsyncDrift` is true because the gating condition is `!(hasAsyncDrift && overridesUseCatalogs)`.

### Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/index.ts[744-759]

### Suggested fix
Defer the scan until `hasAsyncDrift` is known true, e.g.:

```ts
const configuredOverrides = opts.overrides ?? {}
const hasAsyncDrift = changedLockfileSettings.includes('catalogs') ||
 changedLockfileSettings.includes('overrides')
const overridesUseCatalogs = hasAsyncDrift && Object.values(configuredOverrides)
 .some((specifier) => parseCatalogProtocol(specifier) != null)
```

(or equivalently compute `overridesUseCatalogs` inside an `if (hasAsyncDrift) { ... }` block).

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


3. Undefined overrides crash ✓ Resolved 🐞 Bug ☼ Reliability
Description
mutateModules() now computes overridesUseCatalogs via Object.values(opts.overrides) before
deciding whether the fast-update path is applicable; if opts.overrides is ever undefined at
runtime, this throws a TypeError and aborts the install. This is more reachable than before
because the same access is no longer guarded by the fast-update condition.
Code

pnpm11/installing/deps-installer/src/install/index.ts[R735-736]

+    const overridesUseCatalogs = Object.values(opts.overrides)
+      .some((specifier) => parseCatalogProtocol(specifier) != null)
Relevance

●●● Strong

Likely runtime TypeError; team often accepts defensive guards in fast-update/install paths.

PR-#13762
PR-#12558
PR-#13770

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed code now evaluates Object.values(opts.overrides) unconditionally in the install flow,
while the same module’s option typing indicates overrides may be omitted; together these show a
concrete runtime crash path when overrides is undefined.

pnpm11/installing/deps-installer/src/install/index.ts[731-737]
pnpm11/installing/deps-installer/src/install/index.ts[1635-1645]

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

## Issue description
`mutateModules()` computes `overridesUseCatalogs` using `Object.values(opts.overrides)`. If `opts.overrides` is `undefined` for any runtime caller, this throws and prevents pnpm from proceeding to the normal resolution fallback.

## Issue Context
`InstallFunction`’s options type indicates `overrides` may be absent (`overrides?: ...`), so the implementation should be defensive.

## Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/index.ts[731-756]
- pnpm11/installing/deps-installer/src/install/index.ts[1635-1645]

## Suggested fix
- Normalize once near the top of the fast-update decision block:
 - `const overrides = opts.overrides ?? {}`
- Use `overrides` for:
 - the `overridesUseCatalogs` scan
 - any downstream rewrite option objects that currently pass `opts.overrides`

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



Informational

4. Historical comment on overrides 📘 Rule violation ⚙ Maintainability ⭐ New
Description
The new comment explains behavior using historical phrasing (now runs... rather than...) instead
of documenting the current contract and rationale. This violates the requirement that comments
describe current behavior rather than past implementations.
Code

pnpm11/installing/deps-installer/src/install/index.ts[R744-746]

+    // Typed as required, but a caller that passes it through from its own
+    // optional config leaves it undefined, and this now runs on every
+    // install rather than only when the fast path opens.
Relevance

● Weak

Close precedent: narrating/historical explanatory comments in mutateModules were explicitly rejected
to avoid drift.

PR-#13770

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The checklist forbids comments that reference past behavior (e.g., "now" vs "before") and requires
them to describe only current behavior. The added comment explicitly compares the current execution
behavior to the previous behavior.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm11/installing/deps-installer/src/install/index.ts[744-746]

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 newly added comment uses historical/temporal phrasing (e.g., `now runs ... rather than ...`), which violates the rule that comments must describe current behavior, not historical implementations.

## Issue Context
This comment sits above `const configuredOverrides = opts.overrides ?? {}` and should explain the current contract/intent (e.g., some callers may pass `overrides` as `undefined`, so we defensively default to `{}` before scanning).

## Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/index.ts[744-747]

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


5. Unsafe Object.keys call 🐞 Bug ☼ Reliability
Description
The new test loops over written.snapshots and written.packages and calls Object.keys(section)
without guarding for undefined, which can throw a runtime TypeError if either section is absent.
This makes the test brittle against valid lockfile shapes where those sections are omitted.
Code

pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts[R255-256]

+  for (const section of [written.snapshots, written.packages]) {
+    expect(Object.keys(section).some((depPath) => depPath.startsWith('is-positive@'))).toBe(false)
Relevance

●●● Strong

Team often accepts defensive guards to avoid brittle test/runtime failures; optional sections should
be handled safely.

PR-#13777
PR-#13762

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
LockfileFile defines both packages and snapshots as optional, so the new test’s
Object.keys(section) can be invoked with undefined and crash.

pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts[248-257]
pnpm11/lockfile/types/src/lockfileFileTypes.ts[3-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
A new test iterates over `written.snapshots` and `written.packages` and calls `Object.keys()` on each. Both lockfile sections are optional in the `LockfileFile` shape, so `Object.keys(undefined)` can throw and fail the test for valid lockfiles / future fixture changes.

### Issue Context
`project.readLockfile()` yields a lockfile file representation where `packages` and `snapshots` are optional.

### Fix Focus Areas
- pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts[255-257]

### Suggested change
Update the loop to tolerate missing sections, e.g.:
- `for (const section of [written.snapshots ?? {}, written.packages ?? {}]) { ... }`
 or
- `for (const section of [written.snapshots, written.packages].filter(Boolean)) { ... }` and type-assert appropriately.

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


6. Missing trailing comma in params 📘 Rule violation ⚙ Maintainability
Description
Multi-line function parameter lists are missing a trailing comma after the last parameter,
increasing diff noise and breaking the project’s TypeScript trailing-comma style rule.
Code

pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[R93-96]

+export async function tryComposeFastUpdates (
  candidate: LockfileObject,
  opts: ComposeFastUpdatesOptions
-): boolean {
+): Promise<boolean> {
Relevance

● Weak

Trailing-comma suggestions in multi-line TS params were recently rejected in same area despite the
compliance rule.

PR-#13803

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713434 requires trailing commas in multi-line TypeScript constructs. In
tryComposeFastUpdates and applyCatalogsUpdate, the last parameter is on its own line but has no
trailing comma before the closing ).

Rule 713434: Require trailing commas in TypeScript collections and multi-line constructs
pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-96]
pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[131-134]

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

## Issue description
Multi-line TypeScript function parameter lists should include a trailing comma after the last parameter.

## Issue Context
`tryComposeFastUpdates` and `applyCatalogsUpdate` use multi-line parameter lists but omit the trailing comma on the final parameter.

## Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-96]
- pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[131-134]

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


Grey Divider

Context used
✅ Compliance rules (platform): 26 rules

Grey Divider

Tip of the day
💡 Did you know, you can group findings by type and pick your Finding display, from Minimal to Full

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous review results

Review updated until commit b0bd7e1

Results up to commit f669485 ⚖️ Balanced


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


Remediation recommended
1. Undefined overrides crash ✓ Resolved 🐞 Bug ☼ Reliability
Description
mutateModules() now computes overridesUseCatalogs via Object.values(opts.overrides) before
deciding whether the fast-update path is applicable; if opts.overrides is ever undefined at
runtime, this throws a TypeError and aborts the install. This is more reachable than before
because the same access is no longer guarded by the fast-update condition.
Code

pnpm11/installing/deps-installer/src/install/index.ts[R735-736]

+    const overridesUseCatalogs = Object.values(opts.overrides)
+      .some((specifier) => parseCatalogProtocol(specifier) != null)
Relevance

●●● Strong

Likely runtime TypeError; team often accepts defensive guards in fast-update/install paths.

PR-#13762
PR-#12558
PR-#13770

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed code now evaluates Object.values(opts.overrides) unconditionally in the install flow,
while the same module’s option typing indicates overrides may be omitted; together these show a
concrete runtime crash path when overrides is undefined.

pnpm11/installing/deps-installer/src/install/index.ts[731-737]
pnpm11/installing/deps-installer/src/install/index.ts[1635-1645]

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

## Issue description
`mutateModules()` computes `overridesUseCatalogs` using `Object.values(opts.overrides)`. If `opts.overrides` is `undefined` for any runtime caller, this throws and prevents pnpm from proceeding to the normal resolution fallback.

## Issue Context
`InstallFunction`’s options type indicates `overrides` may be absent (`overrides?: ...`), so the implementation should be defensive.

## Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/index.ts[731-756]
- pnpm11/installing/deps-installer/src/install/index.ts[1635-1645]

## Suggested fix
- Normalize once near the top of the fast-update decision block:
 - `const overrides = opts.overrides ?? {}`
- Use `overrides` for:
 - the `overridesUseCatalogs` scan
 - any downstream rewrite option objects that currently pass `opts.overrides`

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


Results up to commit f384c0a ⚖️ Balanced


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


Informational
1. Unsafe Object.keys call 🐞 Bug ☼ Reliability
Description
The new test loops over written.snapshots and written.packages and calls Object.keys(section)
without guarding for undefined, which can throw a runtime TypeError if either section is absent.
This makes the test brittle against valid lockfile shapes where those sections are omitted.
Code

pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts[R255-256]

+  for (const section of [written.snapshots, written.packages]) {
+    expect(Object.keys(section).some((depPath) => depPath.startsWith('is-positive@'))).toBe(false)
Relevance

●●● Strong

Team often accepts defensive guards to avoid brittle test/runtime failures; optional sections should
be handled safely.

PR-#13777
PR-#13762

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
LockfileFile defines both packages and snapshots as optional, so the new test’s
Object.keys(section) can be invoked with undefined and crash.

pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts[248-257]
pnpm11/lockfile/types/src/lockfileFileTypes.ts[3-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
A new test iterates over `written.snapshots` and `written.packages` and calls `Object.keys()` on each. Both lockfile sections are optional in the `LockfileFile` shape, so `Object.keys(undefined)` can throw and fail the test for valid lockfiles / future fixture changes.

### Issue Context
`project.readLockfile()` yields a lockfile file representation where `packages` and `snapshots` are optional.

### Fix Focus Areas
- pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts[255-257]

### Suggested change
Update the loop to tolerate missing sections, e.g.:
- `for (const section of [written.snapshots ?? {}, written.packages ?? {}]) { ... }`
 or
- `for (const section of [written.snapshots, written.packages].filter(Boolean)) { ... }` and type-assert appropriately.

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


Results up to commit a85daa5 ⚖️ Balanced


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


Action required
1. Unawaited async compose ✓ Resolved 🐞 Bug ≡ Correctness
Description
tryComposeFastUpdates now returns Promise<boolean>, but some tests still call it synchronously
and compare the resulting Promise object to a boolean. This will fail the test assertions (and can
fail type-checking) after the async signature change.
Code

pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[R93-96]

+export async function tryComposeFastUpdates (
  candidate: LockfileObject,
  opts: ComposeFastUpdatesOptions
-): boolean {
+): Promise<boolean> {
Relevance

●●● Strong

Unawaited async call will break Jest assertions; deterministic test fix is typically accepted.

PR-#13777

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The function definition is now async and returns a Promise, but the referenced tests still call it
without awaiting, so Jest will compare a Promise object to a boolean and fail.

pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-124]
pnpm11/installing/deps-installer/test/install/newImporterFastUpdate.ts[157-216]

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

### Issue description
`tryComposeFastUpdates()` was changed to `async` and now returns `Promise<boolean>`. Some tests still do:
```ts
expect(tryComposeFastUpdates(subject, {...})).toBe(false)
```
This compares a Promise to `false` and will fail.

### Issue Context
At least `newImporterFastUpdate.ts` contains multiple un-awaited calls.

### Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-96]
- pnpm11/installing/deps-installer/test/install/newImporterFastUpdate.ts[157-216]

### Suggested fix
- Mark the affected tests as `async`.
- Update assertions to `expect(await tryComposeFastUpdates(...)).toBe(false)` (or `toBe(true)` as appropriate).
- Ensure any helper wrappers that call `tryComposeFastUpdates` return/await a Promise consistently.

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



Informational
2. Missing trailing comma in params 📘 Rule violation ⚙ Maintainability
Description
Multi-line function parameter lists are missing a trailing comma after the last parameter,
increasing diff noise and breaking the project’s TypeScript trailing-comma style rule.
Code

pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[R93-96]

+export async function tryComposeFastUpdates (
  candidate: LockfileObject,
  opts: ComposeFastUpdatesOptions
-): boolean {
+): Promise<boolean> {
Relevance

● Weak

Trailing-comma suggestions in multi-line TS params were recently rejected in same area despite the
compliance rule.

PR-#13803

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713434 requires trailing commas in multi-line TypeScript constructs. In
tryComposeFastUpdates and applyCatalogsUpdate, the last parameter is on its own line but has no
trailing comma before the closing ).

Rule 713434: Require trailing commas in TypeScript collections and multi-line constructs
pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-96]
pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[131-134]

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

## Issue description
Multi-line TypeScript function parameter lists should include a trailing comma after the last parameter.

## Issue Context
`tryComposeFastUpdates` and `applyCatalogsUpdate` use multi-line parameter lists but omit the trailing comma on the final parameter.

## Fix Focus Areas
- pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[93-96]
- pnpm11/installing/deps-installer/src/install/tryComposeFastUpdates.ts[131-134]

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


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.

@codecov-commenter

codecov-commenter commented Aug 11, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.61905% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.23%. Comparing base (83cbfe9) to head (b0bd7e1).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...manager/src/install_with_fresh_lockfile/resolve.rs 97.61% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13804      +/-   ##
==========================================
- Coverage   88.26%   88.23%   -0.04%     
==========================================
  Files         624      625       +1     
  Lines      102058   102628     +570     
==========================================
+ Hits        90084    90549     +465     
- Misses      11974    12079     +105     

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

Copilot AI review requested due to automatic review settings August 11, 2026 02: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 reached their quota limit.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Aug 11, 2026
@qodo-code-review

Copy link
Copy Markdown

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

@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 commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: b0bd7e1b6221

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.476 ± 0.123 2.367 2.646 1.59 ± 0.14
pacquet@main 2.584 ± 0.164 2.362 2.805 1.66 ± 0.16
pnpr@HEAD 1.557 ± 0.108 1.383 1.725 1.00
pnpr@main 1.609 ± 0.141 1.385 1.810 1.03 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.47600172516,
      "stddev": 0.12268567215666105,
      "median": 2.4001798791600004,
      "user": 1.63471136,
      "system": 1.3655173799999998,
      "min": 2.36657052766,
      "max": 2.6455405076600003,
      "times": [
        2.3735140446600003,
        2.41198991066,
        2.3775463666600003,
        2.37614012666,
        2.61623107066,
        2.36657052766,
        2.6281021366600004,
        2.6455405076600003,
        2.5760127126600003,
        2.3883698476600004
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.58448638276,
      "stddev": 0.16351749531864548,
      "median": 2.60708692516,
      "user": 1.6880985599999998,
      "system": 1.38328628,
      "min": 2.36202500366,
      "max": 2.80510633466,
      "times": [
        2.39212624166,
        2.54418460866,
        2.62400084566,
        2.62304331166,
        2.80510633466,
        2.7462654156600004,
        2.77151450766,
        2.36202500366,
        2.5911305386600003,
        2.38546701966
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5573169633600004,
      "stddev": 0.1075740439247441,
      "median": 1.5503512051600001,
      "user": 1.08566766,
      "system": 1.1831346799999998,
      "min": 1.38313629966,
      "max": 1.7250624816600002,
      "times": [
        1.3991538006600002,
        1.5525029006600002,
        1.5481995096600003,
        1.5448149096600001,
        1.38313629966,
        1.66815861266,
        1.5365304046600001,
        1.7250624816600002,
        1.6437067026600003,
        1.57190401166
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.60894640406,
      "stddev": 0.14110376936791577,
      "median": 1.6162363211600002,
      "user": 1.08448376,
      "system": 1.1919432799999998,
      "min": 1.38500404466,
      "max": 1.8099109056600002,
      "times": [
        1.71428550766,
        1.58850987366,
        1.8099109056600002,
        1.7581825816600003,
        1.7081646836600002,
        1.44949048466,
        1.5392871436600002,
        1.6439627686600002,
        1.4926660466600001,
        1.38500404466
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 278.4 ± 18.9 260.2 310.0 1.11 ± 0.09
pacquet@main 251.0 ± 12.5 234.4 268.8 1.00
pnpr@HEAD 284.3 ± 7.2 268.4 296.6 1.13 ± 0.06
pnpr@main 272.5 ± 8.6 258.1 287.2 1.09 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.27838748588000006,
      "stddev": 0.018924662368393314,
      "median": 0.26901321228,
      "user": 0.26085474,
      "system": 0.54020534,
      "min": 0.26023082378,
      "max": 0.31001180578000004,
      "times": [
        0.26023082378,
        0.26926526278,
        0.30208239978,
        0.30391443278,
        0.31001180578000004,
        0.26418963478,
        0.26681817978000005,
        0.26876116178000004,
        0.26788689378,
        0.27071426378
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.2509571138800001,
      "stddev": 0.01248842585813062,
      "median": 0.25352578978000007,
      "user": 0.20845003999999995,
      "system": 0.5076200399999999,
      "min": 0.23443664278000004,
      "max": 0.26881552478000004,
      "times": [
        0.26217799278000004,
        0.25973912678000005,
        0.26881552478000004,
        0.25762412978000004,
        0.26109882978000004,
        0.23732437578000004,
        0.24159269178000004,
        0.23733437478000002,
        0.24942744978000003,
        0.23443664278000004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.28429235508,
      "stddev": 0.007243920152591472,
      "median": 0.28402258328,
      "user": 0.24258154000000004,
      "system": 0.5631481399999999,
      "min": 0.26839152578000003,
      "max": 0.29655700478,
      "times": [
        0.29655700478,
        0.28832930678,
        0.28576797878000004,
        0.28989917578,
        0.28265683378,
        0.28300658278,
        0.28138599878000004,
        0.28189055978000005,
        0.28503858378,
        0.26839152578000003
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.27252659038,
      "stddev": 0.008636175260630362,
      "median": 0.27188291078000004,
      "user": 0.23008183999999998,
      "system": 0.5208924399999999,
      "min": 0.25812227878000005,
      "max": 0.28716779578,
      "times": [
        0.27186989178000004,
        0.27983281178,
        0.27189592978000005,
        0.26648328878000005,
        0.25812227878000005,
        0.26391045878,
        0.27648146378000005,
        0.26932436378,
        0.28716779578,
        0.28017762078
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.646 ± 0.033 2.580 2.701 1.68 ± 0.13
pacquet@main 2.667 ± 0.077 2.575 2.820 1.69 ± 0.14
pnpr@HEAD 1.612 ± 0.141 1.453 1.856 1.02 ± 0.12
pnpr@main 1.578 ± 0.119 1.443 1.813 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.64564553334,
      "stddev": 0.033186706131477964,
      "median": 2.64972124094,
      "user": 1.65394436,
      "system": 1.4146198,
      "min": 2.5801880339400003,
      "max": 2.70141516394,
      "times": [
        2.65025679494,
        2.62330450394,
        2.62901436494,
        2.5801880339400003,
        2.65233264694,
        2.64918568694,
        2.66655141794,
        2.6760051059400003,
        2.62820161394,
        2.70141516394
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.6669909305400004,
      "stddev": 0.07654046723632968,
      "median": 2.65411413194,
      "user": 1.7961647600000004,
      "system": 1.4086574,
      "min": 2.57451883294,
      "max": 2.81951305394,
      "times": [
        2.67347773594,
        2.81951305394,
        2.73931372794,
        2.6928195019400003,
        2.63475052794,
        2.59859396594,
        2.5999458739400003,
        2.7172477069400003,
        2.61972837794,
        2.57451883294
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6120162146400001,
      "stddev": 0.14081253465351762,
      "median": 1.6211680704400002,
      "user": 1.2224942600000002,
      "system": 1.3009299,
      "min": 1.4528724459400002,
      "max": 1.85577949394,
      "times": [
        1.4528724459400002,
        1.6943366319400002,
        1.4874827329400002,
        1.46319756794,
        1.7032035949400002,
        1.85577949394,
        1.6851632199400002,
        1.73814014594,
        1.5571729209400003,
        1.4828133919400002
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5784751672400001,
      "stddev": 0.11888158384607815,
      "median": 1.5290949874400002,
      "user": 1.2550705599999998,
      "system": 1.3540193,
      "min": 1.44295402194,
      "max": 1.81253706694,
      "times": [
        1.6059338419400002,
        1.6583089019400001,
        1.50336814494,
        1.72138602694,
        1.44295402194,
        1.51202141594,
        1.48390226294,
        1.5461685589400003,
        1.4981714299400002,
        1.81253706694
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 485.4 ± 13.6 463.2 510.2 1.49 ± 0.06
pacquet@main 467.4 ± 21.4 439.4 506.0 1.44 ± 0.08
pnpr@HEAD 326.8 ± 18.2 301.7 348.4 1.00 ± 0.06
pnpr@main 325.5 ± 9.4 315.0 346.0 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.48539788920000004,
      "stddev": 0.013593388830970663,
      "median": 0.48512679589999996,
      "user": 0.6605156,
      "system": 0.76262206,
      "min": 0.4631955539,
      "max": 0.5102482229,
      "times": [
        0.4802361529,
        0.4859272009,
        0.4995597059,
        0.4916113829,
        0.4685068639,
        0.4631955539,
        0.4849266739,
        0.5102482229,
        0.4853269179,
        0.4844402169
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.4673562829,
      "stddev": 0.02141590171625345,
      "median": 0.46382425839999997,
      "user": 0.651708,
      "system": 0.7418335600000001,
      "min": 0.4394225949,
      "max": 0.5060207439000001,
      "times": [
        0.4654517259,
        0.5006795369,
        0.5060207439000001,
        0.46811234090000003,
        0.4394225949,
        0.4726438229,
        0.4474462269,
        0.4526671779,
        0.4621967909,
        0.4589218679
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.3267664327,
      "stddev": 0.018230665956144622,
      "median": 0.3295566349,
      "user": 0.23823089999999997,
      "system": 0.54847916,
      "min": 0.3016517929,
      "max": 0.3483803709,
      "times": [
        0.3383277219,
        0.3207855479,
        0.3167351129,
        0.3046826959,
        0.3016517929,
        0.3082965469,
        0.3483803709,
        0.34497192590000003,
        0.3433198719,
        0.3405127399
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.3255085607,
      "stddev": 0.009401273284991948,
      "median": 0.3222216444,
      "user": 0.22665260000000004,
      "system": 0.5638626600000001,
      "min": 0.3150118039,
      "max": 0.3459891529,
      "times": [
        0.3350080849,
        0.3280797459,
        0.3231943179,
        0.3187386699,
        0.3173966599,
        0.3150118039,
        0.3211070639,
        0.3459891529,
        0.3212489709,
        0.3293111369
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.813 ± 0.023 1.780 1.840 5.54 ± 0.22
pacquet@main 1.782 ± 0.017 1.757 1.811 5.44 ± 0.21
pnpr@HEAD 0.346 ± 0.009 0.337 0.367 1.06 ± 0.05
pnpr@main 0.327 ± 0.013 0.311 0.345 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.81311650382,
      "stddev": 0.02256622501333594,
      "median": 1.81517575212,
      "user": 0.92192604,
      "system": 0.8520314799999997,
      "min": 1.77960654362,
      "max": 1.84035390562,
      "times": [
        1.81939979862,
        1.8320835166199998,
        1.84035390562,
        1.81095170562,
        1.77960654362,
        1.83359690862,
        1.7967163446199998,
        1.83685596162,
        1.79656179162,
        1.78503856162
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.78199371372,
      "stddev": 0.016861061613327788,
      "median": 1.7810633191199998,
      "user": 0.89970014,
      "system": 0.7950931800000001,
      "min": 1.75699887062,
      "max": 1.81141659062,
      "times": [
        1.77970099162,
        1.79079850762,
        1.76016743262,
        1.80213283362,
        1.75699887062,
        1.77472066362,
        1.78565949262,
        1.7759161076199999,
        1.81141659062,
        1.78242564662
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.34582972872,
      "stddev": 0.009403023182134982,
      "median": 0.34153443112000004,
      "user": 0.24683123999999998,
      "system": 0.5897418799999999,
      "min": 0.33707045262,
      "max": 0.36697662262,
      "times": [
        0.34330881162000004,
        0.35595517762000006,
        0.34179535862000004,
        0.34046396862000006,
        0.33924769662000004,
        0.35128246062,
        0.36697662262,
        0.33707045262,
        0.34092323462,
        0.34127350362000003
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.32728505202,
      "stddev": 0.012518680617712918,
      "median": 0.32615933112000006,
      "user": 0.24261974,
      "system": 0.55002828,
      "min": 0.31143068362000004,
      "max": 0.34517301562,
      "times": [
        0.33663173562000004,
        0.32746462662000003,
        0.31328390762,
        0.31852611862,
        0.33476244162,
        0.34517301562,
        0.34447254462000004,
        0.32485403562000004,
        0.31143068362000004,
        0.31625141062000006
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 213.5 ± 15.2 189.5 237.7 2.44 ± 0.18
pacquet@main 202.2 ± 14.6 180.7 233.6 2.31 ± 0.17
pnpr@HEAD 87.6 ± 1.3 84.7 91.7 1.00
pnpr@main 88.5 ± 2.1 84.5 93.5 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.21347976244,
      "stddev": 0.015227979029736492,
      "median": 0.21464571144000003,
      "user": 0.19113844666666663,
      "system": 0.05996223999999999,
      "min": 0.18945343744,
      "max": 0.23768892644000003,
      "times": [
        0.19320386644,
        0.20628997344000002,
        0.23213737244000002,
        0.23768892644000003,
        0.22684760144000002,
        0.22653462044000003,
        0.22812965744000002,
        0.21897035344000002,
        0.21381404544000002,
        0.21464571144000003,
        0.19364994744000003,
        0.18945343744,
        0.20551218644000002,
        0.21638851644,
        0.19893022044000003
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.20224401705538464,
      "stddev": 0.014595451014954285,
      "median": 0.20675565944000002,
      "user": 0.16927334923076923,
      "system": 0.06097740923076925,
      "min": 0.18068483044000003,
      "max": 0.23364589544000003,
      "times": [
        0.21436261944,
        0.21192186744000002,
        0.20675565944000002,
        0.18339798344000002,
        0.23364589544000003,
        0.20906856044000002,
        0.19734864844000002,
        0.18068483044000003,
        0.18801605844000002,
        0.18981842544000002,
        0.20693968644000002,
        0.19934734644000002,
        0.20786464044000003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.08762214007636367,
      "stddev": 0.001317915945919301,
      "median": 0.08756351444000002,
      "user": 0.021166761818181817,
      "system": 0.008736187878787877,
      "min": 0.08472062544000002,
      "max": 0.09169024544000001,
      "times": [
        0.08694447044,
        0.09052070144000002,
        0.08945330844000002,
        0.08765796444000001,
        0.08833657444000001,
        0.08738343744000002,
        0.09169024544000001,
        0.08572196644,
        0.08721548044,
        0.08649861844000001,
        0.08652381444000001,
        0.08758053744000001,
        0.08848912944000001,
        0.08756351444000002,
        0.08823315744000002,
        0.08514568744,
        0.08777776744000002,
        0.08759600644000001,
        0.08872750944,
        0.08472062544000002,
        0.08763887644000001,
        0.08684749544,
        0.08732251044000001,
        0.08721335444000002,
        0.08806498944,
        0.08758361344000001,
        0.08747889444000001,
        0.08682608544,
        0.08790304444000001,
        0.08742723744000001,
        0.08868525844000001,
        0.08740599844000001,
        0.08735274744000002
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.08854969489454545,
      "stddev": 0.0020594723344267117,
      "median": 0.08844039644000001,
      "user": 0.02184670121212121,
      "system": 0.009692590303030301,
      "min": 0.08453113944000001,
      "max": 0.09349697844000002,
      "times": [
        0.08664943144000001,
        0.08453113944000001,
        0.08742194744000001,
        0.08715250944000001,
        0.08771347744,
        0.08823684344000002,
        0.08844039644000001,
        0.09093575144000002,
        0.08726775744000001,
        0.08708116644000001,
        0.08625053944000001,
        0.08782769244000001,
        0.08882262744000001,
        0.08878766244000001,
        0.08674888844,
        0.08795111544,
        0.08862251144000001,
        0.09117869844000001,
        0.08625714144,
        0.08745562144,
        0.08863953244000002,
        0.09349697844000002,
        0.09007117044000001,
        0.08589612144000001,
        0.08882662544000001,
        0.09190665144000001,
        0.09089084644,
        0.08562454944000002,
        0.08991730144000001,
        0.09156759244000001,
        0.09119550044000001,
        0.08870660844000001,
        0.09006753444000001
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 801.1 ± 119.2 622.4 958.7 1.00
pacquet@main 810.3 ± 130.0 603.1 992.0 1.01 ± 0.22
pnpm@HEAD 3101.0 ± 194.0 2880.2 3410.4 3.87 ± 0.62
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.8011403607111112,
      "stddev": 0.11923172343592829,
      "median": 0.7900081186000001,
      "user": 0.7648942755555556,
      "system": 0.12875735555555556,
      "min": 0.6224162526,
      "max": 0.9586778366,
      "times": [
        0.7900081186000001,
        0.9286282676000001,
        0.8024766716,
        0.6224162526,
        0.7404285886,
        0.9586778366,
        0.6773812736,
        0.9392485456,
        0.7509976916000001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.8103102969333333,
      "stddev": 0.1300371431059469,
      "median": 0.8045718796000001,
      "user": 0.75677972,
      "system": 0.12331013333333332,
      "min": 0.6031259036000001,
      "max": 0.9919882826,
      "times": [
        0.9763404286,
        0.8820993076000001,
        0.9919882826,
        0.7137690296,
        0.8045718796000001,
        0.8671898556000001,
        0.6031259036000001,
        0.7195396466,
        0.7341683386000001
      ]
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.1009730591555553,
      "stddev": 0.193972420289132,
      "median": 3.0860107376,
      "user": 4.713615386666667,
      "system": 0.29219002222222223,
      "min": 2.8802362316,
      "max": 3.4103701286,
      "times": [
        2.9027588446,
        3.0345123305999997,
        3.0860107376,
        3.1280352676,
        2.9412373406,
        2.8802362316,
        3.4103701286,
        3.3931797545999998,
        3.1324168966
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.570 ± 0.127 4.434 4.850 1.29 ± 0.04
pacquet@main 4.607 ± 0.167 4.435 4.850 1.30 ± 0.05
pnpr@HEAD 3.541 ± 0.061 3.478 3.682 1.00
pnpr@main 3.580 ± 0.139 3.444 3.796 1.01 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.57040457468,
      "stddev": 0.1272402180023754,
      "median": 4.53757928538,
      "user": 1.9138556400000002,
      "system": 1.4256790000000001,
      "min": 4.43449617338,
      "max": 4.84971694338,
      "times": [
        4.69087079238,
        4.6229050453800005,
        4.84971694338,
        4.49404139638,
        4.43449617338,
        4.60037975838,
        4.49104756138,
        4.56160642038,
        4.44542950538,
        4.51355215038
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.60650502558,
      "stddev": 0.1674350471985381,
      "median": 4.5186283633799995,
      "user": 2.02149484,
      "system": 1.5054956999999998,
      "min": 4.43488706638,
      "max": 4.84956982038,
      "times": [
        4.73953962038,
        4.53201054038,
        4.84911415138,
        4.43488706638,
        4.50524618638,
        4.44051572538,
        4.7349881723800005,
        4.4926070433800005,
        4.48657192938,
        4.84956982038
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.54084457768,
      "stddev": 0.061360507629797605,
      "median": 3.54255159588,
      "user": 1.34171914,
      "system": 1.2913665999999997,
      "min": 3.47790739738,
      "max": 3.68235840738,
      "times": [
        3.4943815373800002,
        3.5756182483800005,
        3.68235840738,
        3.5412402853800002,
        3.55890138138,
        3.48462102138,
        3.4892948093800005,
        3.47790739738,
        3.5438629063800002,
        3.56025978238
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.57950015718,
      "stddev": 0.1388043938429008,
      "median": 3.5204390113800006,
      "user": 1.2752856399999997,
      "system": 1.3043624999999999,
      "min": 3.4439235273800004,
      "max": 3.7961346013800004,
      "times": [
        3.6821644423800004,
        3.4439235273800004,
        3.79414619438,
        3.45093421938,
        3.5032013883800004,
        3.48031330038,
        3.6431420453800003,
        3.4633652183800003,
        3.5376766343800004,
        3.7961346013800004
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13804
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,580.19 ms
(-4.87%)Baseline: 2,712.21 ms
3,254.65 ms
(79.28%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,779.61 ms
(-2.20%)Baseline: 1,819.59 ms
2,183.51 ms
(81.50%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
463.20 ms
(-1.24%)Baseline: 469.00 ms
562.80 ms
(82.30%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
189.45 ms
(-19.92%)Baseline: 236.58 ms
283.90 ms
(66.73%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,366.57 ms
(-3.86%)Baseline: 2,461.46 ms
2,953.75 ms
(80.12%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,434.50 ms
(-2.45%)Baseline: 4,545.90 ms
5,455.08 ms
(81.29%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
260.23 ms
(-13.07%)Baseline: 299.36 ms
359.23 ms
(72.44%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
622.42 ms
(-16.37%)Baseline: 744.23 ms
893.07 ms
(69.69%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13804
Testbedpnpr

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,452.87 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
337.07 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
301.65 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
84.72 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,383.14 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,477.91 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
268.39 ms
🐰 View full continuous benchmarking report in Bencher

Copilot AI review requested due to automatic review settings August 11, 2026 03:17

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.

@zkochan

zkochan commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

Addressed the outside-diff note from the earlier CodeRabbit review (the one it
could not post inline): the removal-override composition case now exists on both
sides.

a catalog edit and a removal override are absorbed in one pass in
test/install/catalogFastUpdate.ts (c41d31d) is the TypeScript twin of the
pacquet a_catalog_edit_and_a_removal_override_are_absorbed_in_one_pass — widen
the catalog range and add is-positive: '-' in the same install, then assert the
registry is never consulted, the catalog entry keeps its locked version under the
new specifier, and is-positive is pruned. Confirmed it fails against the
pre-change src (the install requests @pnpm.e2e/pkg-with-good-optional and
@pnpm.e2e/dep-of-pkg-with-1-dep there), so it does pin the composition rather
than passing either way.


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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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

Inline comments:
In `@pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts`:
- Around line 255-256: Extend the install test’s pruning assertions to also
verify that no key in written.packages starts with is-positive@, matching the
existing written.snapshots check and confirming stale package metadata is
removed from the lockfile.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

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

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 298248e3-f9ee-4a94-a8f5-6dfddd464ca0

📥 Commits

Reviewing files that changed from the base of the PR and between 6543538 and c41d31d.

📒 Files selected for processing (1)
  • pnpm11/installing/deps-installer/test/install/catalogFastUpdate.ts

@qodo-code-review

Copy link
Copy Markdown

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

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

Copilot AI review requested due to automatic review settings August 11, 2026 03:55

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

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

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

@blacksmith-sh

blacksmith-sh Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Found 4 test failures on Blacksmith runners:

Failures

Test View Logs
test/install/newImporterFastUpdate.ts/newImporterFastUpdate View Logs
test/install/newImporterFastUpdate.ts/newImporterFastUpdate View Logs
test/install/newImporterFastUpdate.ts/newImporterFastUpdate View Logs
test/install/newImporterFastUpdate.ts/newImporterFastUpdate View Logs

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

The file arrived with the new-workspace-project handler, after the
composed pipeline had become async, so its four fallback assertions were
comparing a promise to `false`. `toBe` accepts anything, so only a run
catches it.
The check hoisted the read out of the fast-path block, so a caller that
leaves the option undefined now reaches it on every install rather than
only when the fast path opens. The type says the field is required, but
this file already guards it elsewhere.
Copilot AI review requested due to automatic review settings August 11, 2026 11:18
@greptile-apps
greptile-apps Bot dismissed their stale review August 11, 2026 11:18

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

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

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

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

@zkochan
zkochan merged commit 1d5741b into main Aug 11, 2026
38 checks passed
@zkochan
zkochan deleted the fix-13799 branch August 11, 2026 11:48
zkochan added a commit that referenced this pull request Aug 11, 2026
`tryComposeFastUpdates` returns a promise since #13804 made it
compose the catalogs and overrides rewrites, so the added tests were
asserting on the promise object rather than on its result.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.

Compose the catalogs and overrides rewrites with other drift instead of requiring exclusivity

3 participants