Skip to content

chore: make just known-failures work with an empty list and the CLI suite - #13355

Merged
zkochan merged 3 commits into
mainfrom
document-link-closure-divergence
Nov 19, 2026
Merged

zkochan merged 3 commits into
mainfrom
document-link-closure-divergence

Conversation

@zkochan

@zkochan zkochan commented Jul 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Makes just known-failures usable now that the expected-failure list is empty, and makes it able to find stubs again inside the CLI test suite.

  • Empty list exits 0. rg exits 1 when nothing matches, so an empty list reported as a recipe failure. The workspace build now runs on its own un-silenced line, so a compile failure still aborts with cargo's diagnostics. Only the listing line tolerates a nonzero status, through just's - prefix.
  • Stubs in the suite are listed. The CLI end-to-end tests build as one target, so a stub lists as <module>::known_failures::<name>. The ^known_failures:: anchor never matched that; the pattern is now (^|::)known_failures::.
  • Stale porting note. TEST_PORTING.md pointed at a known_failures::hoisted_workspace_layout_does_not_duplicate_root_version stub that fix(package-manager): stop nesting hoisted deps that won the root slot #13306 replaced with real assertions. The entry now names that test.

This PR originally pinned pacquet's deep link-target closure for filtered installs as intended v12 behavior. #13634 settled that the other way: filtered workspace links stay shallow, matching v11. That part was dropped on rebase, along with its changeset.

Verified: just known-failures builds the workspace and exits 0 with an empty list. A real suite test name rewritten into stub form is listed by the new pattern and missed by the old one.

Squash Commit Body

`just known-failures` piped into `rg`, which exits 1 on no matches, so an
empty expected-failure list reported as a recipe failure. The workspace
build now runs on its own un-silenced line, so a compile failure still
aborts with cargo's diagnostics, and only the listing line tolerates a
nonzero status, through just's `-` line prefix.

The CLI end-to-end tests build as one target, so a stub lists as
`<module>::known_failures::<name>` and the `^known_failures::` anchor
never matched it. The pattern now matches the segment at any depth.

TEST_PORTING.md pointed at a hoisted-layout stub that pnpm/pnpm#13306
replaced with real assertions; the entry now names that test.

Checklist

  • Added or updated tests.
  • Updated the documentation if needed.

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

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Known-failure checks now compile workspace tests first and handle empty results without error.
    • Failure listings now find matching tests regardless of where the marker appears in the test path.
    • The lifecycle-script test now checks that consumers of the root-slot-winning version have no nested copy.
  • Documentation
    • Updated the test-porting tracker to reflect the lifecycle-script test and its layout assertion as ported.

Copilot AI review requested due to automatic review settings July 25, 2026 13:50

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

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The known-failures recipes now compile workspace tests before listing matching tests. The test-porting record now points to the suite’s scripts.rs module and marks the layout assertion as included.

Changes: Known-failures command handling

Layer / File(s) Summary
Known-failures listing recipes
justfile
The Unix and Windows recipes compile workspace tests before listing tests. Their searches tolerate no matches and recognize known_failures:: within qualified paths. Each recipe retains its platform-specific stderr redirection.

Test-porting record

Layer / File(s) Summary
Hoisted linker test entry
pnpm/plans/TEST_PORTING.md
The entry now points to the suite’s scripts.rs module and marks the layout assertion as included instead of describing it as a known failure.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested labels: product: pacquet

Merge Risk: Minimal · up to 7847e

This change makes the known-failures helper succeed when the expected-failure list is empty and find tests at any module depth. It also updates a porting note. It only affects developer tooling and documentation, and no merge-blocking risk remains.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e9d8fb5 and 7847e39.

Files selected for processing: 2

  • justfile
  • pnpm/plans/TEST_PORTING.md
Files skipped from review as they are similar to previous changes: 1

  • pnpm/plans/TEST_PORTING.md

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

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Pin v12 subset-install link-target dependency closure via CLI regression test

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

Grey Divider

AI Description

• Assert v12 subset installs include linked workspace targets’ own dependencies.
• Replace the last known-failure stub with a concrete multi-importer regression test.
• Document the deliberate divergence and record it as a breaking-change changeset.
Diagram

graph TD
  U(["Developer"]) --> C["pacquet CLI: --filter <proj> install"] --> M{"Subset install"} --> L["Linked workspace target"] --> D[("Target node_modules deps")]
  T["multiple_importers.rs test"] --> C
  P["TEST_PORTING.md"] --> T
  S["Changeset (breaking)"] --> C

  subgraph Legend
    direction LR
    _actor(["Actor"]) ~~~ _svc["Component / file"] ~~~ _dec{"Decision / behavior"} ~~~ _db[("Installed deps")]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Match pnpm 11 shallow link-target closure
  • ➕ Avoids increasing disk footprint for narrow CI installs
  • ➕ Aligns with upstream semantics and reduces surprise for pnpm migrators
  • ➖ Leaves selected projects runnable only if users know to widen via --filter ...
  • ➖ Makes link:-based workspace composition brittle in subset installs
2. Make deep link-target materialization opt-in (flag/config)
  • ➕ Preserves backwards compatibility while allowing runnable subset installs
  • ➕ Gives CI use-cases a clear knob to keep closure small
  • ➖ Adds UX and maintenance complexity (flag semantics, docs, test matrix)
  • ➖ Risk of ecosystem fragmentation and inconsistent behavior across commands
3. Auto-deepen only for runtime-referenced link targets (heuristic)
  • ➕ Potentially reduces unnecessary installs vs always-deepen
  • ➖ Heuristics are error-prone (static analysis limits, dynamic imports)
  • ➖ Harder to reason about and to test deterministically

Recommendation: Keeping pacquet’s current v12 behavior and pinning it with a regression test is the most robust choice: it ensures a filtered install yields a runnable project even when it links to a workspace target. Given the explicit breaking-change note and updated porting plan, the approach is appropriately documented; an opt-in flag is the main viable alternative but likely not worth the added surface area unless CI footprint complaints emerge.

Files changed (4) +51 / -37

Tests (1) +37 / -33
multiple_importers.rsReplace known-failure stub with concrete test asserting deep link-target dependency install +37/-33

