Skip to content

fix(deps-resolver): scope the preserve-workspace-link guard to dedupeInjectedDeps - #13755

Merged
zkochan merged 5 commits into
mainfrom
fix-13754
Aug 10, 2026
Merged

zkochan merged 5 commits into
mainfrom
fix-13754

Conversation

@zkochan

@zkochan zkochan commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Since 11.19.0, pnpm deploy symlinked workspace dependencies back into the source workspace instead of injecting copies, so the deploy directory stopped being self-contained — copying it elsewhere (a Dockerfile COPY, a tarball, an artifact upload) left dangling symlinks. Neither forceLegacyDeploy: true nor injectWorkspacePackages: true restored the old behaviour.

The cause is the #10433 guard added in #13112. It keeps a workspace dependency's previously recorded link: when the run does not target it, compensating for dedupeInjectedDeps not running on every re-resolution path. The guard fired regardless of whether that pass was enabled — and pnpm deploy is exactly the configuration where it must not: deploy injects every workspace dependency (deployHook sets dependenciesMeta[...].injected) and disables dedupeInjectedDeps so the deployed tree is self-contained. The freshly resolved file: importer entry was rewritten back to the workspace lockfile's stale link:, which then propagated into the deploy directory's node_modules.

This PR gates the guard on dedupeInjectedDeps. With that pass off nothing may turn an injected workspace dependency back into a link:, so a recorded link: is stale and the fresh file: has to win.

The same hole existed outside deploy: enabling injectWorkspacePackages with dedupeInjectedDeps: false on a workspace whose lockfile already recorded link: never switched those dependencies to injected copies. Verified against both binaries before and after.

It also fixes #13618, the same regression reported against a workspace dependency that carries peerDependencies. Its exact reproduction now yields the expected readlink deploy/node_modules/shared → .pnpm/shared@[email protected]/node_modules/shared.

Closes #13754
Closes #13618

Squash Commit Body

The pnpm/pnpm#10433 guard keeps a workspace dependency's previously recorded
`link:` when the run doesn't target it, compensating for `dedupeInjectedDeps`
not running on every re-resolution path. It fired regardless of whether that
pass was enabled, so with it disabled a freshly resolved `file:` was rewritten
back to a stale `link:`.

`pnpm deploy` is exactly that configuration: it injects every workspace
dependency and disables `dedupeInjectedDeps` so the deployed tree is
self-contained. Since 11.19.0 the deploy directory instead symlinked its
workspace dependencies back into the source workspace, so copying it elsewhere
left dangling links. Enabling `injectWorkspacePackages` with
`dedupeInjectedDeps` off had the same problem: already-linked workspace
dependencies never switched to injected copies.

Gate the guard on `dedupeInjectedDeps`; with the pass off nothing may turn an
injected workspace dependency back into a `link:`, so the fresh `file:` has to
win. The pacquet side withholds the previous importers from its lockfile
builder for the same reason — its `deploy` was already unaffected (it resolves
the deploy dir as a new importer with no previous entry), but the
`injectWorkspacePackages` toggle reproduced there too.

Closes pnpm/pnpm#13754
Closes pnpm/pnpm#13618

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

Summary by CodeRabbit

  • Bug Fixes

    • Fixed pnpm deploy so injected workspace dependencies are included in the deploy directory when workspace injection is enabled.
    • Ensured workspace links are rewritten to deployed package copies when dependency deduplication is disabled.
    • Improved repeated installs to update stale workspace references and maintain accurate lockfile entries.
    • Fixed legacy deployments so dependencies resolve within the deploy directory.
  • Tests

    • Added regression coverage for injected dependencies, repeated installs, lockfile updates, and deployment behavior.

zkochan and others added 2 commits August 10, 2026 11:52
…InjectedDeps

The #10433 guard keeps a workspace dependency's previously recorded
`link:` when the run doesn't target it, compensating for `dedupeInjectedDeps`
not running on every re-resolution path. It fired regardless of whether that
pass was enabled, so with it disabled a freshly resolved `file:` was rewritten
back to a stale `link:`.

`pnpm deploy` is exactly that configuration: it injects every workspace
dependency and disables `dedupeInjectedDeps` so the deployed tree is
self-contained. Since 11.19.0 the deploy directory instead symlinked its
workspace dependencies back into the source workspace, so copying it elsewhere
left dangling links. Enabling `injectWorkspacePackages` with
`dedupeInjectedDeps` off had the same problem: already-linked workspace
dependencies never switched to injected copies.

Gate the guard on `dedupeInjectedDeps`; with the pass off nothing may turn an
injected workspace dependency back into a `link:`, so the fresh `file:` has to
win. The pacquet side withholds the previous importers from its lockfile
builder for the same reason.

Fixes #13754

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…in the new deploy test

`ProjectSnapshot.dependencies` is optional, so the assertion needs the
non-null assertion the sibling tests use.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings August 10, 2026 09:56

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 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4153966d-16f7-4a41-a9c5-df24462114a1

📥 Commits

Reviewing files that changed from the base of the PR and between 381d636 and 88207a3.

📒 Files selected for processing (5)
  • pnpm/crates/cli/tests/suite/dedupe_injected_deps.rs
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs
  • pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs
  • pnpm11/installing/deps-installer/test/install/injectWorkspacePackagesPersistence.test.ts
  • pnpm11/installing/deps-resolver/src/index.ts
💤 Files with no reviewable changes (1)
  • pnpm11/installing/deps-resolver/src/index.ts
🚧 Files skipped from review as they are similar to previous changes (4)
  • pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs
  • pnpm/crates/cli/tests/suite/dedupe_injected_deps.rs
  • pnpm11/installing/deps-installer/test/install/injectWorkspacePackagesPersistence.test.ts
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs

