Skip to content

fix(pacquet): align MUI resolution and dedupe - #13431

Merged
zkochan merged 2 commits into
mainfrom
test-mui
Jul 27, 2026
Merged

zkochan merged 2 commits into
mainfrom
test-mui

Conversation

@zkochan

@zkochan zkochan commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #13430.

Align pacquet's MUI resolution and dedupe behavior with TypeScript pnpm:

  • seed preferred versions from workspace package identities so optional peers can reuse them;
  • omit empty deprecation messages from generated lockfiles;
  • let dedupe re-resolve dependency edges while retaining valid lockfile pins as preferences.

MUI validation used TypeScript pnpm 11.17.0 and pacquet 12.0.0-alpha.21 with package-manager switching disabled. Fresh lockfiles were byte-identical, both implementations reported the same dedupe changes on a fresh lockfile, and both accepted MUI's committed deduped lockfile.

Squash Commit Body

Seed preferred versions from workspace package identities so optional peers can reuse local workspace versions during cross-importer resolution.

Omit empty deprecation messages from generated lockfiles. Separate dedupe's resolution-reuse policy from its preferred-version seed policy so it rebuilds dependency edges without unnecessarily replacing valid pins.

Closes pnpm/pnpm#13430.

Checklist

  • The TypeScript CLI already has the intended behavior; this aligns the Rust pnpm/ port with it.
  • Added a changeset for pacquet.
  • Added or updated tests.

