Skip to content

test(cargo): compare pnpm's Cargo resolution against cargo's own - #14979

Merged
zkochan merged 4 commits into
mainfrom
cargo-equivalence
Sep 16, 2026
Merged

zkochan merged 4 commits into
mainfrom
cargo-equivalence

Conversation

@zkochan

@zkochan zkochan commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Summary

pnpm v12 resolves Cargo dependencies itself rather than shelling out to cargo, so it is a second implementation of cargo's resolver. Being a drop-in replacement means producing the versions cargo produces, not merely producing a lockfile.

The unit tests pin that against synthetic indexes, which is where the rules are easiest to state and easiest to get subtly wrong. Each of #14952, #14960, #14961 and #14962 was confirmed by hand-checking a real workspace against cargo after the unit tests were already green. This PR writes that hand-check down so it runs by itself.

For each workspace in the corpus:

  1. resolve with cargo generate-lockfile;
  2. resolve with pnpm install --lockfile-only --no-frozen-lockfile;
  3. compare the locked crates, crate by crate;
  4. drop pnpm's lockfile into a copy of the workspace pnpm never touched and run cargo metadata --locked, so the lockfile is measured apart from the source replacement pnpm writes beside it.

Requirements in the corpus are open rather than pinned. Both resolvers read the same index on the same day, so an upstream release changes what they agree on, not whether they agree.

It found a bug on its first run

feature-activated-deps does not agree, and the reason is not in the corpus's exotic shapes but in uuid = "1":

cargo locked js-sys 0.3.105, pnpm did not; cargo locked wasm-bindgen 0.2.128, pnpm did not; …

cargo resolves its lockfile with every feature enabled and only applies the selected features when it builds. pnpm resolves once, with the selected features, so its lockfile is a subset and cargo --locked rejects it. A workspace whose only dependency is uuid = "1", requesting no features at all, is enough to hit it. Filed as #14978, and left in the corpus as a tracked gap rather than fixed here, since it is a change to what resolution locks rather than to how it chooses versions.

Expectations

A workspace declares whether the two are expected to agree yet:

  • Expectation::Agree — they must produce the same crates.
  • Expectation::Differ { issue } — a known gap. It reports KNOWN and does not fail the run, but does fail if the two start agreeing, which is the signal that the issue is fixed and the expectation is stale.

That keeps one tracked gap from turning the whole run red, and stops the gap from being quietly forgotten once it closes. I verified both directions: flipping a passing workspace to Differ makes the run fail with "agrees with cargo, so … looks fixed".

Current run:

napi                    AGREE     1.7s
spanning-range          AGREE     1.1s
coexisting-lines        AGREE     1.4s
weak-features           AGREE     0.9s
feature-activated-deps  KNOWN     1.4s  [compare] … (pnpm/pnpm#14978)

5 workspace(s), 1 known difference(s), 0 unexpected

Why cron rather than per-PR

It reads the live index, so a yank or a release can change a result with nothing in this repo changing. Same reasoning as ecosystem-e2e, and the workflow follows its shape.

Squash Commit Body

pnpm v12 resolves Cargo dependencies itself rather than shelling out to
cargo, so it is a second implementation of cargo's resolver, and being a
drop-in replacement means producing the versions cargo produces rather than
merely producing a lockfile. Unit tests pin that against synthetic indexes,
which is where the rules are easiest to state and easiest to get subtly
wrong: the resolver fixes in pnpm/pnpm#14952, pnpm/pnpm#14960,
pnpm/pnpm#14961 and pnpm/pnpm#14962 were each confirmed by hand-checking a
real workspace against cargo after the unit tests were already green.

This is that hand-check, written down. For each workspace in the corpus it
resolves twice, compares the locked crates, and asks cargo whether it
accepts pnpm's lockfile with `--locked` in a copy pnpm never touched, so
the lockfile is measured apart from the source replacement written beside
it. Requirements are open rather than pinned: both resolvers read the same
index on the same day, so an upstream release changes what they agree on,
not whether they agree.

A workspace declares whether the two are expected to agree yet. A known
gap reports as such and does not fail the run, but does fail if the two
start agreeing, so a fixed issue cannot leave a stale expectation behind.
`feature-activated-deps` is the one gap today, tracking pnpm/pnpm#14978.

It runs on a daily cron rather than per-PR because it reads the live index,
where a yank or a release can change a result with nothing in this repo
changing.

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes
    are implemented in every affected version. (Test tooling for pnpm v12.)
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. (Nothing published changes: a task crate, a workflow and a recipe.)
  • Added or updated tests.
  • Updated the documentation if needed. (pnpm/tasks/cargo-equivalence/README.md)

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


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

Summary by CodeRabbit

  • New Features

    • Added a Cargo equivalence checker that compares dependency resolution results between pnpm and Cargo across representative workspaces.
    • Added commands to run all or selected workspace comparisons, with options for custom executables, working directories, and preserving artifacts.
    • Reports agreements, known differences, and unexpected failures with detailed status information.
    • Added automated daily and on-demand CI checks, including failure artifacts for differing lockfiles.
  • Documentation

    • Added usage instructions, workspace fixture details, comparison behavior, and CI scheduling information.

pnpm v12 resolves Cargo dependencies itself rather than shelling out to
cargo, so it is a second implementation of cargo's resolver, and being a
drop-in replacement means producing the versions cargo produces rather than
merely producing a lockfile. Unit tests pin that against synthetic indexes,
which is where the rules are easiest to state and easiest to get subtly
wrong: the resolver fixes in #14952, #14960,
#14961 and #14962 were each confirmed by hand-checking a
real workspace against cargo after the unit tests were already green.

This is that hand-check, written down. For each workspace in the corpus it
resolves twice, compares the locked crates, and asks cargo whether it
accepts pnpm's lockfile with `--locked` in a copy pnpm never touched, so
the lockfile is measured apart from the source replacement written beside
it. Requirements are open rather than pinned: both resolvers read the same
index on the same day, so an upstream release changes what they agree on,
not whether they agree.

A workspace declares whether the two are expected to agree yet. A known
gap reports as such and does not fail the run, but does fail if the two
start agreeing, so a fixed issue cannot leave a stale expectation behind.
`feature-activated-deps` is the one gap today, tracking #14978.

It runs on a daily cron rather than per-PR because it reads the live index,
where a yank or a release can change a result with nothing in this repo
changing.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview 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: Advanced

Run ID: 59b49fc1-5bc1-4eb4-bcda-85854b0ef3f5

📥 Commits

Reviewing files that changed from the base of the PR and between 68597dd and 5121b4f.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock, !Cargo.lock
📒 Files selected for processing (9)
  • .github/workflows/cargo-equivalence.yml
  • justfile
  • pnpm/tasks/cargo-equivalence/Cargo.toml
  • pnpm/tasks/cargo-equivalence/README.md
  • pnpm/tasks/cargo-equivalence/src/cli_args.rs
  • pnpm/tasks/cargo-equivalence/src/main.rs
  • pnpm/tasks/cargo-equivalence/src/runner.rs
  • pnpm/tasks/cargo-equivalence/src/runner/tests.rs
  • pnpm/tasks/cargo-equivalence/src/workspaces.rs

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


📝 Walkthrough

Walkthrough

Adds a Cargo equivalence harness with workspace fixtures, resolver comparison, expectation-based verdicts, CLI execution, documentation, a local command, and scheduled GitHub Actions validation.

Changes

Cargo equivalence validation

Layer / File(s) Summary
Workspace fixtures and expectations
pnpm/tasks/cargo-equivalence/src/workspaces.rs
Defines five Cargo workspace fixtures, expected resolver outcomes, issue tracking for the known difference, and workspace selection.
Resolution and lockfile comparison
pnpm/tasks/cargo-equivalence/src/runner.rs, pnpm/tasks/cargo-equivalence/src/runner/tests.rs
Runs Cargo and pnpm resolution, compares lockfiles, validates pnpm lockfiles with Cargo, classifies outcomes, and tests expectation handling.
CLI and local execution
pnpm/tasks/cargo-equivalence/Cargo.toml, pnpm/tasks/cargo-equivalence/src/cli_args.rs, pnpm/tasks/cargo-equivalence/src/main.rs, justfile
Adds the private binary package, CLI options, executable resolution, reporting, exit handling, and a just cargo-equivalence target.
Scheduled CI and task documentation
pnpm/tasks/cargo-equivalence/README.md, .github/workflows/cargo-equivalence.yml
Documents task behavior and runs the harness on demand or daily, uploading differing lockfiles after failures.

Priority: ⬇️ Low

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

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant cargo_equivalence
  participant Cargo
  participant pnpm
  cargo_equivalence->>Cargo: Resolve workspace and write Cargo.lock
  cargo_equivalence->>pnpm: Resolve workspace and write pnpm lockfile
  cargo_equivalence->>cargo_equivalence: Compare crate names and versions
  cargo_equivalence->>Cargo: Check pnpm lockfile with --locked
  cargo_equivalence-->>cargo_equivalence: Produce verdict and report
Loading

Merge Risk: ⚪ Minimal · up to 5121b

This change only adds an internal test harness, its documentation, and a daily scheduled check that compares dependency resolution results. Published packages and user-facing behavior are unchanged, so there is no identified merge-readiness risk.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cargo-equivalence

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

Add Cargo resolver equivalence harness and scheduled validation

🧪 Tests ⚙️ Configuration changes 📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Compare pnpm and Cargo lockfile resolution across representative live-index workspaces.
• Track expected resolver gaps while detecting unexpected differences or stale expectations.
• Run equivalence checks daily and preserve differing lockfiles for investigation.
Diagram

graph TD
  Schedule["Daily schedule"] --> Harness["Test harness"] --> Corpus["Workspace corpus"]
  Corpus --> Cargo["Cargo resolver"] --> Compare["Lock comparison"] --> Verdict{"Expected result?"}
  Corpus --> Pnpm["pnpm resolver"] --> Compare
  Pnpm --> Locked["Locked validation"] --> Verdict
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Snapshot the crates.io index
  • ➕ Produces deterministic, repeatable comparisons
  • ➕ Allows safe execution as a per-PR blocking check
  • ➖ Does not detect resolver drift caused by new releases or yanks
  • ➖ Requires maintaining and periodically refreshing index snapshots
2. Run equivalence checks on every PR
  • ➕ Provides immediate feedback when resolver code changes
  • ➕ Associates regressions directly with introducing commits
  • ➖ Live-index changes can fail unrelated pull requests
  • ➖ Repeated network resolution increases CI cost and latency

Recommendation: Keep the scheduled live-index harness because its purpose is ongoing behavioral equivalence against Cargo under current registry state. A snapshot-based suite could complement it for deterministic per-PR regression coverage, but should not replace the daily check; making the live check blocking would introduce unrelated registry-driven failures.

Files changed (9) +707 / -0

Documentation (1) +74 / -0
README.mdDocument equivalence testing and maintenance +74/-0

Document equivalence testing and maintenance

• Explains the resolver comparison pipeline, local usage, expectation semantics, fixture authoring, and rationale for scheduled non-blocking CI.

pnpm/tasks/cargo-equivalence/README.md

Other (8) +633 / -0
cargo-equivalence.ymlSchedule daily Cargo equivalence validation +55/-0

Schedule daily Cargo equivalence validation

• Adds a manually dispatchable daily workflow that builds pnpm and the equivalence harness, runs the live-index corpus, and uploads differing Cargo lockfiles after failures. Concurrency and timeout limits constrain runner usage.

.github/workflows/cargo-equivalence.yml

Cargo.lockRegister equivalence harness dependencies +9/-0

Register equivalence harness dependencies

• Adds the new pnpm-cargo-equivalence workspace package and its cargo-lock, clap, and which dependencies to the repository lockfile.

Cargo.lock

justfileExpose a local cargo-equivalence command +4/-0

Expose a local cargo-equivalence command

• Adds a just recipe for running the equivalence binary with forwarded command-line arguments.

justfile

Cargo.tomlDefine the Cargo equivalence binary crate +23/-0

Define the Cargo equivalence binary crate

• Declares the non-publishable cargo-equivalence task binary and its workspace-managed parsing, lockfile, and executable-discovery dependencies.

pnpm/tasks/cargo-equivalence/Cargo.toml

cli_args.rsDefine equivalence harness CLI options +31/-0

Define equivalence harness CLI options

• Adds arguments for selecting Cargo and pnpm executables, filtering workspaces, choosing the work directory, and preserving previous run artifacts.

pnpm/tasks/cargo-equivalence/src/cli_args.rs

main.rsCoordinate workspace runs and result reporting +130/-0

Coordinate workspace runs and result reporting

• Implements CLI parsing, executable resolution, work-directory cleanup, workspace execution, summary reporting, and process exit status based on accepted outcomes.

pnpm/tasks/cargo-equivalence/src/main.rs

runner.rsImplement resolver comparison pipeline +211/-0

Implement resolver comparison pipeline

• Creates isolated workspaces, invokes Cargo and pnpm, compares locked crate versions, and validates pnpm's lockfile with Cargo metadata. It classifies expected agreement, tracked differences, and stale or unexpected outcomes.

pnpm/tasks/cargo-equivalence/src/runner.rs

workspaces.rsAdd resolver edge-case workspace corpus +170/-0

Add resolver edge-case workspace corpus

• Defines five workspace fixtures covering prereleases, broad ranges, coexisting compatibility lines, weak features, and feature-activated dependencies. The final case records issue 14978 as an expected difference while ensuring agreement later makes the expectation fail.

pnpm/tasks/cargo-equivalence/src/workspaces.rs

@qodo-code-review

qodo-code-review Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. New resolver regressions pass as known 📘 Rule violation ▣ Testability
Description
judge classifies every non-empty compare or locked result for an Expectation::Differ
workspace as KnownDifference without verifying that the observed missing, extra, or
locked-validation discrepancy matches the workspace’s tracked issue. New crate-selection
regressions, additional resolution mismatches, malformed lockfiles, filesystem failures, and failed
cargo metadata executions therefore reach the successful accepted() path and leave the scheduled
run green.
Code

pnpm/tasks/cargo-equivalence/src/runner.rs[R101-103]

+        (Expectation::Differ { issue }, false) if comparing => {
+            (Verdict::KnownDifference, format!("{message} ({issue})"))
+        }
Relevance

●●● Strong

Accepted precedents favor propagating unexpected failures instead of broadly treating all errors as
known conditions.

PR-#14140
PR-#14854

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The only Differ workspace is linked to a specific issue, but the verdict branch checks only
whether the failure came from the broad compare or locked stage and whether its message is
non-empty. accepts_locked routes layout, file-copy, command-execution, and locked-metadata
failures through that same locked stage, and the final exit-code calculation accepts
KnownDifference, so no code verifies that the observed failure is actually caused by the linked
issue before downgrading it, contrary to compliance rule 713440.

Rule 713440: Investigate and resolve all failing tests before merge
pnpm/tasks/cargo-equivalence/src/runner.rs[93-105]
pnpm/tasks/cargo-equivalence/src/runner.rs[150-166]
pnpm/tasks/cargo-equivalence/src/workspaces.rs[136-151]
pnpm/tasks/cargo-equivalence/src/runner.rs[79-84]
pnpm/tasks/cargo-equivalence/src/runner.rs[168-186]
pnpm/tasks/cargo-equivalence/src/main.rs[49-53]

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

## Issue description
`Expectation::Differ` currently treats every comparison or locked-validation failure as the linked known issue, allowing unrelated resolver regressions, malformed metadata, and operational failures to pass.

## Fix Focus Areas
- pnpm/tasks/cargo-equivalence/src/runner.rs[93-105]
- pnpm/tasks/cargo-equivalence/src/runner.rs[150-166]
- pnpm/tasks/cargo-equivalence/src/workspaces.rs[136-151]

## Recommended Fix
Represent failures with structured causes and define the expected discrepancy explicitly for each known-gap workspace. Classify a result as known only when the actual missing, extra, or locked-validation discrepancy matches the issue-specific expectation; return `Unexpected` for additional or different discrepancies and for layout, file-copy, command-execution, lockfile-parsing, and unrelated comparison failures.

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


2. One workflow comment repeats its guard 📘 Rule violation ⚙ Maintainability
Description
The inline comment after the repository equality check merely paraphrases that the job runs only for
pnpm/pnpm. Any later change to the guard would require updating a second statement of the same
condition and could leave misleading workflow documentation.
Code

.github/workflows/cargo-equivalence.yml[25]

+    if: github.repository == 'pnpm/pnpm' # Only run on the main repository, not forks
Relevance

●●● Strong

Redundant inline comments are typically removed or rewritten; this directly restates the workflow
guard.

PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 713467 rejects comments that only restate directly inferable code. The comment says
the workflow runs only on the main repository and not forks, which is already expressed by
github.repository == 'pnpm/pnpm'.

Rule 713467: Avoid redundant comments that restate the code
.github/workflows/cargo-equivalence.yml[25-25]

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 workflow's repository guard has an inline comment that restates the condition without adding rationale or constraints.

## Fix Focus Areas
- .github/workflows/cargo-equivalence.yml[25-25]

## Recommended Fix
Remove the inline comment and retain the self-explanatory repository equality condition.

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


3. Registry races create false failures 🐞 Bug ☼ Reliability
Description
run resolves with Cargo and pnpm sequentially while both independently query the live crates.io
index, so they are not guaranteed to observe one registry state. A release or yank becoming visible
between the subprocesses reaches the crate comparison as an unexpected resolver mismatch and fails
the scheduled diagnostic despite both resolvers being correct for their snapshots.
Code

pnpm/tasks/cargo-equivalence/src/runner.rs[R72-75]

+    if let Err(error) = resolve_with_cargo(cargo, &cargo_dir) {
+        return finish("cargo", error);
+    }
+    if let Err(error) = resolve_with_pnpm(pnpm, &pnpm_dir) {
Relevance

●● Moderate

Plausible reliability concern, but no close precedent establishes the team’s preferred
registry-snapshot strategy.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The harness invokes the two resolvers one after another and converts any package-set difference into
an error, while its CLI and workflow explicitly describe operation against the live index. The final
report returns failure for that unexpected difference, so a registry transition during this interval
is indistinguishable from a resolver defect.

pnpm/tasks/cargo-equivalence/src/cli_args.rs[4-5]
pnpm/tasks/cargo-equivalence/src/runner.rs[72-76]
pnpm/tasks/cargo-equivalence/src/runner.rs[168-186]
pnpm/tasks/cargo-equivalence/src/main.rs[49-53]
.github/workflows/cargo-equivalence.yml[14-17]

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 two sequential resolutions independently read a mutable live registry, allowing an upstream update between them to produce a false mismatch.

## Fix Focus Areas
- pnpm/tasks/cargo-equivalence/src/runner.rs[72-76]
- .github/workflows/cargo-equivalence.yml[42-46]

## Recommended Fix
Capture or proxy a single immutable crates.io index snapshot for each run and configure both Cargo and pnpm to resolve against it. If snapshotting is unavailable, add a stability check that repeats both resolutions after a mismatch and reports failure only when the discrepancy persists against an unchanged registry view.

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


Grey Divider

Context sources
✅ Compliance rules (platform): 37 rules
Review mode: ⏭️ Skipped: The push only removes Rust documentation comments and adds a period to a justfile comment, with no semantic or behavioral changes.

Grey Divider

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

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

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.

@greptile-apps

greptile-apps Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no actionable new issue or outstanding previous finding remains.

Reviews (4) · Last reviewed commit: "docs(cargo-equivalence): drop a restatin..."

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.07     13.9±1.34ms    27.0 MB/sec    1.00     13.0±1.54ms    28.8 MB/sec
packument/parse                                  1.13     46.9±4.35µs  1413.5 MB/sec    1.00     41.4±1.85µs  1603.6 MB/sec
tarball/download_dependency                      1.21      6.2±1.64ms   700.7 KB/sec    1.00      5.1±1.56ms   845.0 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.02   283.3±45.46ms 56.5 KElem/sec    1.00   278.1±30.74ms 57.5 KElem/sec
workspace_resolution/hoist_heavy                 1.03   318.1±32.74ms        ? ?/sec    1.00   308.0±50.74ms        ? ?/sec
workspace_sort/chained_projects                  1.00     16.9±3.83ms        ? ?/sec    1.67    28.2±10.71ms        ? ?/sec

…hing else

A workspace expected to differ accepted every error its comparison stages
produced, so a lockfile that would not parse, or a cargo that would not
start, was waved through as the tracked difference and the run stayed
green. A tracked gap would have been a blind spot: any regression reaching
the same stage would have been read as the thing already known about.

A stage now reports what it concluded rather than a bare message. Agreeing
and disagreeing are conclusions about what the two resolvers produced; a
stage that could not reach one is broken, and broken is never a known gap
whatever the workspace expects.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 2e3b46a

@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

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

Comment thread justfile Resolved
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 5121b4f

@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

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.02%. Comparing base (68597dd) to head (5121b4f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14979      +/-   ##
==========================================
- Coverage   91.02%   91.02%   -0.01%     
==========================================
  Files        1281     1281              
  Lines      171835   171835              
==========================================
- Hits       156416   156414       -2     
- Misses      15419    15421       +2     

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

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

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

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 5121b4fa707b

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked-workspace scenario compares current Rust against main Rust. 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.518 ± 0.176 2.311 2.864 1.65 ± 0.18
pacquet@main 2.399 ± 0.088 2.280 2.539 1.57 ± 0.15
pnpr@HEAD 1.526 ± 0.132 1.339 1.691 1.00
pnpr@main 1.565 ± 0.103 1.381 1.705 1.03 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.5177398965,
      "stddev": 0.17587775853386944,
      "median": 2.4804688952,
      "user": 1.56254122,
      "system": 1.67439516,
      "min": 2.3108977257,
      "max": 2.8637027127
    },
    {
      "command": "pacquet@main",
      "mean": 2.3991121983,
      "stddev": 0.08810144388119978,
      "median": 2.4120046572,
      "user": 1.54791282,
      "system": 1.7153755599999996,
      "min": 2.2797778297,
      "max": 2.5394118677
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5263380627,
      "stddev": 0.13217564076880436,
      "median": 1.5317065187,
      "user": 1.5066436199999997,
      "system": 1.5848400599999999,
      "min": 1.3390908087,
      "max": 1.6912983957
    },
    {
      "command": "pnpr@main",
      "mean": 1.5654011530999998,
      "stddev": 0.1026055571114326,
      "median": 1.5933773612,
      "user": 1.63654802,
      "system": 1.67887826,
      "min": 1.3812603757000002,
      "max": 1.7054737767
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 308.6 ± 37.6 255.7 386.3 1.14 ± 0.20
pacquet@main 275.4 ± 34.1 235.2 345.3 1.01 ± 0.18
pnpr@HEAD 271.6 ± 33.6 237.8 337.5 1.00
pnpr@main 274.7 ± 20.0 248.0 303.1 1.01 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.30863535082000004,
      "stddev": 0.03757863544816592,
      "median": 0.30137889772000004,
      "user": 0.34089152000000006,
      "system": 0.65731854,
      "min": 0.25574716922,
      "max": 0.38631977522000005
    },
    {
      "command": "pacquet@main",
      "mean": 0.27539211052000007,
      "stddev": 0.034146173981602926,
      "median": 0.27298232772000003,
      "user": 0.29562332,
      "system": 0.6233399399999999,
      "min": 0.23520283922000002,
      "max": 0.34530776422000004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.27155786642,
      "stddev": 0.033596430530041084,
      "median": 0.25601358472,
      "user": 0.27543032,
      "system": 0.6065592399999999,
      "min": 0.23778183322000002,
      "max": 0.33753861622000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.27471110262000004,
      "stddev": 0.020018124630183425,
      "median": 0.27146552822000003,
      "user": 0.29643682,
      "system": 0.59452014,
      "min": 0.24801389822,
      "max": 0.30313796122000003
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 10.8 ± 1.3 8.0 14.5 1.00
pacquet@main 11.2 ± 1.6 8.1 16.4 1.03 ± 0.20
pnpr@HEAD 11.7 ± 1.4 8.9 15.9 1.08 ± 0.18
pnpr@main 11.5 ± 1.4 8.3 15.0 1.07 ± 0.18
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.01078971733509433,
      "stddev": 0.0012947543238502094,
      "median": 0.01050461992,
      "user": 0.005826245471698109,
      "system": 0.005809348396226417,
      "min": 0.00797200492,
      "max": 0.01446195492
    },
    {
      "command": "pacquet@main",
      "mean": 0.011160395819999998,
      "stddev": 0.0016385086004226928,
      "median": 0.010936432920000001,
      "user": 0.0061981679999999996,
      "system": 0.0058117357600000015,
      "min": 0.00810875592,
      "max": 0.016390955920000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.01167403201311742,
      "stddev": 0.0013909220618939684,
      "median": 0.011507795920000001,
      "user": 0.006294730040485828,
      "system": 0.0062942373279352235,
      "min": 0.00889786992,
      "max": 0.01589858292
    },
    {
      "command": "pnpr@main",
      "mean": 0.011504283942522524,
      "stddev": 0.0014017651794478645,
      "median": 0.011395385420000001,
      "user": 0.006484208288288285,
      "system": 0.0059113928828828845,
      "min": 0.00827831592,
      "max": 0.01497718692
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 12.0 ± 1.5 8.6 16.5 1.03 ± 0.20
pacquet@main 13.4 ± 2.7 9.4 23.3 1.15 ± 0.29
pnpr@HEAD 13.6 ± 2.8 9.8 24.8 1.17 ± 0.30
pnpr@main 11.6 ± 1.7 8.2 24.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.012037975718235285,
      "stddev": 0.0015200036439985583,
      "median": 0.011994735880000001,
      "user": 0.006952810392156863,
      "system": 0.0058420735294117685,
      "min": 0.008644524380000001,
      "max": 0.01652343538
    },
    {
      "command": "pacquet@main",
      "mean": 0.013367112779999999,
      "stddev": 0.0027191929677020644,
      "median": 0.01301802238,
      "user": 0.00759118212765957,
      "system": 0.006588425531914895,
      "min": 0.00940026038,
      "max": 0.02332927538
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.01362865480384106,
      "stddev": 0.002791568634203023,
      "median": 0.012831282380000001,
      "user": 0.0084116098013245,
      "system": 0.006027768211920528,
      "min": 0.009781350380000001,
      "max": 0.02483581738
    },
    {
      "command": "pnpr@main",
      "mean": 0.011633473140368665,
      "stddev": 0.001742267167867651,
      "median": 0.011466352380000001,
      "user": 0.006486711336405526,
      "system": 0.005869239631336403,
      "min": 0.00815759438,
      "max": 0.024825238380000003
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.882 ± 0.083 2.750 3.039 1.90 ± 0.13
pacquet@main 2.790 ± 0.142 2.568 3.012 1.83 ± 0.15
pnpr@HEAD 1.643 ± 0.100 1.455 1.750 1.08 ± 0.09
pnpr@main 1.521 ± 0.094 1.396 1.668 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.8821383584799998,
      "stddev": 0.08259687112988708,
      "median": 2.8677832906800003,
      "user": 2.8871904999999995,
      "system": 2.42834034,
      "min": 2.75009653718,
      "max": 3.03945609818
    },
    {
      "command": "pacquet@main",
      "mean": 2.79011778128,
      "stddev": 0.14170108834937933,
      "median": 2.7450296826800002,
      "user": 2.6942600999999997,
      "system": 2.27142344,
      "min": 2.56753804518,
      "max": 3.01170986218
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6432602513799999,
      "stddev": 0.10001449846547912,
      "median": 1.6650489311799999,
      "user": 1.6455935,
      "system": 1.83750084,
      "min": 1.45542547718,
      "max": 1.75029619318
    },
    {
      "command": "pnpr@main",
      "mean": 1.5207884158799998,
      "stddev": 0.09397397155937451,
      "median": 1.49867927768,
      "user": 1.2550767,
      "system": 1.4900696399999998,
      "min": 1.39596101218,
      "max": 1.66813182118
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 376.8 ± 22.0 355.5 430.6 1.28 ± 0.08
pacquet@main 402.0 ± 19.2 384.7 447.7 1.36 ± 0.08
pnpr@HEAD 294.9 ± 9.2 286.1 315.4 1.00
pnpr@main 348.4 ± 27.6 311.6 412.6 1.18 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.3767989595,
      "stddev": 0.022030618434390217,
      "median": 0.3736716644,
      "user": 0.60016246,
      "system": 0.87063424,
      "min": 0.3555344294,
      "max": 0.43055238040000005
    },
    {
      "command": "pacquet@main",
      "mean": 0.40196636380000006,
      "stddev": 0.019212127310414173,
      "median": 0.3961594799,
      "user": 0.66402186,
      "system": 0.9036413400000001,
      "min": 0.3846888704,
      "max": 0.4476874384
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.2948642333,
      "stddev": 0.009222494884107023,
      "median": 0.29327381490000004,
      "user": 0.25294556,
      "system": 0.53569574,
      "min": 0.28613601040000003,
      "max": 0.31541646840000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.34844767600000004,
      "stddev": 0.027591486742017734,
      "median": 0.3476867294,
      "user": 0.3048338599999999,
      "system": 0.65209474,
      "min": 0.3116095884,
      "max": 0.4126193804
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.940 ± 0.249 1.732 2.512 5.76 ± 0.88
pacquet@main 1.783 ± 0.071 1.680 1.872 5.29 ± 0.49
pnpr@HEAD 0.337 ± 0.028 0.305 0.396 1.00
pnpr@main 0.377 ± 0.030 0.342 0.426 1.12 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.94022428812,
      "stddev": 0.24889334877373528,
      "median": 1.85111633692,
      "user": 1.5376663199999998,
      "system": 1.43518332,
      "min": 1.7316483159199998,
      "max": 2.51159741692
    },
    {
      "command": "pacquet@main",
      "mean": 1.7829881692199998,
      "stddev": 0.07130462968501924,
      "median": 1.7887683989199998,
      "user": 1.2694225199999998,
      "system": 1.2665835200000002,
      "min": 1.6802025459199998,
      "max": 1.87199190992
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.33710360572000003,
      "stddev": 0.02810330054127554,
      "median": 0.33622094742,
      "user": 0.28905662000000004,
      "system": 0.59789552,
      "min": 0.30540389392000006,
      "max": 0.39580230992000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.3766864847200001,
      "stddev": 0.03008316315660067,
      "median": 0.37235703292000005,
      "user": 0.34579202,
      "system": 0.6481440199999999,
      "min": 0.34171320992000004,
      "max": 0.4261124089200001
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 228.7 ± 17.3 200.0 257.8 2.42 ± 0.23
pacquet@main 234.0 ± 15.9 208.7 258.5 2.47 ± 0.22
pnpr@HEAD 94.7 ± 5.3 86.5 109.8 1.00
pnpr@main 97.5 ± 4.3 89.2 104.9 1.03 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.22865792598909093,
      "stddev": 0.017305781365018664,
      "median": 0.22560418908,
      "user": 0.2289804690909091,
      "system": 0.07697871636363635,
      "min": 0.20003225208,
      "max": 0.25775790108
    },
    {
      "command": "pacquet@main",
      "mean": 0.23404649462545457,
      "stddev": 0.01591329000437152,
      "median": 0.23067750508,
      "user": 0.23179410545454546,
      "system": 0.08532644363636364,
      "min": 0.20873003908,
      "max": 0.25845496908000004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.0946739717466667,
      "stddev": 0.005329623255793612,
      "median": 0.09472678058,
      "user": 0.032677726666666664,
      "system": 0.018446913333333332,
      "min": 0.08646783008,
      "max": 0.10975668108
    },
    {
      "command": "pnpr@main",
      "mean": 0.0975304976283871,
      "stddev": 0.00426955972147132,
      "median": 0.09660767108000001,
      "user": 0.038390818064516115,
      "system": 0.01739982193548387,
      "min": 0.08916834908,
      "max": 0.10487792508
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 879.9 ± 167.6 639.4 1118.6 1.00
pacquet@main 940.5 ± 177.7 726.2 1217.5 1.07 ± 0.29
pnpm@HEAD 5512.8 ± 1111.2 4592.3 7766.8 6.27 ± 1.74
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.8798863687266666,
      "stddev": 0.16761525905362518,
      "median": 0.8403685360600001,
      "user": 0.9310186844444444,
      "system": 0.18250362888888888,
      "min": 0.63938476606,
      "max": 1.11858555006
    },
    {
      "command": "pacquet@main",
      "mean": 0.9404876208377778,
      "stddev": 0.17770418935868323,
      "median": 0.9210610440600001,
      "user": 0.9756785733333333,
      "system": 0.20003118444444445,
      "min": 0.72618390006,
      "max": 1.2175396190599999
    },
    {
      "command": "pnpm@HEAD",
      "mean": 5.512834148615556,
      "stddev": 1.1112089891423027,
      "median": 4.78008103906,
      "user": 8.54011824,
      "system": 0.3944281844444444,
      "min": 4.59234619106,
      "max": 7.76677923206
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 191.7 ± 7.7 173.4 203.2 1.00
pacquet@main 192.0 ± 11.2 178.2 215.2 1.00 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.19165127770000004,
      "stddev": 0.007706114278596495,
      "median": 0.1904750419,
      "user": 0.13990598666666665,
      "system": 0.09528985333333334,
      "min": 0.1734078189,
      "max": 0.2031939329
    },
    {
      "command": "pacquet@main",
      "mean": 0.19196379943333333,
      "stddev": 0.011186481600383135,
      "median": 0.18746224690000002,
      "user": 0.15001292,
      "system": 0.08787465333333332,
      "min": 0.1781518969,
      "max": 0.2151959179
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.557 ± 0.121 4.403 4.739 1.25 ± 0.05
pacquet@main 4.602 ± 0.159 4.429 4.918 1.26 ± 0.06
pnpr@HEAD 3.642 ± 0.115 3.467 3.860 1.00
pnpr@main 3.748 ± 0.162 3.500 3.952 1.03 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.55712292236,
      "stddev": 0.12087686734981629,
      "median": 4.552839046759999,
      "user": 2.08446918,
      "system": 2.06395604,
      "min": 4.4027626157599995,
      "max": 4.73898065876
    },
    {
      "command": "pacquet@main",
      "mean": 4.60177980176,
      "stddev": 0.15941340088887693,
      "median": 4.552278039759999,
      "user": 1.9105057799999998,
      "system": 1.8814795400000002,
      "min": 4.42878430776,
      "max": 4.91848782976
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.64211279186,
      "stddev": 0.11535836364509924,
      "median": 3.66530021576,
      "user": 1.96180648,
      "system": 2.0019419399999996,
      "min": 3.4666999927599997,
      "max": 3.85963276576
    },
    {
      "command": "pnpr@main",
      "mean": 3.7476375024600004,
      "stddev": 0.16247152700752832,
      "median": 3.79089934376,
      "user": 2.15775988,
      "system": 2.2508158400000005,
      "min": 3.50027379376,
      "max": 3.95243134676
    }
  ]
}

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

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 177.9 ± 14.3 147.5 194.5 1.05 ± 0.13
pacquet@main 169.3 ± 15.9 143.4 197.7 1.00
pnpr@HEAD 189.6 ± 19.3 168.6 243.8 1.12 ± 0.16
pnpr@main 204.8 ± 17.2 182.0 237.5 1.21 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.1778706139457143,
      "stddev": 0.014318440960359832,
      "median": 0.18015714366000002,
      "user": 0.20249645142857145,
      "system": 0.20730358571428573,
      "min": 0.14752915016,
      "max": 0.19452853216000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.16927011476000003,
      "stddev": 0.015903449602426744,
      "median": 0.16835368616000002,
      "user": 0.21494684666666666,
      "system": 0.17681073333333333,
      "min": 0.14341707316,
      "max": 0.19766661716
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.18961535669846155,
      "stddev": 0.019339808848283246,
      "median": 0.18311491016,
      "user": 0.21719922615384613,
      "system": 0.1863954153846154,
      "min": 0.16857397516,
      "max": 0.24376686916
    },
    {
      "command": "pnpr@main",
      "mean": 0.20475665582666666,
      "stddev": 0.01721692822830728,
      "median": 0.20153031816,
      "user": 0.2355454633333333,
      "system": 0.20263079999999997,
      "min": 0.18201191316,
      "max": 0.23745901716
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/14979
Testbedpacquet

🚨 3 Alerts

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
gvs-linker.fresh-restore.hot-cache.hot-storeLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
147.53 ms
(+36.24%)Baseline: 108.29 ms
129.95 ms
(113.53%)

isolated-linker.peer-heavy-resolve.hot-cache.offlineLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
639.38 ms
(+22.76%)Baseline: 520.85 ms
625.02 ms
(102.30%)

isolated-linker.repeat-install.cold-cache.hot-storeLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
8.64 ms
(+35.48%)Baseline: 6.38 ms
7.66 ms
(112.90%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
🚨 view alert (🔔)
147.53 ms
(+36.24%)Baseline: 108.29 ms
129.95 ms
(113.53%)

isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,750.10 ms
(+12.68%)Baseline: 2,440.70 ms
2,928.84 ms
(93.90%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,731.65 ms
(+12.02%)Baseline: 1,545.91 ms
1,855.09 ms
(93.35%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
355.53 ms
(+0.69%)Baseline: 353.10 ms
423.72 ms
(83.91%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
200.03 ms
(+5.27%)Baseline: 190.03 ms
228.03 ms
(87.72%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,310.90 ms
(+1.55%)Baseline: 2,275.62 ms
2,730.74 ms
(84.63%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,402.76 ms
(+2.08%)Baseline: 4,313.17 ms
5,175.80 ms
(85.06%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
255.75 ms
(+17.55%)Baseline: 217.57 ms
261.09 ms
(97.95%)
isolated-linker.linked-workspace-resolve.hot-cache.offline📈 view plot
🚷 view threshold
173.41 ms
(-0.10%)Baseline: 173.59 ms
208.31 ms
(83.25%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
🚨 view alert (🔔)
639.38 ms
(+22.76%)Baseline: 520.85 ms
625.02 ms
(102.30%)

isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
🚷 view threshold
🚨 view alert (🔔)
8.64 ms
(+35.48%)Baseline: 6.38 ms
7.66 ms
(112.90%)

isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
🚷 view threshold
7.97 ms
(+18.17%)Baseline: 6.75 ms
8.10 ms
(98.47%)
🐰 View full continuous benchmarking report in Bencher

@zkochan

zkochan commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

CI notes, since this PR went red twice for reasons that were not the change.

Resolved: Install pnpm flake. Rust CI, the npm wrapper job and three isolated-linker.* benchmark checks all failed at the same step, the third-party pnpm/setup action run with install: false, which only downloads the pnpm binary. On the benchmark job it failed at step 9 and every benchmark step was skipped, so the red isolated-linker.* checks were that skip rather than a measurement. Another branch hit the identical step nine minutes earlier and the same benchmarks were green on main. Re-running was enough: Rust CI passed on attempt 2 and the benchmark run passed.

Remaining: Bencher Report, alerting on gvs-linker.fresh-restore.hot-cache.hot-store at 147.53 ms. Reading it as noise, having checked the one mechanism by which an additive crate could move a runtime benchmark: workspace feature unification changing how the pnpm binary is built. It does not happen here. The Cargo.lock diff is a single added entry whose three dependencies (cargo-lock, clap, which) were all already in the lock, and no existing package's entry changes: no version bumps, no new features, no new transitive crates, 880 packages to 881. Nothing else in the diff is compiled into pnpm at all, since the new crate is a [[bin]] of its own under pnpm/tasks/.


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

@zkochan
zkochan merged commit 5471ef3 into main Sep 16, 2026
77 of 89 checks passed
@zkochan
zkochan deleted the cargo-equivalence branch September 16, 2026 19:00
u9g pushed a commit to u9g/pnpm that referenced this pull request Sep 25, 2026
…m#14979)

pnpm v12 resolves Cargo dependencies itself rather than shelling out to
cargo, so it is a second implementation of cargo's resolver, and being a
drop-in replacement means producing the versions cargo produces rather than
merely producing a lockfile. Unit tests pin that against synthetic indexes,
which is where the rules are easiest to state and easiest to get subtly
wrong: the resolver fixes in pnpm#14952, pnpm#14960,
pnpm#14961 and pnpm#14962 were each confirmed by hand-checking a
real workspace against cargo after the unit tests were already green.

This is that hand-check, written down. For each workspace in the corpus it
resolves twice, compares the locked crates, and asks cargo whether it
accepts pnpm's lockfile with `--locked` in a copy pnpm never touched, so
the lockfile is measured apart from the source replacement written beside
it. Requirements are open rather than pinned: both resolvers read the same
index on the same day, so an upstream release changes what they agree on,
not whether they agree.

A workspace declares whether the two are expected to agree yet. A known
gap reports as such and does not fail the run, but does fail if the two
start agreeing, so a fixed issue cannot leave a stale expectation behind.
`feature-activated-deps` is the one gap today, tracking pnpm#14978.

It runs on a daily cron rather than per-PR because it reads the live index,
where a yank or a release can change a result with nothing in this repo
changing.
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.

2 participants