📝 Walkthrough

Walkthrough

The change updates workspace dependency resolution so stale link: entries become file: references when dedupeInjectedDeps is disabled. It adds install and deploy regression tests and release metadata for pnpm, pacquet, and the dependency resolver package.

Changes

Workspace dependency injection

Layer / File(s) Summary
Control workspace link preservation
pnpm11/installing/deps-resolver/src/index.ts, pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs
Previous link: references are preserved only when dedupeInjectedDeps is enabled.
Gate previous importer snapshots
pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs
Fresh-lockfile installation omits previous importer snapshots when deduplication is disabled.
Validate installs and deploy output
pnpm/crates/cli/tests/suite/dedupe_injected_deps.rs, pnpm11/installing/deps-installer/test/install/injectWorkspacePackagesPersistence.test.ts, pnpm11/releasing/commands/test/deploy/deploy.test.ts, .changeset/deploy-injects-workspace-packages-again.md
Regression tests verify link: to file: replacement, separate dependency materialization, and self-contained legacy deploy output. Release metadata documents the behavior.

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

Sequence Diagram(s)

sequenceDiagram
  participant WorkspaceInstall
  participant DependencyResolver
  participant LockfileFinalization
  participant LegacyDeploy
  WorkspaceInstall->>DependencyResolver: Resolve injected workspace dependency
  DependencyResolver->>LockfileFinalization: Submit resolved file: reference
  LockfileFinalization-->>WorkspaceInstall: Write file:packages/b when dedupeInjectedDeps is disabled
  WorkspaceInstall->>LegacyDeploy: Deploy using shared lockfile
  LegacyDeploy-->>WorkspaceInstall: Materialize dependency inside deploy directory
Loading

Assessment against linked issues