Written by an agent (Codex, GPT-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
    • Optional peer dependencies can now resolve correctly against compatible versions provided by local workspace packages.
    • pnpm dedupe --check preserves valid existing lockfile pins without rewriting pnpm-lock.yaml.
    • Dependencies with an empty deprecated field no longer write an empty deprecation entry to the generated lockfile.
    • Improved seed/update behavior during dedupe’s lockfile-only install flow.
  • Tests
    • Added integration and regression coverage for workspace optional peers, dedupe lockfile preservation, and empty deprecation omission.
  • Chores
    • Added a patch release note for these improvements.

Seed optional peers from workspace package versions and omit empty deprecation metadata.

Preserve valid lockfile pins while dedupe re-resolves dependency edges.

Closes #13430.
Copilot AI review requested due to automatic review settings July 27, 2026 12:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Pacquet now resolves optional peers from local workspace versions, preserves valid lockfile pins during dedupe --check, and omits empty deprecation messages from generated lockfiles. A patch Changesets entry documents these changes.

Changes

Pacquet parity fixes

Layer / File(s) Summary
Workspace optional-peer version resolution
pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs, pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs, pnpm/crates/resolving-deps-resolver/src/resolve_workspace/tests.rs
Workspace package versions from workspace: resolutions are tracked and used to satisfy optional peer dependencies across importers.
Dedupe fresh-resolution policy
pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs, pnpm/crates/package-manager/src/update.rs, pnpm/crates/cli/src/cli_args/dedupe.rs, pnpm/crates/cli/tests/dedupe.rs
dedupe keeps lockfile pins as preferred versions while forcing dependency re-resolution, with coverage that --check preserves valid pins.
Lockfile metadata parity
pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs, pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs, .changeset/mui-optional-peer-parity.md
Empty deprecated strings are omitted from lockfile metadata and covered by a regression test and patch release note.

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

Sequence Diagram(s)

sequenceDiagram
  participant WorkspaceResolver
  participant WorkspaceTreeCtx
  participant ImporterHoistState
  participant OptionalPeer
  WorkspaceResolver->>WorkspaceTreeCtx: record workspace package version
  ImporterHoistState->>WorkspaceTreeCtx: collect newly seen versions
  WorkspaceTreeCtx-->>ImporterHoistState: update preferred versions
  ImporterHoistState->>OptionalPeer: resolve optional peer from workspace version
Loading

Assessment against linked issues

Objective Addressed Explanation
Fresh resolution includes local workspace-provided optional peers and matching dependency graph data [#13430] ✅
Generated lockfiles omit empty deprecation messages [#13430] ✅
pnpm dedupe --check preserves valid pins and matches the expected check result [#13430] ✅

Possibly related PRs

  • pnpm/pnpm#13343: Related workspace optional-peer resolution and peer-provider selection changes.
  • pnpm/pnpm#13369: Related optional-peer hoisting and workspace-version handling.
  • pnpm/pnpm#13395: Related pnpm dedupe --check flow and lockfile comparison changes.

Suggested labels: product: pacquet

Suggested reviewers: copilot, sensei-woo, yeshyungseok

✨ 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 test-mui

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 pacquet resolution parity for optional peers and dedupe lockfile pin reuse

🐞 Bug fix ✨ Enhancement 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Seed preferred versions from workspace package identities so optional peers can reuse local
 versions.
• Omit empty deprecated strings from generated lockfiles to avoid unnecessary churn.
• Change dedupe to rebuild dependency edges while keeping valid lockfile pins as preferences.
Diagram

graph TD
  A["pnpm CLI: dedupe"] --> B["InstallWithFreshLockfile"] --> C["UpdateSeedPolicy: KeepAllResolveAll"] --> D["Resolver: resolve_dependency_tree"] --> E[("pnpm-lock.yaml")]
  D --> F["WorkspaceTreeCtx: workspace_package_versions"] --> D
  B --> G["dependencies_graph_to_lockfile"] --> E

  subgraph Legend
    direction LR
    _cli["CLI command"] ~~~ _svc["Core install/resolution"] ~~~ _db[("Lockfile")]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Model workspace links with a canonical name/version in resolver results
  • ➕ Avoids a side-channel workspace_package_versions set; preferred versions can be derived from normal resolved package records.
  • ➕ May simplify reasoning about which workspace packages contribute identities.
  • ➖ May require broader refactors to how link:/workspace directory resolutions are represented (riskier change).
  • ➖ Could impact lockfile determinism and ID computation beyond the targeted parity fix.
2. Introduce a separate 'edge-rebuild' flag instead of an enum variant
  • ➕ Keeps UpdateSeedPolicy focused purely on preferred-version seeding; reuse policy becomes explicit.
  • ➕ Potentially clearer API boundaries for other commands that want edge rebuild without changing seeding.
  • ➖ Adds more configuration surface and combinatorics (seed policy × reuse policy).
  • ➖ Requires plumbing an additional option through multiple layers.
3. Perform optional-peer workspace seeding at workspace orchestration level (pre-resolve)
  • ➕ Makes the set of workspace identities explicit and stable before any resolution begins.
  • ➕ Could reduce locking/collection during hot resolution paths.
  • ➖ Needs reliable enumeration of all workspace package identities in every mode (filters, partial importers).
  • ➖ May diverge from current resolution flow where identity is only known once a result is available.

Recommendation: The PR’s approach is a good tradeoff for parity and scope: it minimally extends the shared workspace context to capture workspace package identities when workspace: specs resolve to directory links, and it cleanly separates dedupe’s goals by adding KeepAllResolveAll (keep pins as preferences, but force edge re-resolution). Alternatives that normalize workspace link identities or split configuration flags are potentially cleaner long-term, but are higher-risk and broader than needed to close the reported parity gap.

Files changed (9) +177 / -9

Enhancement (1) +11 / -2
install_with_fresh_lockfile.rsAdd KeepAllResolveAll and decouple pin seeding from resolution reuse +11/-2

Add KeepAllResolveAll and decouple pin seeding from resolution reuse

• Introduces 'UpdateSeedPolicy::KeepAllResolveAll' and maps it to unlimited depth (like KeepAll) while disabling lockfile subtree reuse. Ensures preferred-version seeding still includes lockfile/manifests for this policy so dedupe can keep valid pins as preferences.

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

Bug fix (3) +31 / -7
dedupe.rsSwitch dedupe to KeepAllResolveAll seeding policy +1/-1

Switch dedupe to KeepAllResolveAll seeding policy

• Updates the dedupe install invocation to use 'UpdateSeedPolicy::KeepAllResolveAll', enabling edge re-resolution while keeping existing lockfile pins as preferred versions.

pnpm/crates/cli/src/cli_args/dedupe.rs

dependencies_graph_to_lockfile.rsSkip writing empty 'deprecated' metadata to lockfile packages +5/-2

Skip writing empty 'deprecated' metadata to lockfile packages

• Filters out empty-string 'deprecated' values when building per-package metadata so generated lockfiles do not contain meaningless deprecation entries.

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

resolve_dependency_tree.rsSeed preferred versions from workspace package identities during resolution +25/-4

Seed preferred versions from workspace package identities during resolution

• Extends workspace resolution context with a set of '(name, version)' pairs for workspace-linked packages that lack 'name_ver', and includes them in 'resolved_versions()' so preferred versions can be seeded workspace-wide (supporting optional peers across importers).

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs

Refactor (1) +3 / -0
update.rsGuard against using dedupe-only seed policy in update flow +3/-0

Guard against using dedupe-only seed policy in update flow

• Adds an 'unreachable!' arm for 'KeepAllResolveAll' to document/enforce that 'update' does not use dedupe’s seed policy.

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

Tests (3) +127 / -0
dedupe.rsTest that 'dedupe --check' preserves valid existing lockfile pins +37/-0

Test that 'dedupe --check' preserves valid existing lockfile pins

• Adds a regression test that modifies only the lockfile specifier (keeping the pin valid) and asserts 'pnpm dedupe --check' does not rewrite the lockfile.

pnpm/crates/cli/tests/dedupe.rs

tests.rsAdd lockfile serialization test for empty deprecation omission +27/-0

Add lockfile serialization test for empty deprecation omission

• Introduces a unit test asserting that a package manifest with '"deprecated": ""' results in 'deprecated: None' in the lockfile metadata.

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

tests.rsTest optional peer satisfaction via local workspace package version +63/-0

Test optional peer satisfaction via local workspace package version

• Adds a multi-importer workspace test verifying that a workspace package’s version can satisfy another importer’s optional peer dependency, matching TypeScript pnpm behavior.

pnpm/crates/resolving-deps-resolver/src/resolve_workspace/tests.rs

Documentation (1) +5 / -0
mui-optional-peer-parity.mdAdd pacquet patch changeset for optional-peer parity and lockfile metadata churn +5/-0

Add pacquet patch changeset for optional-peer parity and lockfile metadata churn

• Adds a patch changeset describing the parity fix: reuse workspace versions for optional peers and omit empty deprecation fields in generated lockfiles.

.changeset/mui-optional-peer-parity.md

@greptile-apps

greptile-apps Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains within the scope of an eligible previous review thread.

Reviews (2): Last reviewed commit: "perf(resolving-deps-resolver): avoid rep..." | Re-trigger Greptile

@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.01     13.9±1.40ms    27.0 MB/sec    1.00     13.8±0.67ms    27.2 MB/sec
packument/parse                1.00     45.1±1.71µs  1471.5 MB/sec    1.02     45.9±0.97µs  1445.6 MB/sec
tarball/download_dependency    1.00      2.7±0.25ms  1616.7 KB/sec    1.10      2.9±0.31ms  1470.7 KB/sec

@qodo-code-review

qodo-code-review Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

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

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Remediation recommended

1. Changeset missing pnpm entry 📘 Rule violation § Compliance
Description
The new changeset lists only pacquet and omits the required pnpm package entry, so release
tooling/auditing expectations for pnpm changesets are not met.
Code

.changeset/mui-optional-peer-parity.md[R1-3]

+---
+"pacquet": patch
+---
Relevance

⭐⭐⭐ High

Recent changeset compliance suggestions to add pnpm entry were accepted in similar pacquet-only
front-matter cases.

PR-#13403
PR-#13337
PR-#13395

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires changeset front-matter to include a pnpm entry with a valid bump
type. The added changeset front-matter includes only pacquet: patch and has no pnpm entry.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/mui-optional-peer-parity.md[1-3]

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

## Issue description
The new changeset does not declare a `pnpm` bump entry, which violates the requirement that changesets explicitly include `pnpm` with a valid bump type.

## Issue Context
The file `.changeset/mui-optional-peer-parity.md` currently declares only `pacquet`.

## Fix Focus Areas
- .changeset/mui-optional-peer-parity.md[1-3]

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


2. Repeated workspace version copying ✓ Resolved 🐞 Bug ➹ Performance
Description
TreeCtx::resolved_versions now appends workspace_package_versions by cloning every (name, version)
pair into the returned Vec, adding O(workspace_versions) allocations/copies per call.
resolve_importer calls this multiple times per importer during peer-hoist rounds, so large
workspaces with many workspace-link nodes can see extra CPU/allocations in this hot path.
Code

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[R1363-1375]

    pub fn resolved_versions(&self) -> Vec<(String, String)> {
-        lock_recoverable(&self.workspace.packages)
+        let mut versions: Vec<_> = lock_recoverable(&self.workspace.packages)
            .values()
            .filter_map(|pkg| {
-                let name_ver = pkg.result.name_ver.as_ref()?;
-                Some((name_ver.name.to_string(), name_ver.suffix.to_string()))
+                pkg.result
+                    .name_ver
+                    .as_ref()
+                    .map(|name_ver| (name_ver.name.to_string(), name_ver.suffix.to_string()))
            })
-            .collect()
+            .collect();
+        versions
+            .extend(lock_recoverable(&self.workspace.workspace_package_versions).iter().cloned());
+        versions
Relevance

⭐⭐ Medium

Team sometimes accepts hot-path allocation reductions, but also rejects similar micro-optimizations;
outcome unclear without stronger precedent.

PR-#13172
PR-#13388

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new implementation explicitly clones and extends with the workspace_package_versions set on
every call, and the importer’s hoist loop refreshes preferred versions multiple times per round,
making this extra work repeat.

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[1358-1376]
pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs[492-513]
pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs[600-611]
pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs[672-689]

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

### Issue description
`TreeCtx::resolved_versions()` now extends its output with entries from `workspace_package_versions`, cloning each `(String, String)` into a fresh `Vec` every time it’s called. `resolve_importer` refreshes preferred versions multiple times during peer-hoisting, so this adds repeated O(N) copying/allocation work in a hot path.

### Issue Context
This PR adds `workspace_package_versions` to seed preferred versions when `name_ver` is missing for workspace-link resolutions. The functional goal is valid; the concern is the repeated full-copy overhead.

### Fix Focus Areas
- pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[1363-1376]
- pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs[492-513]
- pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs[600-611]
- pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs[672-689]

### Suggested approach
- Avoid materializing a full `Vec<(String,String)>` on each refresh. Options:
 - Add a `TreeCtx::for_each_resolved_version(|name, ver| ...)` (or similar) that iterates `packages` and `workspace_package_versions` directly, letting the caller insert into `PreferredVersions` without building an intermediate Vec.
 - Or maintain an append-only “newly observed versions” log (per workspace ctx) and have the importer drain only the delta since the last refresh.
- Keep the functional behavior (workspace versions still contribute), but eliminate repeated full recomputation/copying.

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


Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@codecov-commenter

codecov-commenter commented Jul 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.30508% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.62%. Comparing base (ef32e98) to head (ea4eedd).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pnpm/crates/package-manager/src/update.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13431      +/-   ##
==========================================
+ Coverage   87.60%   87.62%   +0.01%     
==========================================
  Files         545      545              
  Lines       93698    93794      +96     
==========================================
+ Hits        82085    82184      +99     
+ Misses      11613    11610       -3     

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

@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 @.changeset/mui-optional-peer-parity.md:
- Line 5: Update the release note in mui-optional-peer-parity.md to document
that pnpm dedupe --check now retains valid lockfile pins, alongside the existing
behavior changes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

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

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 99c1b741-ace9-41ec-849b-3b6eae076e4b

📥 Commits

Reviewing files that changed from the base of the PR and between e1babf7 and 353a278.

📒 Files selected for processing (9)
  • .changeset/mui-optional-peer-parity.md
  • pnpm/crates/cli/src/cli_args/dedupe.rs
  • pnpm/crates/cli/tests/dedupe.rs
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs
  • pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs
  • pnpm/crates/package-manager/src/update.rs
  • pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs
  • pnpm/crates/resolving-deps-resolver/src/resolve_workspace/tests.rs

Comment thread .changeset/mui-optional-peer-parity.md Resolved
@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: ea4eedd8e39c

Each scenario reports direct installs and pnpr installs. 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.510 ± 0.130 2.378 2.742 1.62 ± 0.17
pacquet@main 2.625 ± 0.151 2.416 2.903 1.70 ± 0.19
pnpr@HEAD 1.546 ± 0.144 1.360 1.754 1.00
pnpr@main 1.658 ± 0.120 1.376 1.819 1.07 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.51008632826,
      "stddev": 0.1299573940721753,
      "median": 2.46961713636,
      "user": 1.7827052399999996,
      "system": 1.40412106,
      "min": 2.37811785386,
      "max": 2.7424002398600003,
      "times": [
        2.6236229138600002,
        2.42611605286,
        2.37811785386,
        2.40628012586,
        2.47394925186,
        2.47878137786,
        2.46528502086,
        2.7424002398600003,
        2.69788720086,
        2.40842324486
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.6252730274600005,
      "stddev": 0.15107276778364712,
      "median": 2.63515783936,
      "user": 2.14898614,
      "system": 1.69929286,
      "min": 2.41568893086,
      "max": 2.90321572286,
      "times": [
        2.6287463298600002,
        2.65678703186,
        2.64156934886,
        2.61875656086,
        2.90321572286,
        2.77997260886,
        2.45663930486,
        2.46248008286,
        2.68887435286,
        2.41568893086
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.54562810676,
      "stddev": 0.1438051614416517,
      "median": 1.51936477986,
      "user": 1.10252844,
      "system": 1.2121102599999998,
      "min": 1.36016506286,
      "max": 1.75445795086,
      "times": [
        1.47052004186,
        1.37862373086,
        1.75445795086,
        1.49117284886,
        1.41472615286,
        1.6926344548599999,
        1.54755671086,
        1.66075048586,
        1.68567362786,
        1.36016506286
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.65843906086,
      "stddev": 0.12018436274549064,
      "median": 1.67645493236,
      "user": 1.1924650399999996,
      "system": 1.2289883599999998,
      "min": 1.37607353386,
      "max": 1.8189097898600002,
      "times": [
        1.7301848288600001,
        1.58111740086,
        1.6509997088600001,
        1.73791140886,
        1.6546102868600001,
        1.61701339686,
        1.8189097898600002,
        1.71927067586,
        1.37607353386,
        1.6982995778599999
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 277.2 ± 9.5 264.4 294.7 1.01 ± 0.05
pacquet@main 273.9 ± 9.9 255.6 289.0 1.00
pnpr@HEAD 282.3 ± 16.2 260.4 311.8 1.03 ± 0.07
pnpr@main 313.0 ± 23.5 287.1 367.0 1.14 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.27715125378000005,
      "stddev": 0.009549729264705464,
      "median": 0.27539304848,
      "user": 0.20921868000000005,
      "system": 0.55338772,
      "min": 0.26442799948000006,
      "max": 0.29465820748000005,
      "times": [
        0.28684824148000004,
        0.27170307848,
        0.26884109248000004,
        0.26442799948000006,
        0.27367730248000005,
        0.27710879448000003,
        0.29465820748000005,
        0.28663158248000004,
        0.27801100548,
        0.26960523348000004
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.27393491518,
      "stddev": 0.009900816908080513,
      "median": 0.27439534648,
      "user": 0.23933717999999998,
      "system": 0.54659892,
      "min": 0.25558345048000003,
      "max": 0.28898566148000004,
      "times": [
        0.27678289048000004,
        0.28276746448000006,
        0.28898566148000004,
        0.26145185648,
        0.27016169248000005,
        0.27534605948,
        0.25558345048000003,
        0.27315105948,
        0.27344463348000003,
        0.28167438348
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.28229201148,
      "stddev": 0.01616313028487377,
      "median": 0.28419096498000007,
      "user": 0.22817378000000002,
      "system": 0.55551062,
      "min": 0.26042730348000004,
      "max": 0.31177876448,
      "times": [
        0.28580501348000004,
        0.31177876448,
        0.28257691648000005,
        0.29534687648,
        0.29091140248,
        0.26042730348000004,
        0.26147271548000006,
        0.27488112348000004,
        0.26876163248,
        0.29095836648000006
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31301944938000004,
      "stddev": 0.023455154203379625,
      "median": 0.30626695998000003,
      "user": 0.26821158000000006,
      "system": 0.56653062,
      "min": 0.28711863448,
      "max": 0.36695810648000005,
      "times": [
        0.30396253248000005,
        0.32238370648000003,
        0.28711863448,
        0.30299310548,
        0.30857138748,
        0.33368780748000004,
        0.29454088448000004,
        0.29541241748,
        0.36695810648000005,
        0.31456591148
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.915 ± 0.071 2.825 3.072 1.80 ± 0.13
pacquet@main 2.869 ± 0.055 2.796 2.971 1.77 ± 0.13
pnpr@HEAD 1.648 ± 0.141 1.438 1.893 1.02 ± 0.11
pnpr@main 1.623 ± 0.114 1.437 1.772 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.9147250008600003,
      "stddev": 0.07056874808784025,
      "median": 2.91689216576,
      "user": 2.0549454999999996,
      "system": 1.4671533799999996,
      "min": 2.82515490976,
      "max": 3.07199019476,
      "times": [
        2.85820442276,
        2.8706743717600003,
        3.07199019476,
        2.9599075207600003,
        2.94676332076,
        2.9258634217600004,
        2.92554821676,
        2.82515490976,
        2.8549075147600003,
        2.90823611476
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.86871772696,
      "stddev": 0.05518220414124926,
      "median": 2.85922387926,
      "user": 1.9969136000000003,
      "system": 1.4818389799999998,
      "min": 2.7959710487600002,
      "max": 2.9713076327600003,
      "times": [
        2.8679388127600003,
        2.8457316997600004,
        2.89367348276,
        2.81856875976,
        2.9713076327600003,
        2.9343994007600003,
        2.8924498957600004,
        2.8166275907600005,
        2.85050894576,
        2.7959710487600002
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6477406197600004,
      "stddev": 0.14068188760602976,
      "median": 1.62258011976,
      "user": 1.2358562000000002,
      "system": 1.3054099799999999,
      "min": 1.43781101676,
      "max": 1.89306893576,
      "times": [
        1.43781101676,
        1.71998725176,
        1.47911034776,
        1.59847671376,
        1.79276990676,
        1.74015911076,
        1.64530072976,
        1.89306893576,
        1.57086267476,
        1.5998595097600001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.6233838515600003,
      "stddev": 0.11409822408251338,
      "median": 1.61364817526,
      "user": 1.279516,
      "system": 1.40643828,
      "min": 1.43682111076,
      "max": 1.77161722776,
      "times": [
        1.77161722776,
        1.52115577376,
        1.71813153376,
        1.55639417676,
        1.52936711376,
        1.64111050876,
        1.58618584176,
        1.72365443476,
        1.43682111076,
        1.74940079376
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 708.3 ± 51.9 649.2 798.2 2.26 ± 0.21
pacquet@main 758.9 ± 77.7 661.5 911.4 2.42 ± 0.28
pnpr@HEAD 330.3 ± 9.9 310.3 345.1 1.05 ± 0.07
pnpr@main 313.4 ± 17.3 287.5 347.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.7082828324199999,
      "stddev": 0.051895999571743394,
      "median": 0.6896909842200001,
      "user": 0.8757735799999999,
      "system": 0.7685334400000001,
      "min": 0.64923367672,
      "max": 0.79822958172,
      "times": [
        0.75945037272,
        0.72933131072,
        0.76543624872,
        0.79822958172,
        0.68272137972,
        0.69666058872,
        0.67857407072,
        0.64923367672,
        0.6492792227199999,
        0.67391187172
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.75887520612,
      "stddev": 0.07772850922612767,
      "median": 0.75001220572,
      "user": 0.9395111799999999,
      "system": 0.7889580400000001,
      "min": 0.66148145672,
      "max": 0.91139486772,
      "times": [
        0.71625096172,
        0.75987935272,
        0.71001485472,
        0.75230453072,
        0.70084081872,
        0.74853534672,
        0.75148906472,
        0.87656080672,
        0.91139486772,
        0.66148145672
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.33034334022,
      "stddev": 0.009929042078640213,
      "median": 0.32996546872000004,
      "user": 0.23767458000000002,
      "system": 0.5609390399999998,
      "min": 0.31030213272,
      "max": 0.34513834872000004,
      "times": [
        0.34513834872000004,
        0.32996558472000004,
        0.32886396772000004,
        0.32996535272000005,
        0.34094280872000005,
        0.33504958872,
        0.33548250472,
        0.32696968672000004,
        0.31030213272,
        0.32075342672
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31343928902,
      "stddev": 0.01734391181913936,
      "median": 0.31500064472,
      "user": 0.21815768000000002,
      "system": 0.53271014,
      "min": 0.28750879672,
      "max": 0.34731616472000004,
      "times": [
        0.32434587972,
        0.31534357772000005,
        0.31037601272000004,
        0.32306849172,
        0.29586667472,
        0.28750879672,
        0.29586879972,
        0.31465771172,
        0.34731616472000004,
        0.32004078072000003
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.996 ± 0.034 1.954 2.053 6.36 ± 0.37
pacquet@main 1.979 ± 0.038 1.910 2.029 6.31 ± 0.37
pnpr@HEAD 0.322 ± 0.017 0.306 0.354 1.03 ± 0.08
pnpr@main 0.314 ± 0.017 0.293 0.346 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.9958528472999997,
      "stddev": 0.03393348060422392,
      "median": 1.9846493410000001,
      "user": 1.0807159999999998,
      "system": 0.8018279399999999,
      "min": 1.9542308935000001,
      "max": 2.0527009295000003,
      "times": [
        1.9626201085000001,
        1.9748396775000001,
        1.9733972675000002,
        2.0130421605,
        1.9836831295000001,
        1.9856155525,
        2.0122191185,
        2.0461796355,
        2.0527009295000003,
        1.9542308935000001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.9787441989,
      "stddev": 0.038324840783706626,
      "median": 1.9922131105000003,
      "user": 1.0620675,
      "system": 0.78508254,
      "min": 1.9102892985,
      "max": 2.0293921855,
      "times": [
        1.9151377805000003,
        1.9898465785000001,
        1.9102892985,
        1.9704919805,
        2.0071694785000003,
        1.9766055655,
        1.9956603805000002,
        1.9945796425000002,
        1.9982690985000002,
        2.0293921855
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.322418855,
      "stddev": 0.01716008018820972,
      "median": 0.317572858,
      "user": 0.2211355,
      "system": 0.56986464,
      "min": 0.3057092375,
      "max": 0.3542868055,
      "times": [
        0.3071418675,
        0.3057092375,
        0.32178858250000003,
        0.31920252650000003,
        0.34638246850000004,
        0.3159431895,
        0.3080106085,
        0.3108797595,
        0.3348435045,
        0.3542868055
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.3136851325,
      "stddev": 0.017498492152210374,
      "median": 0.31023814400000005,
      "user": 0.19711489999999998,
      "system": 0.5476950400000001,
      "min": 0.2932445195,
      "max": 0.34587140450000003,
      "times": [
        0.34587140450000003,
        0.3031660215,
        0.3146802275,
        0.3079138555,
        0.3279940565,
        0.33520607950000003,
        0.29922389650000003,
        0.2932445195,
        0.2969888315,
        0.31256243250000004
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 413.9 ± 30.5 374.6 469.4 4.56 ± 0.37
pacquet@main 420.2 ± 21.5 392.2 461.3 4.63 ± 0.29
pnpr@HEAD 91.0 ± 3.0 85.8 98.6 1.00 ± 0.05
pnpr@main 90.7 ± 3.2 84.8 97.2 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.41391206544000003,
      "stddev": 0.03047020217383184,
      "median": 0.4105933727400001,
      "user": 0.40375522,
      "system": 0.060925240000000006,
      "min": 0.37460865524000003,
      "max": 0.46943148124000006,
      "times": [
        0.38780746824000006,
        0.40541413424000006,
        0.44614970124000003,
        0.41577261124000003,
        0.42276783324000006,
        0.37460865524000003,
        0.37909022724,
        0.40188144124,
        0.46943148124000006,
        0.43619710124000005
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.42022346874000005,
      "stddev": 0.021514680400238653,
      "median": 0.42273039324000006,
      "user": 0.4028769199999999,
      "system": 0.07207134,
      "min": 0.39221494024000003,
      "max": 0.46126586024000005,
      "times": [
        0.39703341824000005,
        0.42456312924000006,
        0.4012152452400001,
        0.46126586024000005,
        0.42089765724000006,
        0.43545694524000006,
        0.39221494024000003,
        0.43069388224000005,
        0.40468698224000005,
        0.43420662724000003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09103037934000001,
      "stddev": 0.0030039014415119683,
      "median": 0.09073685724,
      "user": 0.022960886666666666,
      "system": 0.011084606666666663,
      "min": 0.08584878424,
      "max": 0.09862796524,
      "times": [
        0.09307982024,
        0.09218484224,
        0.09379250424,
        0.09224500524,
        0.08939616323999999,
        0.09087103524,
        0.09056411624,
        0.08750502724,
        0.08960190124,
        0.08943488624,
        0.09019978824,
        0.08705807324,
        0.09060267924,
        0.08584878424,
        0.08739177324,
        0.08640136424,
        0.08850048424,
        0.09862796524,
        0.09551063524,
        0.09162679024,
        0.09165696724,
        0.09022354324,
        0.09129000424,
        0.09156872024,
        0.09391681924,
        0.08885608424,
        0.09175799824,
        0.09738380824,
        0.08997018624,
        0.09384361024
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.09068341103310346,
      "stddev": 0.0032411943297709976,
      "median": 0.09025663624,
      "user": 0.021644219999999995,
      "system": 0.011753286896551722,
      "min": 0.08483602324,
      "max": 0.09719979024,
      "times": [
        0.09719979024,
        0.09412426024,
        0.09138933224,
        0.08947814724,
        0.08959326524,
        0.08483602324,
        0.08934776124,
        0.09025663624,
        0.08577788924,
        0.08705626924,
        0.08865676924,
        0.08953876224,
        0.08763478124,
        0.08690305024,
        0.09565815324,
        0.09465965024,
        0.09164225024,
        0.09005943424,
        0.09159285724,
        0.09077846024,
        0.08743055524,
        0.09204734324,
        0.09400093824,
        0.09075587824,
        0.08733362424,
        0.08905573124,
        0.09453841224,
        0.09157272824,
        0.09690016624
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.645 ± 0.145 4.485 4.881 1.28 ± 0.06
pacquet@main 4.770 ± 0.195 4.502 5.053 1.32 ± 0.07
pnpr@HEAD 3.683 ± 0.112 3.566 3.894 1.02 ± 0.04
pnpr@main 3.623 ± 0.112 3.500 3.837 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.64532417678,
      "stddev": 0.14465535935691878,
      "median": 4.58961539078,
      "user": 1.9746338599999997,
      "system": 1.5604627199999999,
      "min": 4.48531391728,
      "max": 4.88081442828,
      "times": [
        4.88081442828,
        4.59141958728,
        4.54281475328,
        4.52613428528,
        4.79059991928,
        4.54070286228,
        4.5878111942799995,
        4.48531391728,
        4.65196159628,
        4.85566922428
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.7704231344800005,
      "stddev": 0.19471535245282445,
      "median": 4.80557215878,
      "user": 2.2553975599999996,
      "system": 1.6760050199999998,
      "min": 4.50216425028,
      "max": 5.05319158928,
      "times": [
        4.87692581928,
        4.95004113228,
        4.50216425028,
        4.89107011028,
        4.73421849828,
        4.93312668528,
        5.05319158928,
        4.54724196628,
        4.62899002528,
        4.58726126828
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.6827898459800013,
      "stddev": 0.1120912188959731,
      "median": 3.63686444478,
      "user": 1.67068756,
      "system": 1.65601882,
      "min": 3.56640721128,
      "max": 3.8941215422799997,
      "times": [
        3.63438862428,
        3.73956518628,
        3.85003013028,
        3.8941215422799997,
        3.63934026528,
        3.6942099492800002,
        3.60261392328,
        3.56640721128,
        3.59031726728,
        3.61690436028
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.62260708258,
      "stddev": 0.11152827516373476,
      "median": 3.60386398128,
      "user": 1.38999466,
      "system": 1.3969883200000002,
      "min": 3.50040299328,
      "max": 3.8367834582800002,
      "times": [
        3.52212587428,
        3.77292083828,
        3.8367834582800002,
        3.65468391828,
        3.50040299328,
        3.61939339428,
        3.65757982928,
        3.5497772742800002,
        3.58833456828,
        3.52406867728
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13431
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,825.15 ms
(+2.77%)Baseline: 2,749.03 ms
3,298.84 ms
(85.64%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,954.23 ms
(+2.47%)Baseline: 1,907.09 ms
2,288.51 ms
(85.39%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
649.23 ms
(+10.43%)Baseline: 587.91 ms
705.50 ms
(92.03%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
374.61 ms
(+3.07%)Baseline: 363.45 ms
436.14 ms
(85.89%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,378.12 ms
(+0.32%)Baseline: 2,370.60 ms
2,844.72 ms
(83.60%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,485.31 ms
(+1.15%)Baseline: 4,434.27 ms
5,321.13 ms
(84.29%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
264.43 ms
(+3.68%)Baseline: 255.05 ms
306.06 ms
(86.40%)
🐰 View full continuous benchmarking report in Bencher

Copilot AI review requested due to automatic review settings July 27, 2026 13:40

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 Jul 27, 2026

Copy link
Copy Markdown
Member Author

Addressed the review and benchmark regression in ea4eedd.

  • Updated the changeset to document that pnpm dedupe --check preserves valid lockfile pins.
  • Avoided cloning every workspace package version on each peer-hoist refresh; each importer now records each workspace (name, version) pair once.
  • Re-ran isolated-linker.fresh-install.hot-cache.hot-store locally against main, 10 runs each: HEAD 1.221 s ± 0.028, main 1.229 s ± 0.085. HEAD was 1.01 ± 0.07 times faster, so the reported regression is no longer reproduced.
  • just ready passes: 7,374 tests, workspace check, clippy, formatting, and spelling.

The benchmark fixture setup used the repository-pinned pnpm 12.0.0-alpha.21; the timed clients were the separately built pacquet revisions shown above.


Written by an agent (Codex, GPT-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.

Caution

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

⚠️ Outside diff range comments (1)
pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs (1)

1813-1825: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Do not exclude relative workspace selectors.

Line 1815 filters out workspace:./foo and workspace:../foo, so their package identities never seed preferred versions for optional-peer hoisting. Exclude only the exact self-reference, workspace:..

Proposed fix
-            specifier.starts_with("workspace:") && !specifier.starts_with("workspace:.")
+            specifier.starts_with("workspace:") && specifier != "workspace:."

As per path instructions, pacquet must preserve pnpm’s observable resolver behavior.

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

In `@pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs` around
lines 1813 - 1825, Update the workspace selector condition in the
preferred-version insertion block to exclude only the exact self-reference
selector “workspace:.” while allowing relative selectors such as
“workspace:./foo” and “workspace:../foo” to seed workspace_package_versions.
Preserve the existing manifest name/version checks and insertion behavior.

Source: 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.

Outside diff comments:
In `@pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs`:
- Around line 1813-1825: Update the workspace selector condition in the
preferred-version insertion block to exclude only the exact self-reference
selector “workspace:.” while allowing relative selectors such as
“workspace:./foo” and “workspace:../foo” to seed workspace_package_versions.
Preserve the existing manifest name/version checks and insertion behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e6560d40-de17-4143-9899-7325a45b0944

📥 Commits

Reviewing files that changed from the base of the PR and between 353a278 and ea4eedd.

📒 Files selected for processing (3)
  • .changeset/mui-optional-peer-parity.md
  • pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs
  • pnpm/crates/resolving-deps-resolver/src/resolve_importer.rs
🚧 Files skipped from review as they are similar to previous changes (1)
  • .changeset/mui-optional-peer-parity.md

@qodo-code-review

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 27, 2026
@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

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13431
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,437.81 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
305.71 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
310.30 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
85.85 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,360.17 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,566.41 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
260.43 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan

zkochan commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

Follow-up on the integrated benchmark alert: my earlier local comparison used the wrong scenario (fresh-install.hot-cache.hot-store). I reran the exact alerted scenario, fresh-restore.hot-cache.hot-store, and then reran the complete CI integrated-benchmark workflow.

Results:

  • Local, 30 runs: HEAD 895.1 ms ± 20.8; main 921.1 ms ± 44.7 (HEAD about 3% faster).
  • CI rerun, 10 runs: HEAD 277.2 ms ± 9.5, minimum 264.43 ms; main 273.9 ms ± 9.9, minimum 255.58 ms.
  • Bencher compares minima against the historical 255.05 ms baseline. The replacement result is +3.68%, below the 306.06 ms threshold; the Bencher check now passes with no alert.

No further code change was needed after ea4eedd. The prior 318.34 ms sample was not reproduced.


Written by an agent (Codex, GPT-5).

@zkochan
zkochan merged commit 011a216 into main Jul 27, 2026
38 checks passed
@zkochan
zkochan deleted the test-mui branch July 27, 2026 14:29
@coderabbitai coderabbitai Bot mentioned this pull request Jul 28, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pacquet: MUI fresh resolution and dedupe omit optional dependency

3 participants