Replace known-failure stub with concrete test asserting deep link-target dependency install

• Rewords the existing upstream-tail comment to reflect v12’s deliberate divergence. Removes the 'known_failures' module and adds a new regression test that installs 'project-1' with '--filter' and asserts the linked 'project-2' has its own dependency materialized in 'node_modules'.

pnpm/crates/cli/tests/multiple_importers.rs

Documentation (1) +1 / -1
TEST_PORTING.mdRecord upstream tail as deliberately not ported (v12 divergence pinned by new test) +1/-1

Record upstream tail as deliberately not ported (v12 divergence pinned by new test)

• Updates the porting checklist entry for the upstream multi-importer test to clarify the unported tail is an intentional v12 behavior difference. Cross-references the new regression test and the changeset as the final decision point.

pnpm/plans/TEST_PORTING.md

Other (2) +13 / -3
link-target-dependencies-are-installed.mdAdd breaking-change changeset for deeper link-target closure on filtered installs +9/-0

Add breaking-change changeset for deeper link-target closure on filtered installs

• Introduces a changeset marking a breaking change: filtered installs now also install dependencies of 'link:'/'workspace:' targets. Documents the pnpm 11 vs pacquet behavior difference and notes that '--filter <project>...' becomes redundant for this specific widening.

.changeset/link-target-dependencies-are-installed.md

justfileMake 'known-failures' recipe succeed when the list is empty +4/-3

Make 'known-failures' recipe succeed when the list is empty

• Updates the developer-only 'known-failures' recipe to tolerate 'rg' exit code 1 when there are no matches. Prevents an empty known-failure list from being reported as a task failure on both Unix and Windows.

justfile

@greptile-apps

greptile-apps Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed changes appear safe to merge.

Reviews (3) · Last reviewed commit: "chore: list known-failure stubs inside t..." · Reviewed by Greptile

Comment thread justfile Resolved
@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.02     11.3±0.03ms    33.1 MB/sec    1.00     11.1±0.04ms    33.7 MB/sec
packument/parse                1.00     38.1±0.07µs  1741.7 MB/sec    1.03     39.1±0.14µs  1696.4 MB/sec
tarball/download_dependency    1.01      2.3±0.09ms  1876.1 KB/sec    1.00      2.3±0.07ms  1887.4 KB/sec

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Historical v11/v12 commentary ⊘ Outdated
Description
New Rust doc comments describe behavior in terms of historical versions (pnpm v12 vs v11) rather
than stating the current contract of the code under test. This violates the rule against
historical-implementation commentary in inline comments.

2. Subset install diverges pnpm ⊘ Outdated
Description
A new Rust test and changeset text assert that filtered installs materialize dependencies of link:
targets, while pnpm v11's upstream TypeScript test asserts the opposite tail
(hasNot('is-negative')). This introduces/enshrines a user-visible Pacquet behavior beyond pnpm,
violating the compatibility requirement.


Informational

3. Known-failures builds workspace 🐞 Bug ➹ Performance
Description
just known-failures now unconditionally runs cargo test --workspace --no-run --quiet, forcing a
full workspace test build before printing the stub list. On cold builds this can add significant
latency even though the workflow is documented as a listing helper.
Code

justfile[R82-88]

+  cargo test --workspace --no-run --quiet
+  -@cargo test --workspace known_failures -- --list 2>/dev/null | rg '^known_failures::'

[windows]
known-failures:
-  @cargo test --workspace known_failures -- --list 2>nul | rg '^known_failures::'
+  cargo test --workspace --no-run --quiet
+  -@cargo test --workspace known_failures -- --list 2>nul | rg '^known_failures::'
Relevance

● Weak

Repo has rejected similar “avoid extra work for perf” suggestions; this build step seems intentional
for diagnostics.

PR-#12842
PR-#13172

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The just recipe now runs a workspace-wide cargo test --workspace --no-run --quiet before the
listing step on both Unix and Windows, which can be a significant cold-build cost for a command
documented as “list expected failures.” The CLI package is pacquet-cli, which provides a natural
scoping target if the build does not need to validate the entire workspace.

justfile[76-88]
pnpm/plans/TEST_PORTING.md[14-14]
pnpm/crates/cli/Cargo.toml[1-4]

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

## Issue description
`just known-failures` is documented as a helper to list expected-failing test ports, but it now always performs a workspace-wide `cargo test --workspace --no-run --quiet` before listing. This can be expensive on cold builds.

## Issue Context
The pre-build step is intended to surface workspace compile failures with Cargo diagnostics while still treating an empty `rg` match list as success. That intent can be preserved while reducing cold-build cost.

## Fix Focus Areas
- justfile[76-79]
- justfile[82-83]
- justfile[87-88]

## Suggested fix directions (pick one)
1) **Scope the build to the relevant package(s)** (if the goal is only to ensure the tests that can contain `known_failures::...` compile):
  - Replace `cargo test --workspace --no-run --quiet` with `cargo test -p pacquet-cli --no-run --quiet` (or the minimal set of packages that can contain these tests).

2) **Split into two explicit recipes** to keep current safety while making the listing fast by default:
  - `known-failures` (fast listing, may not pre-build)
  - `known-failures-validate` (workspace-wide build + listing)

3) **Preserve cargo failure propagation without a full pre-build** by capturing the `-- --list` output to a temp file (so cargo exit code is checked) and then running `rg` on the file while allowing “no matches” to be success.

(Any option should keep the existing behavior: cargo compile errors should still fail the recipe with diagnostics, while an empty known-failure list should exit 0.)

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

Dismiss ↗ | View ↗


4. pnpm missing in changeset ⊘ Outdated
Description
The new changeset only bumps pacquet and marks it minor, even though the body declares a
breaking change. This violates the requirement to declare a pnpm bump and to use a bump type
consistent with the described change (breaking changes must be major).

5. known-failures hides failures ✓ Resolved

Resolving commit: 7847e39