Objective Addressed Explanation
Ensure pnpm deploy --legacy packs workspace dependencies with peer dependencies into the deploy directory [#13618] ✅
Ensure pnpm deploy injects workspace dependencies into a self-contained deploy directory [#13754] ✅
Rewrite stale workspace link: entries to file: entries when injection is enabled [#13754] ✅

Possibly related issues

Possibly related PRs

  • pnpm/pnpm#13112 — Modifies related workspace link: preservation logic in dependency resolution and lockfile generation.
  • pnpm/pnpm#13679 — Modifies the same Rust regression test file.

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

✨ 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-13754

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

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

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


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

❤️ Share

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

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix deploy/injected workspace deps reverting to stale link: when dedupeInjectedDeps is off

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Gate the preserve-workspace-link guard on dedupeInjectedDeps to keep injected deps as file:.
• Withhold previous lockfile importers when dedupeInjectedDeps is disabled to avoid stale link:
 reuse.
• Add regression tests for pnpm deploy and injectWorkspacePackages with `dedupeInjectedDeps:
 false`.
Diagram

graph TD
  deploy["pnpm deploy"] --> cfg["Config: dedupeInjectedDeps"]
  cfg --> ts["TS deps-resolver"]
  cfg --> rust["Rust fresh-lockfile install"]
  ts --> builder["Lockfile builder"] --> lock[("pnpm-lock.yaml")] --> out["deploy/node_modules"]
  rust --> builder
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Always run dedupeInjectedDeps during deploy
  • ➕ Keeps all guard logic and reuse behavior consistent across resolution paths
  • ➕ Avoids needing special-case gating around previous importer reuse
  • ➖ Deploy explicitly wants injected copies (self-contained output), so deduping back to link: is undesirable
  • ➖ Could reintroduce symlinks or other non-self-contained artifacts, undermining deploy guarantees
2. Add a dedicated deploy-mode flag to disable link preservation
  • ➕ More explicit than tying behavior to dedupeInjectedDeps
  • ➕ Allows fine-grained future control if other commands need similar behavior
  • ➖ Introduces a new mode surface area and branching behavior to maintain
  • ➖ Harder to reason about than aligning with the existing dedupeInjectedDeps semantic contract
3. Lockfile migration/cleanup to drop stale link: entries when injection is requested
  • ➕ Could fix existing lockfiles without relying on runtime conditions
  • ➕ May reduce future churn for users stuck with historical link: snapshots
  • ➖ More intrusive and potentially risky (mutating lockfiles outside the immediate command intent)
  • ➖ Doesn’t address the core runtime bug: stale reuse when dedupe is disabled

Recommendation: Proceed with the current approach: key the guard and prior-importer reuse to dedupeInjectedDeps. It matches the underlying rationale of the guard (compensating for dedupe not running on some paths) and prevents any code path from rewriting a newly injected file: back into a stale link: when dedupe is disabled (the deploy + injected-copies scenario).

Files changed (7) +250 / -10

Bug fix (3) +27 / -9
dependencies_graph_to_lockfile.rsDocument guard assumptions in lockfile importer finalization +9/-7

Document guard assumptions in lockfile importer finalization

• Clarifies that 'previous_importers' is intentionally absent when 'dedupeInjectedDeps' is disabled, effectively disabling the preserve-link guard. Updates comments around the pnpm/pnpm#10433 guard to reflect that the caller controls whether compensation is needed.

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

install_with_fresh_lockfile.rsOnly pass previous importers when dedupeInjectedDeps is enabled +10/-1

Only pass previous importers when dedupeInjectedDeps is enabled

• Filters 'wanted_lockfile.importers' out of the guard inputs when 'config.dedupe_injected_deps' is false. Prevents stale 'link:' entries from overriding freshly resolved injected 'file:' refs in fresh-lockfile installs (notably deploy).

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

index.tsGate preserve-workspace-link guard on dedupeInjectedDeps +8/-1

Gate preserve-workspace-link guard on dedupeInjectedDeps

• Introduces 'preserveDedupedWorkspaceLinks' and applies it to the logic that preserves a prior 'link:' when a dep resolves to 'file:' and is not update-targeted. Ensures the guard does not run when 'dedupeInjectedDeps' is disabled, so injected 'file:' refs are not rewritten back to stale 'link:' entries.

pnpm11/installing/deps-resolver/src/index.ts

Tests (3) +216 / -1
dedupe_injected_deps.rsRust CLI regression test for injected deps with dedupe disabled +99/-1

Rust CLI regression test for injected deps with dedupe disabled

• Adds a new integration test ensuring an injected workspace dependency replaces a previously recorded 'link:' with a 'file:' ref when 'dedupeInjectedDeps: false'. Verifies both lockfile contents and that node_modules contains a materialized injected copy rather than a symlink into the source workspace.

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

injectWorkspacePackagesPersistence.test.tsTS test: injected workspace deps switch from link: to file: when dedupe off +55/-0

TS test: injected workspace deps switch from link: to file: when dedupe off

• Adds a regression test proving that with 'dedupeInjectedDeps: false', enabling 'injectWorkspacePackages' rewrites a workspace dependency from 'link:' to 'file:' in the lockfile. Encodes the same invariant deploy relies on for self-contained outputs.

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

deploy.test.tsDeploy regression test: legacy deploy must not symlink into workspace +62/-0

Deploy regression test: legacy deploy must not symlink into workspace

• Adds a regression test asserting legacy deploy injects a workspace dependency even when the shared workspace lockfile records it as 'link:'. Validates the deployed node_modules realpath points into the deploy directory’s virtual store, not the source workspace.

pnpm11/releasing/commands/test/deploy/deploy.test.ts

Documentation (1) +7 / -0
deploy-injects-workspace-packages-again.mdChangeset: document deploy injection regression fix +7/-0

Changeset: document deploy injection regression fix

• Adds a patch changeset for @pnpm/installing.deps-resolver, pacquet, and pnpm. Documents that deploy is self-contained again (workspace deps injected instead of symlinked) and that injected installs rewrite stale link: entries when dedupeInjectedDeps is disabled.

.changeset/deploy-injects-workspace-packages-again.md

@greptile-apps

greptile-apps Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (3): Last reviewed commit: "test(deps-resolver): anchor the new regr..." | Re-trigger Greptile

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Regression comment is historical ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
Newly added test comments are written as historical notes (e.g., explicitly labeled a “Regression
test for …” and describing the prior buggy behavior in past tense like “guard leaking…”), rather
than documenting the current contract/invariant the tests assert. Per the guideline, these comments
should be rewritten to state present-tense expectations and may optionally reference the linked
issue without “regression/previously” framing.
Code

pnpm11/releasing/commands/test/deploy/deploy.test.ts[R109-112]

+// Regression test for https://github.com/pnpm/pnpm/issues/13754
+// The legacy deploy injects every workspace dependency, so the deployed
+// directory must not reference the workspace it was built from, even though the
+// shared lockfile it re-resolves records those dependencies as `link:`.
Relevance

●●● Strong

Recent reviews accepted rewriting new comments to present-tense invariants and avoiding
historical/regression framing.

PR-#13727
PR-#13383
PR-#13125

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 requires that added/modified comments describe current behavior/contracts
and forbids historical implementation narrative. The cited additions violate this by explicitly
framing a test as a regression and by narrating the prior failure mode in past tense (“guard leaking
into this case left…”), which documents what used to happen rather than stating the invariant the
code is expected to satisfy now; therefore the comments should be rephrased as present-tense
guarantees while keeping an issue link only for external context.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm11/releasing/commands/test/deploy/deploy.test.ts[109-112]
pnpm/crates/cli/tests/suite/dedupe_injected_deps.rs[293-296]

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

## Issue description
Newly added test comments use historical framing (e.g., “Regression test for …”) and past-tense descriptions of a previous bug/implementation (e.g., “guard leaking… left…”). The PR guideline requires inline comments to describe the *current* behavior/contract/invariant being asserted, not historical context, so these comments should be rewritten in present tense (optionally retaining an issue link without “regression/previously” phrasing).

## Issue Context
Historical notes in code comments tend to become stale; instead of explaining what used to be broken, the comment should state the invariant the test enforces (what must be true now). You can keep the issue link for background, but reword the comment to a present-tense expectation (e.g., “Legacy deploy must produce a self-contained deploy dir …”).

## Fix Focus Areas
- pnpm11/releasing/commands/test/deploy/deploy.test.ts[109-112]
- pnpm/crates/cli/tests/suite/dedupe_injected_deps.rs[293-296]

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



Informational

2. Misleading Option doc 🐞 Bug ⚙ Maintainability ⭐ New
Description
GraphToLockfileOptions.previous_importers is now documented as None only on first install or
when dedupeInjectedDeps is off, but other code paths can also make the previous lockfile
unavailable (e.g. config.lockfile == false). This can mislead future maintenance of the
pnpm/pnpm#10433 guard by conflating “no prior lockfile exists” with “no prior importer map available
in this run.”
Code

pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs[R122-124]

    /// `build_importer` and pnpm/pnpm#10433. `None` when there is no
-    /// previous lockfile (a first install).
+    /// previous lockfile (a first install) or when `dedupeInjectedDeps`
+    /// is off.
Relevance

●●● Strong

Team often accepts clarifying/fixing misleading comments/docs in this crate; low-risk
maintainability tweak.

PR-#13536
PR-#13661
PR-#13727

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The updated doc comment claims None corresponds to “no previous lockfile (a first install)” or
dedupeInjectedDeps off, but other parts of the installer explicitly describe scenarios where no
wanted lockfile is available even when one may exist on disk (e.g. lockfile I/O disabled). This
makes the doc comment incomplete/misleading for maintainers.

pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs[118-125]
pnpm/crates/package-manager/src/install/apply_materialization.rs[295-300]

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

### Issue description
`GraphToLockfileOptions.previous_importers`'s doc comment currently implies an exhaustive set of reasons it can be `None` (first install or `dedupeInjectedDeps` off). However, other flows can also omit the wanted/previous lockfile from this code path (e.g. `config.lockfile == false`), so the comment is incomplete and can mislead future changes around the pnpm/pnpm#10433 guard.

### Issue Context
The guard logic uses `previous_importers` to decide whether to preserve a prior `link:` entry. This PR changes the documented meaning of `None`, so it should match the actual semantics: “no prior importer map available to this run,” not necessarily “no previous lockfile exists on disk.”

### Fix Focus Areas
- pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs[118-125]

ⓘ 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 reply 'qodo' on any finding to push back, ask questions, or dig deeper

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous review results

Review updated until commit 88207a3

Results up to commit 10c2eff ⚖️ Balanced


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


Remediation recommended
1. Regression comment is historical ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
Newly added test comments are written as historical notes (e.g., explicitly labeled a “Regression
test for …” and describing the prior buggy behavior in past tense like “guard leaking…”), rather
than documenting the current contract/invariant the tests assert. Per the guideline, these comments
should be rewritten to state present-tense expectations and may optionally reference the linked
issue without “regression/previously” framing.
Code

pnpm11/releasing/commands/test/deploy/deploy.test.ts[R109-112]

+// Regression test for https://github.com/pnpm/pnpm/issues/13754
+// The legacy deploy injects every workspace dependency, so the deployed
+// directory must not reference the workspace it was built from, even though the
+// shared lockfile it re-resolves records those dependencies as `link:`.
Relevance

●●● Strong

Recent reviews accepted rewriting new comments to present-tense invariants and avoiding
historical/regression framing.

PR-#13727
PR-#13383
PR-#13125

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 requires that added/modified comments describe current behavior/contracts
and forbids historical implementation narrative. The cited additions violate this by explicitly
framing a test as a regression and by narrating the prior failure mode in past tense (“guard leaking
into this case left…”), which documents what used to happen rather than stating the invariant the
code is expected to satisfy now; therefore the comments should be rephrased as present-tense
guarantees while keeping an issue link only for external context.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm11/releasing/commands/test/deploy/deploy.test.ts[109-112]
pnpm/crates/cli/tests/suite/dedupe_injected_deps.rs[293-296]

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

## Issue description
Newly added test comments use historical framing (e.g., “Regression test for …”) and past-tense descriptions of a previous bug/implementation (e.g., “guard leaking… left…”). The PR guideline requires inline comments to describe the *current* behavior/contract/invariant being asserted, not historical context, so these comments should be rewritten in present tense (optionally retaining an issue link without “regression/previously” phrasing).

## Issue Context
Historical notes in code comments tend to become stale; instead of explaining what used to be broken, the comment should state the invariant the test enforces (what must be true now). You can keep the issue link for background, but reword the comment to a present-tense expectation (e.g., “Legacy deploy must produce a self-contained deploy dir …”).

## Fix Focus Areas
- pnpm11/releasing/commands/test/deploy/deploy.test.ts[109-112]
- pnpm/crates/cli/tests/suite/dedupe_injected_deps.rs[293-296]

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

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

github-actions Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     13.6±0.63ms    27.6 MB/sec    1.09     14.8±0.46ms    25.3 MB/sec
packument/parse                                  1.04     39.9±0.62µs  1664.3 MB/sec    1.00     38.2±0.19µs  1736.6 MB/sec
tarball/download_dependency                      1.23      3.2±0.30ms  1337.1 KB/sec    1.00      2.6±0.13ms  1645.9 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.17    226.3±8.71ms 70.7 KElem/sec    1.00    193.0±3.13ms 82.9 KElem/sec
workspace_resolution/hoist_heavy                 1.02    309.0±5.91ms        ? ?/sec    1.00   303.1±20.83ms        ? ?/sec

@codecov-commenter

codecov-commenter commented Aug 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.11%. Comparing base (9463e98) to head (88207a3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13755      +/-   ##
==========================================
- Coverage   88.12%   88.11%   -0.01%     
==========================================
  Files         622      622              
  Lines      101125   101127       +2     
==========================================
- Hits        89118    89110       -8     
- Misses      12007    12017      +10     

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

…ous why

The deploy rationale is pinned by the regression tests and the linked issue;
repeating it at four sites just gives four copies to drift.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 10, 2026 10:07

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 381d636

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

… gate

The named boolean and the regression tests carry the meaning; the remaining
Rust lines only correct statements that the gate made false.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 10, 2026 10:12

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.

Copilot AI review requested due to automatic review settings August 10, 2026 10:13

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 Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 88207a3

@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 10, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 88207a3ace17

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.693 ± 0.160 2.487 2.937 1.79 ± 0.27
pacquet@main 2.540 ± 0.161 2.358 2.789 1.69 ± 0.26
pnpr@HEAD 1.501 ± 0.206 1.353 2.005 1.00
pnpr@main 1.515 ± 0.150 1.360 1.758 1.01 ± 0.17
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6928548664800003,
      "stddev": 0.1600009632150958,
      "median": 2.65097490518,
      "user": 2.42399798,
      "system": 1.8567698999999998,
      "min": 2.48719629918,
      "max": 2.9365177181799997,
      "times": [
        2.56708047918,
        2.9365177181799997,
        2.5792307541799997,
        2.6290267631799997,
        2.80209086718,
        2.82587067818,
        2.8945680441799997,
        2.67292304718,
        2.48719629918,
        2.53404401418
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.5399995244799998,
      "stddev": 0.16096167835177555,
      "median": 2.50452261918,
      "user": 1.69036258,
      "system": 1.368001,
      "min": 2.3580324671799997,
      "max": 2.7891651281799996,
      "times": [
        2.47469667118,
        2.35913092318,
        2.7891651281799996,
        2.48736172118,
        2.68188914918,
        2.74240308418,
        2.5216835171799996,
        2.36564330018,
        2.3580324671799997,
        2.61998928318
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5007977793799998,
      "stddev": 0.2062664389922308,
      "median": 1.39398264168,
      "user": 1.22979088,
      "system": 1.3187454000000003,
      "min": 1.3531473841800001,
      "max": 2.00530468318,
      "times": [
        1.52071149518,
        2.00530468318,
        1.67363642018,
        1.3973408231800002,
        1.39062446018,
        1.36072542818,
        1.3531473841800001,
        1.55385878618,
        1.38107897418,
        1.37154933918
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5148140480800003,
      "stddev": 0.15016456248548588,
      "median": 1.5038521876800002,
      "user": 1.08914088,
      "system": 1.1478977,
      "min": 1.35955479618,
      "max": 1.75780281818,
      "times": [
        1.43225983618,
        1.57544453918,
        1.5786391181800001,
        1.75780281818,
        1.3619210371800001,
        1.35955479618,
        1.7288076781800001,
        1.37077101518,
        1.57579906618,
        1.40714057618
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 262.1 ± 8.0 249.4 275.1 1.00
pacquet@main 263.2 ± 12.6 248.8 286.9 1.00 ± 0.06
pnpr@HEAD 304.7 ± 27.0 272.6 352.5 1.16 ± 0.11
pnpr@main 299.3 ± 19.8 278.0 347.9 1.14 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.26208461573999997,
      "stddev": 0.007986255588178432,
      "median": 0.26135577804,
      "user": 0.23936609999999994,
      "system": 0.5164180999999999,
      "min": 0.24939747904000004,
      "max": 0.27514838704,
      "times": [
        0.27166492504,
        0.26729310004,
        0.27514838704,
        0.26573483004,
        0.25650217304,
        0.24939747904000004,
        0.25928162104,
        0.25618219104,
        0.26342993504,
        0.25621151604
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.26322890743999994,
      "stddev": 0.012608490104875508,
      "median": 0.26050538854,
      "user": 0.22753379999999995,
      "system": 0.5326934,
      "min": 0.24876710704000002,
      "max": 0.28694240604,
      "times": [
        0.28154014604,
        0.24876710704000002,
        0.25036390004,
        0.26611462404,
        0.28694240604,
        0.25927110204,
        0.25392012904,
        0.25725310804,
        0.26637687704,
        0.26173967504
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30466017104,
      "stddev": 0.026981589141403486,
      "median": 0.30066235054,
      "user": 0.24335299999999999,
      "system": 0.5842486,
      "min": 0.27260298804,
      "max": 0.35246888804,
      "times": [
        0.27260298804,
        0.28640059604,
        0.29028334004,
        0.28323210904,
        0.35246888804,
        0.31540395704,
        0.31187248404,
        0.34274161404,
        0.31104136104,
        0.28055437303999997
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.29925576714,
      "stddev": 0.019785833964525587,
      "median": 0.29596714054,
      "user": 0.272642,
      "system": 0.5438230999999999,
      "min": 0.27800233204,
      "max": 0.34787214204,
      "times": [
        0.30507743304,
        0.34787214204,
        0.30011686404,
        0.27800233204,
        0.27871044404,
        0.29068558704,
        0.29378589804,
        0.29155407004,
        0.30860451804,
        0.29814838304
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.773 ± 0.153 2.611 3.077 1.70 ± 0.19
pacquet@main 2.697 ± 0.027 2.661 2.738 1.65 ± 0.16
pnpr@HEAD 1.635 ± 0.159 1.443 1.848 1.00
pnpr@main 1.702 ± 0.164 1.502 1.988 1.04 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.7733268664799997,
      "stddev": 0.15252052876251307,
      "median": 2.7138884774800003,
      "user": 2.0182042399999998,
      "system": 1.64208322,
      "min": 2.6114767274800004,
      "max": 3.0771844764800003,
      "times": [
        2.6114767274800004,
        2.73635459648,
        2.94143570148,
        2.65731721448,
        2.6711267474800002,
        2.69142235848,
        2.64273274348,
        2.87588529448,
        3.0771844764800003,
        2.82833280448
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.6969004413799995,
      "stddev": 0.0266555493178287,
      "median": 2.69907397298,
      "user": 1.8541667399999997,
      "system": 1.55495502,
      "min": 2.66131548348,
      "max": 2.73841997748,
      "times": [
        2.71701334148,
        2.66641838348,
        2.70180360248,
        2.6722770324800003,
        2.71971862048,
        2.71926755248,
        2.73841997748,
        2.69634434348,
        2.6764260764800003,
        2.66131548348
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6353278787800005,
      "stddev": 0.1587190476020478,
      "median": 1.6566346179800002,
      "user": 1.1542179399999999,
      "system": 1.28684322,
      "min": 1.4428521734800002,
      "max": 1.84836398248,
      "times": [
        1.4705101684800002,
        1.46109329548,
        1.77457764948,
        1.4428521734800002,
        1.6457283934800002,
        1.7852374714800001,
        1.77646148348,
        1.6675408424800002,
        1.84836398248,
        1.4809133274800002
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.7015402444799999,
      "stddev": 0.16416123887837394,
      "median": 1.71723697748,
      "user": 1.4120138399999997,
      "system": 1.53761232,
      "min": 1.50212184048,
      "max": 1.98751916348,
      "times": [
        1.59919540448,
        1.70805957948,
        1.50212184048,
        1.53610834848,
        1.98751916348,
        1.7425710354800001,
        1.54707723148,
        1.9387405204800001,
        1.7275949454800001,
        1.72641437548
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 541.2 ± 32.0 503.2 595.6 1.79 ± 0.12
pacquet@main 513.0 ± 33.8 457.7 570.1 1.70 ± 0.12
pnpr@HEAD 302.3 ± 9.3 283.3 313.5 1.00
pnpr@main 348.2 ± 22.3 308.4 385.2 1.15 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.5411732974400001,
      "stddev": 0.0319512955723359,
      "median": 0.5364605275400001,
      "user": 0.74083864,
      "system": 0.8311752199999999,
      "min": 0.50316267954,
      "max": 0.5956090405400001,
      "times": [
        0.54351468154,
        0.5294063735400001,
        0.5227260985400001,
        0.5136612975400001,
        0.5855339795400001,
        0.5956090405400001,
        0.50728493354,
        0.50316267954,
        0.55830694654,
        0.5525269435400001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.51302234554,
      "stddev": 0.03379332411394854,
      "median": 0.51442132704,
      "user": 0.7158197399999998,
      "system": 0.78131612,
      "min": 0.45766771254,
      "max": 0.57011163054,
      "times": [
        0.54808523854,
        0.5124351315400001,
        0.47255731154,
        0.51658328354,
        0.53503429954,
        0.57011163054,
        0.48890619354000003,
        0.5159538395400001,
        0.51288881454,
        0.45766771254
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30225431234,
      "stddev": 0.009318604260382125,
      "median": 0.30480802003999996,
      "user": 0.19421963999999997,
      "system": 0.53902132,
      "min": 0.28330347354,
      "max": 0.31353200354,
      "times": [
        0.28990248654,
        0.28330347354,
        0.29935074854,
        0.30504313654,
        0.31176855654,
        0.30487442053999997,
        0.30305961554,
        0.30474161954,
        0.31353200354,
        0.30696706254
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.34822678723999995,
      "stddev": 0.022289720715054532,
      "median": 0.35063492354000003,
      "user": 0.24744634,
      "system": 0.59769852,
      "min": 0.30841274754,
      "max": 0.38523350054,
      "times": [
        0.33286204154,
        0.30841274754,
        0.33008353554,
        0.33753235554,
        0.35109173754,
        0.36025196554,
        0.37392985154,
        0.35269202754,
        0.35017810954,
        0.38523350054
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.771 ± 0.084 1.713 1.953 5.85 ± 0.31
pacquet@main 1.711 ± 0.008 1.698 1.721 5.65 ± 0.13
pnpr@HEAD 0.303 ± 0.007 0.292 0.311 1.00
pnpr@main 0.305 ± 0.005 0.298 0.313 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.77100965686,
      "stddev": 0.08433843773745496,
      "median": 1.73030865316,
      "user": 0.85483552,
      "system": 0.84650168,
      "min": 1.7134778381600002,
      "max": 1.95279746616,
      "times": [
        1.73223767116,
        1.89642193616,
        1.95279746616,
        1.78452126516,
        1.71662292316,
        1.7259076151600001,
        1.73490412616,
        1.72837963516,
        1.7134778381600002,
        1.72482609216
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.7109310477600002,
      "stddev": 0.007600231045438784,
      "median": 1.7110510686600002,
      "user": 0.77656192,
      "system": 0.73330838,
      "min": 1.69823205316,
      "max": 1.72121139316,
      "times": [
        1.70249272716,
        1.7116973291600002,
        1.71866322016,
        1.71448426016,
        1.70693639516,
        1.71040480816,
        1.71918775716,
        1.69823205316,
        1.72121139316,
        1.7060005341600002
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30262755166,
      "stddev": 0.006633474306822748,
      "median": 0.30340790015999997,
      "user": 0.21000052,
      "system": 0.52433748,
      "min": 0.29219621316,
      "max": 0.31109355516,
      "times": [
        0.30043797416,
        0.29639237516,
        0.29692465616,
        0.31109355516,
        0.30906542216,
        0.30873862616000003,
        0.30734464516,
        0.29770422316,
        0.30637782616,
        0.29219621316
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30543651876,
      "stddev": 0.0052809888776418875,
      "median": 0.30447727666,
      "user": 0.21314122000000002,
      "system": 0.5279424799999999,
      "min": 0.29823982016,
      "max": 0.31253072916,
      "times": [
        0.31202320316,
        0.29823982016,
        0.30922811716,
        0.30101967816,
        0.31253072916,
        0.30125647416,
        0.31066821616,
        0.30442638616,
        0.30044439616,
        0.30452816716000003
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 209.3 ± 19.8 181.0 258.4 2.34 ± 0.24
pacquet@main 206.1 ± 14.3 183.0 233.9 2.30 ± 0.18
pnpr@HEAD 89.6 ± 3.3 85.9 99.4 1.00
pnpr@main 90.6 ± 3.7 85.9 100.4 1.01 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.20927626919384618,
      "stddev": 0.01976266321699745,
      "median": 0.20764967404,
      "user": 0.18169174307692307,
      "system": 0.05346912615384615,
      "min": 0.18103073904000003,
      "max": 0.25842324703999997,
      "times": [
        0.22393810804000003,
        0.21249523704000003,
        0.20146904804000001,
        0.22088221104000003,
        0.20738586604000003,
        0.19562869404000002,
        0.22009447904,
        0.25842324703999997,
        0.21140989504000002,
        0.19119088604,
        0.20764967404,
        0.18899341504000003,
        0.18103073904000003
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.20607346646857147,
      "stddev": 0.014287721902778956,
      "median": 0.20944166304000003,
      "user": 0.17324446285714284,
      "system": 0.06290327999999999,
      "min": 0.18298832004,
      "max": 0.23387682104000002,
      "times": [
        0.20983287904000003,
        0.18298832004,
        0.21366786204000002,
        0.18757825404000003,
        0.22234105404,
        0.20125183004000002,
        0.18841213204,
        0.20476270404000002,
        0.21194277704000003,
        0.20905044704000003,
        0.21351851104000003,
        0.23387682104000002,
        0.21323692104000003,
        0.19256801804
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.08957888888848482,
      "stddev": 0.003251398368887753,
      "median": 0.08921330904,
      "user": 0.023331516969696972,
      "system": 0.009103761212121211,
      "min": 0.08588629204,
      "max": 0.09937841704,
      "times": [
        0.08594178604,
        0.08588629204,
        0.08873935904000001,
        0.08593663704,
        0.08592743004,
        0.08927554704,
        0.09573182004,
        0.08589951804,
        0.08806481904,
        0.09237652004000001,
        0.09228990604,
        0.09013203804,
        0.08846187704,
        0.09384055204,
        0.09231260804000001,
        0.09097252904,
        0.09222322104,
        0.09448618704,
        0.09937841704,
        0.08960239104,
        0.08826335304,
        0.09007086304,
        0.08618026504,
        0.08809527704,
        0.08668082604,
        0.08743595704,
        0.08666812304,
        0.09140875004,
        0.08640230304,
        0.08921330904,
        0.08983811404,
        0.08720991204,
        0.09115682604
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.0905982059775,
      "stddev": 0.003682619074944685,
      "median": 0.08989413004,
      "user": 0.02330782,
      "system": 0.0101746775,
      "min": 0.08589678104,
      "max": 0.10042519704,
      "times": [
        0.08810526604,
        0.08639430704,
        0.08978350204,
        0.10042519704,
        0.09887274604,
        0.09577055204,
        0.09589536804,
        0.09191893804,
        0.09168588004,
        0.09014782704,
        0.09272419204,
        0.08914241704,
        0.09556249104,
        0.08833797304,
        0.08735960404,
        0.08703039504,
        0.09052398504,
        0.08805920004000001,
        0.09199901904,
        0.09314354204,
        0.09000475804000001,
        0.09078992504,
        0.08745684604,
        0.08849612104,
        0.09376897804,
        0.08853369104,
        0.09212931404000001,
        0.08729142504,
        0.08589678104,
        0.08782505904,
        0.08636275904,
        0.08770453204
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 824.4 ± 116.1 679.5 983.5 1.00
pacquet@main 1020.3 ± 272.9 753.1 1506.8 1.24 ± 0.37
pnpm@HEAD 3166.3 ± 159.2 2967.0 3407.6 3.84 ± 0.57
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.8244205033777777,
      "stddev": 0.1161157398571032,
      "median": 0.8019213176,
      "user": 0.8064713888888888,
      "system": 0.13277163111111112,
      "min": 0.6794815746,
      "max": 0.9835299026000001,
      "times": [
        0.7179229566,
        0.6794815746,
        0.9835299026000001,
        0.8014534876,
        0.9751387466,
        0.8100633456,
        0.9396819166,
        0.7105912826,
        0.8019213176
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.0202870331555556,
      "stddev": 0.2729219826755672,
      "median": 0.8927645486,
      "user": 1.0054917222222222,
      "system": 0.1797916311111111,
      "min": 0.7531465586,
      "max": 1.5067556246,
      "times": [
        0.7531465586,
        0.8597748266,
        1.0717567246,
        0.8140321166,
        0.8927645486,
        1.0299977046,
        1.4252662506,
        0.8290889436,
        1.5067556246
      ]
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.1662809284888893,
      "stddev": 0.15918043163942572,
      "median": 3.1742996516,
      "user": 4.869449499999998,
      "system": 0.2727498533333333,
      "min": 2.9669895876,
      "max": 3.4076301966,
      "times": [
        3.1898084386,
        3.1742996516,
        3.2145967026,
        2.9669895876,
        3.0748708496,
        2.9776797656,
        3.4076301966,
        3.3959351496,
        3.0947180146
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.803 ± 0.256 4.448 5.354 1.30 ± 0.08
pacquet@main 4.748 ± 0.115 4.642 4.976 1.29 ± 0.05
pnpr@HEAD 3.727 ± 0.165 3.568 3.998 1.01 ± 0.05
pnpr@main 3.684 ± 0.102 3.550 3.894 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.803478779860001,
      "stddev": 0.25574344009767247,
      "median": 4.82189392876,
      "user": 2.8055555400000003,
      "system": 2.0798189,
      "min": 4.44837006226,
      "max": 5.35361092626,
      "times": [
        4.48577443626,
        4.44837006226,
        4.80598379626,
        4.63531225326,
        5.35361092626,
        4.91407658726,
        4.85148987026,
        4.92331454426,
        4.83780406126,
        4.77905126126
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.74825139086,
      "stddev": 0.11534501615407097,
      "median": 4.69127831726,
      "user": 2.85575764,
      "system": 1.9963564999999999,
      "min": 4.64215219026,
      "max": 4.97581333826,
      "times": [
        4.97581333826,
        4.85500213326,
        4.64215219026,
        4.66245022726,
        4.65632589726,
        4.81416760026,
        4.84354471426,
        4.68826285526,
        4.694293779260001,
        4.65050117326
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.72670042286,
      "stddev": 0.16488916642914234,
      "median": 3.64092593226,
      "user": 1.77922594,
      "system": 1.7725994999999997,
      "min": 3.5675200892600003,
      "max": 3.99812549126,
      "times": [
        3.75108547226,
        3.61135284126,
        3.61599271726,
        3.60475782626,
        3.9830197602600004,
        3.86718334226,
        3.5675200892600003,
        3.99812549126,
        3.66585914726,
        3.60210754126
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.6835337152600003,
      "stddev": 0.10214041328260336,
      "median": 3.65324898176,
      "user": 1.8419317399999997,
      "system": 1.7649055999999999,
      "min": 3.5500123612600003,
      "max": 3.89388308826,
      "times": [
        3.62536576726,
        3.80649080026,
        3.89388308826,
        3.5500123612600003,
        3.65693648226,
        3.64956148126,
        3.59584625526,
        3.73066959926,
        3.6442483882600003,
        3.68232292926
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13755
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,611.48 ms
(-0.48%)Baseline: 2,624.09 ms
3,148.90 ms
(82.93%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,713.48 ms
(-1.96%)Baseline: 1,747.69 ms
2,097.23 ms
(81.70%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
503.16 ms
(+15.80%)Baseline: 434.51 ms
521.41 ms
(96.50%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
181.03 ms
(-15.81%)Baseline: 215.02 ms
258.02 ms
(70.16%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,487.20 ms
(+3.11%)Baseline: 2,412.17 ms
2,894.60 ms
(85.93%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,448.37 ms
(-1.33%)Baseline: 4,508.18 ms
5,409.82 ms
(82.23%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
249.40 ms
(-7.65%)Baseline: 270.06 ms
324.08 ms
(76.96%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
679.48 ms
(-1.67%)Baseline: 690.99 ms
829.19 ms
(81.95%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13755
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,442.85 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
292.20 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
283.30 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
85.89 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,353.15 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,567.52 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
272.60 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit 664edd5 into main Aug 10, 2026
38 checks passed
@zkochan
zkochan deleted the fix-13754 branch August 10, 2026 12:46
ByronDWall added a commit to commercetools/ui-kit that referenced this pull request Aug 10, 2026
…3292)

Bumps the pinned packageManager field from 11.14.0 to 11.17.0, still
safely below the known-bad 11.19.0/11.20.0 pnpm deploy legacy
regression (pnpm/pnpm#13618, fixed by pnpm/pnpm#13755, not yet
released).

Adds a renovate packageRules entry disabling pnpm updates, correcting
the version reference used in the now-superseded PR #3291 to 11.17.0
so the hold matches the version actually pinned here.

Verified with a full pnpm install, check-workspace-constraints.js,
typecheck, build, and representative jest runs across
packages/components/buttons, packages/hooks, packages/utils, and
design-system, all passing.
ByronDWall added a commit to commercetools/test-data that referenced this pull request Aug 10, 2026
Bumps the packageManager field to pnpm 11.17.0, which stays below the
known bad pnpm deploy legacy regression introduced in 11.19.0/11.20.0
(pnpm/pnpm#13618). Adds a Renovate packageRule disabling pnpm updates
until pnpm/pnpm#13755 ships in a release, since that fix is merged but
not yet published.

Supersedes #1032 and #1034, which targeted an earlier pnpm version and
an earlier draft of this hold rule.
ByronDWall added a commit to commercetools/merchant-center-application-kit that referenced this pull request Aug 10, 2026
* chore(deps): bump pnpm to 11.17.0 and hold via renovate

Bumps the pinned pnpm version from 11.14.0 to 11.17.0 for consistency
with the rest of the multi-repo pnpm/Renovate remediation effort. Both
versions sit safely below the known-bad 11.19.0/11.20.0 range, where
pnpm/pnpm#13618 broke `pnpm deploy --legacy` support.

Also adds a renovate.json packageRules entry that disables pnpm
updates, replacing the separate standalone hold PR for this repo.
Renovate stays off pnpm until pnpm/pnpm#13755 ships in a release, at
which point this repo can upgrade past 11.17.0 and the rule can be
removed.

* fix(deps): sync playground's stray packageManager pin to 11.17.0

playground/package.json carries its own independent packageManager field,
separate from the root's. The 11.17.0 bump in this PR only touched the
root, leaving playground still pinned to 11.14.0. Vercel deploys
playground directly (it has its own vercel.json and deploy script), so
corepack resolves the stale 11.14.0 pin there first, then conflicts once
the build command's pnpm run -w build touches the now-bumped root
package.json, producing exactly the failure seen in a live Vercel
deploy:

  [ERROR] This project is configured to use 11.17.0 of pnpm. Your
  current pnpm is v11.14.0

Confirmed via a repo-wide grep that these are the only two
packageManager fields in the repository, so no other nested pin needs
the same fix.

* fix(renovate): correct the pnpm-hold rule's regression version range

Review feedback (GitHub Copilot and CodeRabbit, both independently
verified against pnpm/pnpm#13618) on the audit-log PR for this same
change flagged that the rule described the regression as starting
'past 11.14.0', when it actually starts at 11.19.0. 11.17.0, what this
repo is pinned to, predates the regression entirely. Also corrected
'deploy: legacy' to the actual command, 'pnpm deploy --legacy'.
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

3 participants