Resolution reason
Replaced the || true masking with a separate build step (`cargo test --workspace --no-run
--quiet) that fails the recipe on compile errors, and marked the listing line with -` so only its
failure is ignored. No true builtin is used, so the Windows cmd.exe problem is gone.
Description
The known-failures just recipe now ends with || true, which forces success even when `cargo
test fails (e.g., compile error) or rg errors, and on Windows it likely fails because true`
isn’t a default cmd.exe command. This can incorrectly report “no known failures” when the
underlying command actually failed, reducing reliability of developer checks.

Grey Divider

Context sources
✅ Compliance rules (platform): 57 rules
✅ Cross-repo context — repo relationships
✅ Context preparation
  Commit messages: summarized; full text retained for this review
Review mode: Auto: ⚖️ Balanced: Behavioral recipe changes affect failure reporting across Unix and Windows.

Grey Divider

Tip of the day
💡 Did you know, you can describe a rule in plain language on the Rules page and Qodo drafts it for you

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 7847e39

Results up to commit 9dfd0e0 ⚖️ Balanced


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


Remediation recommended
1. Historical v11/v12 commentary ⊘ Outdated
Description
New Rust doc comments describe behavior in terms of historical versions (pnpm v12 vs v11) rather
than stating the current contract of the code under test. This violates the rule against
historical-implementation commentary in inline comments.

2. Subset install diverges pnpm ⊘ Outdated
Description
A new Rust test and changeset text assert that filtered installs materialize dependencies of link:
targets, while pnpm v11's upstream TypeScript test asserts the opposite tail
(hasNot('is-negative')). This introduces/enshrines a user-visible Pacquet behavior beyond pnpm,
violating the compatibility requirement.


Informational
3. known-failures hides failures ✓ Resolved

Resolving commit: 7847e39

Resolution reason
Replaced the || true masking with a separate build step (`cargo test --workspace --no-run
--quiet) that fails the recipe on compile errors, and marked the listing line with -` so only its
failure is ignored. No true builtin is used, so the Windows cmd.exe problem is gone.
Description
The known-failures just recipe now ends with || true, which forces success even when `cargo
test fails (e.g., compile error) or rg errors, and on Windows it likely fails because true`
isn’t a default cmd.exe command. This can incorrectly report “no known failures” when the
underlying command actually failed, reducing reliability of developer checks.

4. pnpm missing in changeset ⊘ Outdated
Description
The new changeset only bumps pacquet and marks it minor, even though the body declares a
breaking change. This violates the requirement to declare a pnpm bump and to use a bump type
consistent with the described change (breaking changes must be major).

Results up to commit e9d8fb5 ⚖️ Balanced


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


Informational
1. Known-failures builds workspace 🐞 Bug ➹ Performance
Description
just known-failures now unconditionally runs cargo test --workspace --no-run --quiet, forcing a
full workspace test build before printing the stub list. On cold builds this can add significant
latency even though the workflow is documented as a listing helper.
Code

justfile[R82-88]

+  cargo test --workspace --no-run --quiet
+  -@cargo test --workspace known_failures -- --list 2>/dev/null | rg '^known_failures::'

[windows]
known-failures:
-  @cargo test --workspace known_failures -- --list 2>nul | rg '^known_failures::'
+  cargo test --workspace --no-run --quiet
+  -@cargo test --workspace known_failures -- --list 2>nul | rg '^known_failures::'
Relevance

● Weak

Repo has rejected similar “avoid extra work for perf” suggestions; this build step seems intentional
for diagnostics.

PR-#12842
PR-#13172

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The just recipe now runs a workspace-wide cargo test --workspace --no-run --quiet before the
listing step on both Unix and Windows, which can be a significant cold-build cost for a command
documented as “list expected failures.” The CLI package is pacquet-cli, which provides a natural
scoping target if the build does not need to validate the entire workspace.

justfile[76-88]
pnpm/plans/TEST_PORTING.md[14-14]
pnpm/crates/cli/Cargo.toml[1-4]

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

## Issue description
`just known-failures` is documented as a helper to list expected-failing test ports, but it now always performs a workspace-wide `cargo test --workspace --no-run --quiet` before listing. This can be expensive on cold builds.

## Issue Context
The pre-build step is intended to surface workspace compile failures with Cargo diagnostics while still treating an empty `rg` match list as success. That intent can be preserved while reducing cold-build cost.

## Fix Focus Areas
- justfile[76-79]
- justfile[82-83]
- justfile[87-88]

## Suggested fix directions (pick one)
1) **Scope the build to the relevant package(s)** (if the goal is only to ensure the tests that can contain `known_failures::...` compile):
  - Replace `cargo test --workspace --no-run --quiet` with `cargo test -p pacquet-cli --no-run --quiet` (or the minimal set of packages that can contain these tests).

2) **Split into two explicit recipes** to keep current safety while making the listing fast by default:
  - `known-failures` (fast listing, may not pre-build)
  - `known-failures-validate` (workspace-wide build + listing)

3) **Preserve cargo failure propagation without a full pre-build** by capturing the `-- --list` output to a temp file (so cargo exit code is checked) and then running `rg` on the file while allowing “no matches” to be success.

(Any option should keep the existing behavior: cargo compile errors should still fail the recipe with diagnostics, while an empty known-failure list should exit 0.)

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

Dismiss ↗ | View ↗


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.

@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: 3

Caution

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

⚠️ Outside diff range comments (1)
pnpm/plans/TEST_PORTING.md (1)

301-305: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Stale "Rust port notes" entry contradicts the line-276 decision.

Line 304 still says the link-target divergence "is pinned by the known_failures stub on the multipleImporters.ts:540 tail and needs a cross-stack decision." Both premises are now false: the known_failures stub was removed and replaced by subset_install_materializes_a_linked_targets_dependencies, and line 276 in this same file now states the divergence is "Decided rather than pending." This note should be updated (or removed) in this PR to avoid misleading future readers into looking for a stub that no longer exists.

📝 Proposed fix
-- Pacquet's subset closure deep-installs importer-level link targets where upstream keeps them shallow (only `--filter <project>...` widens the selection upstream); the divergence is pinned by the `known_failures` stub on the `multipleImporters.ts:540` tail and needs a cross-stack decision.
+- Pacquet's subset closure deep-installs importer-level link targets where upstream keeps them shallow (only `--filter <project>...` widens the selection upstream); this divergence is decided as intentional v12 behavior, pinned by `subset_install_materializes_a_linked_targets_dependencies` (see the `multipleImporters.ts:540` entry above and the `link-target-dependencies-are-installed` changeset).
🤖 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/plans/TEST_PORTING.md` around lines 301 - 305, Update or remove the
stale Rust port note in the “Rust port notes” section: replace the claim that
the link-target divergence is pinned by the removed known_failures stub and
requires a cross-stack decision with the current decision recorded near line
276, referencing subset_install_materializes_a_linked_targets_dependencies only
if needed.
🤖 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/link-target-dependencies-are-installed.md:
- Around line 1-9: Synchronize filtered-install behavior across both CLI
implementations: update the TypeScript CLI’s link/workspace target resolution so
selecting a project also installs each linked target’s dependency closure,
matching the documented pnpm v12 behavior. Locate the TypeScript install/filter
traversal and ensure the existing shallow default is removed or, if parity
cannot be implemented, revise the changeset to explicitly document the
intentional divergence.
- Line 2: Update the pacquet release designation in
link-target-dependencies-are-installed.md from minor to major to match the
declared breaking Rust CLI behavior change.

In `@justfile`:
- Around line 76-84: Update both known-failures recipes to preserve and check
cargo test’s exit status before processing output, returning that status when
nonzero. Continue treating only rg’s no-match status as success, and replace the
Windows pipeline’s `|| true` with a shell-native conditional; keep the existing
filters and platform-specific stderr redirection.

---

Outside diff comments:
In `@pnpm/plans/TEST_PORTING.md`:
- Around line 301-305: Update or remove the stale Rust port note in the “Rust
port notes” section: replace the claim that the link-target divergence is pinned
by the removed known_failures stub and requires a cross-stack decision with the
current decision recorded near line 276, referencing
subset_install_materializes_a_linked_targets_dependencies only if needed.
🪄 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: 2a95d551-02dc-4825-a50b-2d422e861899

📥 Commits

Reviewing files that changed from the base of the PR and between b4032e8 and 9dfd0e0.

📒 Files selected for processing (4)
  • .changeset/link-target-dependencies-are-installed.md
  • justfile
  • pnpm/crates/cli/tests/multiple_importers.rs
  • pnpm/plans/TEST_PORTING.md

Comment thread justfile Resolved
@codecov-commenter

codecov-commenter commented Jul 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.21%. Comparing base (68adca9) to head (e9d8fb5).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13355      +/-   ##
==========================================
+ Coverage   87.06%   87.21%   +0.15%     
==========================================
  Files         535      536       +1     
  Lines       91916    92034     +118     
==========================================
+ Hits        80023    80265     +242     
+ Misses      11893    11769     -124     

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

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

@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Same-run regression check

HEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval.

Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.

Scenario Engine main median HEAD median Change Tolerance Result
isolated-fresh-restore-cold-cache-cold-store pacquet 2395.25 ms 2484.70 ms 3.7% 119.76 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1495.39 ms 1528.36 ms 2.2% 74.77 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 327.86 ms 321.08 ms -2.1% 16.39 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr 384.07 ms 373.22 ms -2.8% 19.20 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet 10.91 ms 12.60 ms 15.5% 2.00 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr 10.80 ms 10.98 ms 1.6% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 13.02 ms 14.53 ms 11.6% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 10.57 ms 11.02 ms 4.2% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2532.66 ms 2488.33 ms -1.8% 126.63 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr 1824.87 ms 1587.47 ms -13.0% 91.24 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 623.02 ms 627.62 ms 0.7% 31.15 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 360.23 ms 334.56 ms -7.1% 18.01 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet 1702.66 ms 1726.53 ms 1.4% 85.13 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 380.40 ms 390.60 ms 2.7% 19.02 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 359.96 ms 376.37 ms 4.6% 18.00 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 110.68 ms 104.36 ms -5.7% 5.53 ms Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet 309.70 ms 260.42 ms -15.9% 15.49 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 149.32 ms 140.66 ms -5.8% 7.47 ms Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet 114.37 ms 109.15 ms -4.6% 5.72 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4603.95 ms 4654.39 ms 1.1% 230.20 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3640.91 ms 3681.34 ms 1.1% 182.05 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 147.94 ms 180.72 ms 22.2% 7.40 ms Inconclusive (overlapping samples)
gvs-fresh-restore-hot-cache-hot-store pnpr 154.81 ms 164.45 ms 6.2% 7.74 ms Inconclusive (overlapping samples)
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet 1278.26 ms 1207.69 ms -5.5% 63.91 ms Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet 75.39 ms 93.29 ms 23.7% 3.77 ms Inconclusive (overlapping samples)

Same-run syscall check

Each install runs 2 more times per revision, untimed, under strace --follow-forks --summary-only. A file syscall regresses when HEAD's fewest calls exceed main's most by more than 2% of main or 50 calls, whichever is larger. mkdir and mkdirat count only the calls that created a directory, since concurrent installs fail a varying number with EEXIST. A syscall whose identical runs differ by more than that tolerance is reported unstable and not gated, unless HEAD's fewest calls also exceed main's most by more than the tolerance plus that difference. Each scenario lists its largest change relative to its tolerance and every row that is not within tolerance.

Scenario Engine Syscall main calls (max) HEAD calls (min) Change Tolerance Identical-run spread Result
isolated-fresh-restore-cold-cache-cold-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr readlink 15070 15083 +0.1% 301 39 Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet statx 51439 51492 +0.1% 1028 90 Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr readlink 15120 15136 +0.1% 302 12 Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet readlink 16016 15673 -2.1% 320 476 Unstable (identical runs differ by 476, not gated)
isolated-fresh-install-cold-cache-hot-store pnpr readlink 15065 15080 +0.1% 301 41 Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet fstat 1377 1386 +0.7% 50 1 Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet symlink 3895 3896 +0.0% 77 3 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr fstat 183 184 +0.5% 50 4 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet openat 5078 5084 +0.1% 101 4 Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet access 10 10 +0.0% 50 0 Within tolerance

Integrated-Benchmark Report (Linux)

Commit: 7847e3955fad

Compared against main at: 6a2c09079a92

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked, injected, and Cargo workspace scenarios compare current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs.

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.506 ± 0.163 2.295 2.861 1.65 ± 0.15
pacquet@main 2.443 ± 0.137 2.306 2.716 1.61 ± 0.14
pnpr@HEAD 1.526 ± 0.116 1.334 1.730 1.00 ± 0.10
pnpr@main 1.521 ± 0.096 1.414 1.715 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.50644826828,
      "stddev": 0.16325545179838793,
      "median": 2.4847007770799996,
      "user": 2.61727462,
      "system": 1.8068852400000002,
      "min": 2.29471898458,
      "max": 2.86146386658
    },
    {
      "command": "pacquet@main",
      "mean": 2.44339399228,
      "stddev": 0.13673183702493738,
      "median": 2.39525160458,
      "user": 2.37790252,
      "system": 1.6110889400000001,
      "min": 2.30551759958,
      "max": 2.71598051758
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5261979371799999,
      "stddev": 0.11599765469434895,
      "median": 1.52835577958,
      "user": 2.16120192,
      "system": 1.5946319400000002,
      "min": 1.33386592958,
      "max": 1.72965330458
    },
    {
      "command": "pnpr@main",
      "mean": 1.52143349158,
      "stddev": 0.0957762997766365,
      "median": 1.49538673758,
      "user": 2.4182667199999996,
      "system": 1.81683904,
      "min": 1.41373785658,
      "max": 1.71485344758
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 320.6 ± 10.7 303.0 334.5 1.00
pacquet@main 334.1 ± 16.3 314.4 364.5 1.04 ± 0.06
pnpr@HEAD 378.3 ± 20.6 351.0 416.3 1.18 ± 0.08
pnpr@main 379.9 ± 33.4 325.5 426.9 1.19 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.3205661476,
      "stddev": 0.010749700158150185,
      "median": 0.3210840829,
      "user": 0.419164,
      "system": 0.7283008599999999,
      "min": 0.3029503214,
      "max": 0.33452845540000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.33405996410000005,
      "stddev": 0.01629722677119473,
      "median": 0.32785607390000004,
      "user": 0.4432359999999999,
      "system": 0.75964596,
      "min": 0.3143517584,
      "max": 0.3645447814
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.3782545107,
      "stddev": 0.020637248925108747,
      "median": 0.3732231889,
      "user": 0.45607229999999993,
      "system": 0.81644486,
      "min": 0.3509878574,
      "max": 0.4162861794
    },
    {
      "command": "pnpr@main",
      "mean": 0.3799445346,
      "stddev": 0.033365007796684616,
      "median": 0.38407383790000005,
      "user": 0.45556159999999996,
      "system": 0.7989663599999999,
      "min": 0.3254864984,
      "max": 0.4269215434
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 12.8 ± 1.8 9.4 19.6 1.16 ± 0.19
pacquet@main 11.0 ± 0.9 9.3 15.0 1.00
pnpr@HEAD 11.3 ± 1.1 9.6 15.3 1.02 ± 0.13
pnpr@main 11.1 ± 1.1 9.0 14.4 1.00 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.012792197588712877,
      "stddev": 0.0018474490498728046,
      "median": 0.01259547846,
      "user": 0.008045598019801982,
      "system": 0.005812926336633661,
      "min": 0.00944895996,
      "max": 0.01961952996
    },
    {
      "command": "pacquet@main",
      "mean": 0.011037299677557256,
      "stddev": 0.0009290358720928295,
      "median": 0.01090969696,
      "user": 0.0071524992366412184,
      "system": 0.0048625981679389346,
      "min": 0.009349020960000001,
      "max": 0.01503184596
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.011307916967843142,
      "stddev": 0.0010917439486078958,
      "median": 0.010980110960000001,
      "user": 0.006946472549019606,
      "system": 0.005407716705882352,
      "min": 0.00958994996,
      "max": 0.01525849496
    },
    {
      "command": "pnpr@main",
      "mean": 0.011070418896000009,
      "stddev": 0.0010887143372844243,
      "median": 0.01080427146,
      "user": 0.007180403999999997,
      "system": 0.004938195199999997,
      "min": 0.00901654996,
      "max": 0.01442662496
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 14.9 ± 2.4 11.4 21.9 1.38 ± 0.27
pacquet@main 13.2 ± 1.6 10.4 19.1 1.22 ± 0.19
pnpr@HEAD 11.2 ± 1.2 9.2 17.0 1.04 ± 0.16
pnpr@main 10.8 ± 1.1 9.2 17.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.014913583464705886,
      "stddev": 0.00243441945808582,
      "median": 0.014525266700000001,
      "user": 0.009302219999999993,
      "system": 0.006910511176470591,
      "min": 0.011435254200000002,
      "max": 0.0218818372
    },
    {
      "command": "pacquet@main",
      "mean": 0.013167541412290495,
      "stddev": 0.0015530534804159878,
      "median": 0.013018807200000001,
      "user": 0.008011745139664801,
      "system": 0.0062982537430167585,
      "min": 0.0103854662,
      "max": 0.0191177832
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.01124328672534563,
      "stddev": 0.00124003922744983,
      "median": 0.011016493200000001,
      "user": 0.006912104792626729,
      "system": 0.005341171797235027,
      "min": 0.009214903200000001,
      "max": 0.0169573432
    },
    {
      "command": "pnpr@main",
      "mean": 0.010819430462443446,
      "stddev": 0.0011297852093359135,
      "median": 0.010569539200000002,
      "user": 0.006919147601809953,
      "system": 0.004851343257918554,
      "min": 0.0092433662,
      "max": 0.0173163622
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.516 ± 0.078 2.460 2.706 1.59 ± 0.09
pacquet@main 2.605 ± 0.167 2.470 3.026 1.64 ± 0.13
pnpr@HEAD 1.587 ± 0.079 1.501 1.712 1.00
pnpr@main 1.859 ± 0.160 1.634 2.235 1.17 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.5164446439,
      "stddev": 0.07821071199599602,
      "median": 2.4883264273999997,
      "user": 2.87941888,
      "system": 1.8184545399999998,
      "min": 2.4601158829,
      "max": 2.7061911059
    },
    {
      "command": "pacquet@main",
      "mean": 2.6054022595999995,
      "stddev": 0.16721427831331143,
      "median": 2.5326576609,
      "user": 3.2467715799999994,
      "system": 2.01909664,
      "min": 2.4698843059,
      "max": 3.0260030139
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5873686126000002,
      "stddev": 0.07944505564851559,
      "median": 1.5874666669,
      "user": 2.40786128,
      "system": 1.7671859399999998,
      "min": 1.5009541119,
      "max": 1.7116375679000002
    },
    {
      "command": "pnpr@main",
      "mean": 1.8591848445,
      "stddev": 0.16036145939372076,
      "median": 1.8248717829000003,
      "user": 3.0175619799999995,
      "system": 2.3061748399999997,
      "min": 1.6343784469000002,
      "max": 2.2352828589
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 619.8 ± 39.9 551.0 685.4 1.87 ± 0.14
pacquet@main 630.7 ± 38.5 571.5 691.8 1.90 ± 0.14
pnpr@HEAD 331.8 ± 12.5 312.5 355.4 1.00
pnpr@main 360.5 ± 17.5 332.8 392.5 1.09 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6198451175200003,
      "stddev": 0.03991191534554345,
      "median": 0.6276216306200001,
      "user": 0.9193904599999998,
      "system": 1.24533162,
      "min": 0.5509927806200001,
      "max": 0.6854473496200001
    },
    {
      "command": "pacquet@main",
      "mean": 0.63074179172,
      "stddev": 0.038476957817245874,
      "median": 0.6230243761200001,
      "user": 0.8833958599999999,
      "system": 1.35332872,
      "min": 0.5714937276200001,
      "max": 0.6918023006200001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.33181646022,
      "stddev": 0.01253386164177344,
      "median": 0.33455966662000003,
      "user": 0.3400218600000001,
      "system": 0.6505391200000001,
      "min": 0.31245859362,
      "max": 0.35541195862
    },
    {
      "command": "pnpr@main",
      "mean": 0.36052495332,
      "stddev": 0.0174959475435123,
      "median": 0.36022838562000004,
      "user": 0.34666575999999993,
      "system": 0.71314482,
      "min": 0.33276748962,
      "max": 0.39251857662
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.765 ± 0.133 1.672 2.125 4.57 ± 0.47
pacquet@main 1.729 ± 0.150 1.617 2.145 4.48 ± 0.50
pnpr@HEAD 0.397 ± 0.020 0.365 0.438 1.03 ± 0.09
pnpr@main 0.386 ± 0.027 0.354 0.452 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.7645141954999999,
      "stddev": 0.13279633342502367,
      "median": 1.7265268293000002,
      "user": 1.4314892799999999,
      "system": 1.3562955799999998,
      "min": 1.6723327853,
      "max": 2.1253373993
    },
    {
      "command": "pacquet@main",
      "mean": 1.728826965,
      "stddev": 0.1500987784459753,
      "median": 1.7026604863,
      "user": 1.3759508799999998,
      "system": 1.2352931799999998,
      "min": 1.6166526483,
      "max": 2.1446917433
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.39677685139999996,
      "stddev": 0.02020725869416725,
      "median": 0.3905997868,
      "user": 0.40527667999999994,
      "system": 0.77388328,
      "min": 0.3653738203,
      "max": 0.4383468943
    },
    {
      "command": "pnpr@main",
      "mean": 0.3859517448,
      "stddev": 0.026967874710636767,
      "median": 0.3803966903,
      "user": 0.40337077999999993,
      "system": 0.74527268,
      "min": 0.3544595873,
      "max": 0.4521456743
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 386.0 ± 41.2 331.5 467.8 3.63 ± 0.42
pacquet@main 358.3 ± 13.6 335.6 378.6 3.37 ± 0.20
pnpr@HEAD 106.3 ± 4.9 97.3 114.6 1.00
pnpr@main 111.4 ± 8.1 96.2 130.6 1.05 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.38599524462000007,
      "stddev": 0.04120900033251895,
      "median": 0.37637162592000006,
      "user": 0.39310977999999996,
      "system": 0.49173368,
      "min": 0.33153884092,
      "max": 0.46783722492000007
    },
    {
      "command": "pacquet@main",
      "mean": 0.35834631602000006,
      "stddev": 0.013578011144591794,
      "median": 0.35995961492000006,
      "user": 0.36557897999999994,
      "system": 0.42691647999999993,
      "min": 0.33558455392000003,
      "max": 0.37860974092000005
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.1062809341051852,
      "stddev": 0.004940562657399897,
      "median": 0.10435505092000001,
      "user": 0.05021612444444445,
      "system": 0.033046854074074074,
      "min": 0.09731439092000001,
      "max": 0.11464316892000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.11136876357384616,
      "stddev": 0.008120085912411623,
      "median": 0.11067875592000001,
      "user": 0.05441594923076924,
      "system": 0.03692912615384615,
      "min": 0.09618705392,
      "max": 0.13059156492000001
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 267.5 ± 16.5 248.2 293.5 1.00
pacquet@main 309.9 ± 40.4 252.3 393.1 1.16 ± 0.17
pnpm@HEAD 6197.3 ± 847.7 5312.6 7681.4 23.17 ± 3.48
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.2674677070866667,
      "stddev": 0.016513932279320447,
      "median": 0.26041790642,
      "user": 0.3028704222222222,
      "system": 0.06505344888888889,
      "min": 0.24817511342,
      "max": 0.29345206142
    },
    {
      "command": "pacquet@main",
      "mean": 0.3098612796422222,
      "stddev": 0.040372449624805885,
      "median": 0.30970410942,
      "user": 0.35398831111111106,
      "system": 0.07351067111111112,
      "min": 0.25233479642,
      "max": 0.39306904542000004
    },
    {
      "command": "pnpm@HEAD",
      "mean": 6.197279448753333,
      "stddev": 0.8477398393001684,
      "median": 5.95962619042,
      "user": 9.635721422222225,
      "system": 0.5172766711111111,
      "min": 5.31258253642,
      "max": 7.6814022384200005
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 140.3 ± 15.9 113.4 171.8 1.00
pacquet@main 151.4 ± 12.4 127.4 171.4 1.08 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.14027460069000003,
      "stddev": 0.015947801483466174,
      "median": 0.14065510104,
      "user": 0.13342890000000002,
      "system": 0.08664432,
      "min": 0.11342465354000002,
      "max": 0.17182408154
    },
    {
      "command": "pacquet@main",
      "mean": 0.15141589589294116,
      "stddev": 0.012425079321099989,
      "median": 0.14932472554,
      "user": 0.14855250588235291,
      "system": 0.0912585494117647,
      "min": 0.12736104954000002,
      "max": 0.17141292154
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 110.5 ± 6.1 97.4 123.2 1.00
pacquet@main 116.3 ± 11.4 101.7 142.0 1.05 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.11050290863586211,
      "stddev": 0.006092473512342708,
      "median": 0.10915379036,
      "user": 0.04161321517241378,
      "system": 0.08029213586206894,
      "min": 0.09735742936000001,
      "max": 0.12315760336
    },
    {
      "command": "pacquet@main",
      "mean": 0.11628313782153847,
      "stddev": 0.011429303116725506,
      "median": 0.11437461536000001,
      "user": 0.04670305999999999,
      "system": 0.0817186676923077,
      "min": 0.10168358336000001,
      "max": 0.14200480136000002
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.714 ± 0.162 4.574 5.108 1.28 ± 0.07
pacquet@main 4.638 ± 0.124 4.479 4.810 1.26 ± 0.07
pnpr@HEAD 3.693 ± 0.104 3.564 3.921 1.00 ± 0.05
pnpr@main 3.679 ± 0.167 3.513 3.961 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.71419339712,
      "stddev": 0.16183104062984371,
      "median": 4.654392982620001,
      "user": 2.91245918,
      "system": 1.96911138,
      "min": 4.57427069912,
      "max": 5.10804930112
    },
    {
      "command": "pacquet@main",
      "mean": 4.63780058902,
      "stddev": 0.1235930012635099,
      "median": 4.60395496462,
      "user": 2.63078148,
      "system": 1.8108040799999998,
      "min": 4.47909710412,
      "max": 4.81012341912
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.69291237682,
      "stddev": 0.10413617588834836,
      "median": 3.68134317062,
      "user": 2.8423529800000003,
      "system": 1.9584179800000001,
      "min": 3.56371570212,
      "max": 3.9214436451199997
    },
    {
      "command": "pnpr@main",
      "mean": 3.67948660022,
      "stddev": 0.16654787453694353,
      "median": 3.64091466462,
      "user": 2.5766814800000004,
      "system": 1.8387864800000002,
      "min": 3.5129753241199997,
      "max": 3.96078613712
    }
  ]
}

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 178.3 ± 29.0 142.7 237.2 1.19 ± 0.21
pacquet@main 149.6 ± 8.5 136.6 171.0 1.00
pnpr@HEAD 164.9 ± 7.0 156.2 181.4 1.10 ± 0.08
pnpr@main 157.0 ± 8.2 146.4 170.1 1.05 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.17834706264000003,
      "stddev": 0.029030092575292817,
      "median": 0.18072414764000003,
      "user": 0.24856288545454544,
      "system": 0.23719254727272726,
      "min": 0.14269018264000002,
      "max": 0.23721236464000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.14961988447333333,
      "stddev": 0.008546921865393697,
      "median": 0.14793827464000003,
      "user": 0.21247061777777773,
      "system": 0.18973432,
      "min": 0.13664103264000002,
      "max": 0.17102138364000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.16490917064000005,
      "stddev": 0.00697627382529303,
      "median": 0.16444898214000003,
      "user": 0.2247344114285714,
      "system": 0.1922641057142857,
      "min": 0.15617111564000002,
      "max": 0.18144334964000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.15702120726500002,
      "stddev": 0.0081575400323739,
      "median": 0.15481191264000002,
      "user": 0.20948140250000002,
      "system": 0.18362244500000002,
      "min": 0.14637046764000003,
      "max": 0.17014074864
    }
  ]
}

Scenario: Store only: unlocked direct deps, cold cache + hot store

Store-only install (enableModulesDir: false, per-file store index, trusted lockfile) against a lockfile missing the direct dependencies that have peers, with the metadata cache wiped per iteration: the install resolves those from the registry, reuses their subtrees from the lockfile and checks the store, linking nothing. Direct installs only.

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.219 ± 0.026 1.191 1.280 1.00
pacquet@main 1.290 ± 0.042 1.251 1.366 1.06 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.2188615649399999,
      "stddev": 0.02618101115008589,
      "median": 1.20769456434,
      "user": 0.8717402599999999,
      "system": 0.4120205799999999,
      "min": 1.19096932784,
      "max": 1.28049838084
    },
    {
      "command": "pacquet@main",
      "mean": 1.2903442085399999,
      "stddev": 0.041524858627715544,
      "median": 1.27826047734,
      "user": 1.0292793599999999,
      "system": 0.4347838799999999,
      "min": 1.2513555028399999,
      "max": 1.3663337898399999
    }
  ]
}

Scenario: Cargo: repeat install, hot cache + hot store

Frozen repeat install of a Cargo workspace (cargo.enabled: true) whose crates are already materialized in <storeDir>/v11/crates/ and linked into .pnpm/crates/crates-io. Direct installs only.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 98.3 ± 24.3 61.6 158.5 1.22 ± 0.39
pacquet@main 80.3 ± 16.5 60.8 136.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.09826511083230768,
      "stddev": 0.02427944140573948,
      "median": 0.09329271164000001,
      "user": 0.041739692307692304,
      "system": 0.06133607384615384,
      "min": 0.06157285414000001,
      "max": 0.15847414914
    },
    {
      "command": "pacquet@main",
      "mean": 0.08025515424526314,
      "stddev": 0.016465128019557154,
      "median": 0.07539454964,
      "user": 0.04214668421052631,
      "system": 0.04857594631578948,
      "min": 0.060781953140000004,
      "max": 0.13682868714
    }
  ]
}

@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13355
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,767.01 ms
(+1.12%)Baseline: 2,736.27 ms
3,283.52 ms
(84.27%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,910.58 ms
(+1.07%)Baseline: 1,890.42 ms
2,268.50 ms
(84.22%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
571.30 ms
(-0.52%)Baseline: 574.30 ms
689.16 ms
(82.90%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
339.55 ms
(-1.71%)Baseline: 345.44 ms
414.53 ms
(81.91%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,382.84 ms
(+0.81%)Baseline: 2,363.68 ms
2,836.41 ms
(84.01%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,468.32 ms
(+0.87%)Baseline: 4,429.97 ms
5,315.96 ms
(84.05%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
240.86 ms
(-2.30%)Baseline: 246.52 ms
295.82 ms
(81.42%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13355
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,430.89 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
300.72 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
297.36 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
81.77 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,342.13 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,451.46 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
257.90 ms
🐰 View full continuous benchmarking report in Bencher

zkochan added a commit that referenced this pull request Jul 25, 2026
The recipe listed the stubs with `cargo test -- --list | rg` and swallowed
the pipeline's status with `|| true` so that an empty list — now the normal
state — did not read as a recipe failure. That also swallowed a workspace
that fails to compile: cargo's diagnostics were already discarded by
`2>/dev/null`, so the recipe printed nothing and exited 0.

The build now runs on its own line, un-silenced, so a compile failure aborts
the recipe with cargo's own output. Only the listing line tolerates a
nonzero status, via just's `-` prefix instead of a shell `|| true`, which
keeps the tolerance out of the shell and behaves the same on both platforms.

Reported by Greptile and Qodo on
#13355.
Copilot AI review requested due to automatic review settings July 25, 2026 15:20

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 25, 2026

Copy link
Copy Markdown
Member Author

Triage of the four findings:

4. known-failures hides failures — valid, fixed in e9d8fb5. The build now runs on its own un-silenced line, so a workspace that fails to compile aborts the recipe with cargo's diagnostics (previously 2>/dev/null discarded them and || true discarded the status). Only the listing line tolerates a nonzero status, and it uses just's - line prefix rather than a shell || true, so it doesn't depend on true existing in the Windows shell.

1. Historical v11/v12 commentary — declining. The rule bans narrating this code's past shape ("previously", "the original X"). These comments describe a live parallel implementation: pnpm 11 is the shipping TypeScript CLI in pnpm11/, and the doc comment names the upstream test and the exact assertion this test inverts. That cross-reference is the porting convention (see pnpm/plans/TEST_PORTING.md) and is the reason a reader can tell the inverted assertion is deliberate rather than a mistake.

2. Subset install diverges from pnpm — declining, this is the PR. pnpm 12 changes the behavior on purpose; the parity rule keeps a shipping behavior identical across the stacks, it doesn't freeze 12 to 11's semantics. Back-porting the wider closure into 11.x would be a breaking change to a stable release. The decision is recorded in the changeset, in TEST_PORTING.md, and on the test itself.

3. pnpm missing / bump type — declining both halves. CLAUDE.md forbids naming pnpm in a Rust-only changeset (there it means the TypeScript CLI package). And pacquet releases on the 12.0.0-alpha.N lane, so major would cut 13.0.0 for a change that ships inside the 12 alphas; "Breaking change." marks the migration from 11 in the release notes, not a semver step from the previous alpha.


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

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

Copy link
Copy Markdown

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

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@zkochan

zkochan commented Sep 25, 2026

Copy link
Copy Markdown
Member Author

Superseded by #13634 (commit e33e400), which kept filtered workspace links shallow in pacquet for parity with pnpm 11.

zkochan and others added 3 commits November 19, 2026 19:03
A subset install materializes the dependencies of a workspace project it
links in, so the selected project runs without a second install. Upstream
asserts the opposite tail — v11 keeps link targets shallow and reserves
`--filter <project>...` for widening, which leaves a selected project
linked to a target whose own dependencies are missing.

Keeping pacquet's behavior is the decision for v12, so the divergence
stops being a pending question: the known-failure stub becomes a real
test asserting it, and the porting plan records the upstream tail as
deliberately not ported rather than blocked.

This clears the last allow_known_failure! stub in the repo. `just
known-failures` piped to `rg`, which exits 1 on no matches, so an empty
list reported as a failure; it now exits 0.

Refs #13167

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The recipe listed the stubs with `cargo test -- --list | rg` and swallowed
the pipeline's status with `|| true` so that an empty list — now the normal
state — did not read as a recipe failure. That also swallowed a workspace
that fails to compile: cargo's diagnostics were already discarded by
`2>/dev/null`, so the recipe printed nothing and exited 0.

The build now runs on its own line, un-silenced, so a compile failure aborts
the recipe with cargo's own output. Only the listing line tolerates a
nonzero status, via just's `-` prefix instead of a shell `|| true`, which
keeps the tolerance out of the shell and behaves the same on both platforms.

Reported by Greptile and Qodo on
#13355.
The CLI end-to-end tests build as one target, so a stub lists as
`<module>::known_failures::<name>` and the `^known_failures::` anchor
never matched it. Match the segment at any depth instead.

TEST_PORTING.md still pointed at a hoisted-layout stub that a real test
replaced; point it at that test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zkochan
zkochan force-pushed the document-link-closure-divergence branch from e9d8fb5 to 7847e39 Compare November 19, 2026 19:34
@zkochan zkochan changed the title test(cli): pin the v12 link-target closure as intended behavior chore: make just known-failures work with an empty list and the CLI suite Nov 19, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 7847e39

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@zkochan

zkochan commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

Re Qodo's finding 3 ("Known-failures builds workspace"): no extra work there. cargo test --workspace known_failures -- --list must compile every workspace test binary before it can list anything, so the --no-run line builds exactly the same set, and the listing line that follows rebuilds nothing. What the separate line adds is cargo's diagnostics: the listing line runs with stderr discarded, so a compile failure there would have printed nothing.

Findings 1 and 2 were on the link-target test and changeset, which were dropped on rebase after #13634 kept filtered workspace links shallow.


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

@zkochan
zkochan merged commit 3d7f40e into main Nov 19, 2026
62 checks passed
@zkochan
zkochan deleted the document-link-closure-divergence branch November 19, 2026 22:21
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.

3 participants