Skip to content

fix(config): derive public hoisting from shamefullyHoist - #13447

Merged
zkochan merged 2 commits into
mainfrom
fix-13444
Jul 27, 2026
Merged

zkochan merged 2 commits into
mainfrom
fix-13444

Conversation

@zkochan

@zkochan zkochan commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #13444.

The Rust CLI parsed shamefullyHoist but did not derive the corresponding
public hoist pattern, so shamefullyHoist: true could leave dependencies
missing from the root node_modules.

Apply the derivation after all configuration sources are merged:

  • true sets publicHoistPattern to ["*"]
  • false disables public hoisting
  • an unset value preserves an explicitly configured public hoist pattern

The TypeScript CLI already applies this derivation, so no TypeScript change is
needed. The Rust config and CLI regression tests now cover the behavior, and a
patch changeset is included for pacquet.

Validation:

  • just ready
  • reproduced the reported Slidev installation with the built Rust CLI and
    verified the previously missing root links are created
  • repository pre-push checks

Squash Commit Body

The Rust CLI accepted shamefullyHoist without translating it into the public
hoist pattern used by installation. This left packages absent from the root
node_modules even though shameful hoisting was enabled.

Derive publicHoistPattern after all configuration sources are merged so an
explicit shamefullyHoist value has the same precedence and behavior as in the
TypeScript CLI. Cover both enabled and disabled values in config tests and make
the CLI regression tests rely on shamefullyHoist alone.

Fixes pnpm/pnpm#13444.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

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


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

Summary by CodeRabbit

  • Bug Fixes

    • Fixed shamefullyHoist: true so public dependency links are created at the project root as expected.
    • Ensured shamefullyHoist: false reliably disables public hoisting, even when publicHoistPattern is set.
    • Improved behavior when shamefullyHoist is merged with other hoisting-related settings.
  • Tests

    • Added coverage for how shamefullyHoist affects the derived publicHoistPattern when set to true, false, or left unset.
    • Updated hoisting-related test setups and scenarios to validate the final merged configuration.

Copilot AI review requested due to automatic review settings July 27, 2026 21:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1c3bc457-ba21-40ae-810e-bb7d185927c1

📥 Commits

Reviewing files that changed from the base of the PR and between c6edb43 and e9ef481.

📒 Files selected for processing (1)
  • pnpm/crates/config/src/tests.rs

📝 Walkthrough

Walkthrough

Pacquet now derives public_hoist_pattern from the merged shamefullyHoist setting, causing enabled configurations to create public root dependency links. Configuration tests, CLI hoisting tests, deduplication coverage, and a patch Changeset entry were updated.

Changes

Shamefully hoisted root links

Layer / File(s) Summary
Configuration derivation and validation
pnpm/crates/config/src/lib.rs, pnpm/crates/config/src/tests.rs
Explicit shamefullyHoist values now derive public_hoist_pattern, with tests covering enabled, disabled, and unset configurations.
CLI coverage and release metadata
pnpm/crates/cli/tests/*.rs, .changeset/shamefully-hoist-root-links.md
CLI scenarios now configure only shamefullyHoist: true, and a patch release entry documents the root-link fix.

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

Assessment against linked issues

Objective Addressed Explanation
Make Rust pnpm create the same root dependency links as TypeScript pnpm when shamefullyHoist: true is configured [#13444] ✅

Suggested labels: product: pacquet

Suggested reviewers: copilot, aqeelat

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

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

❤️ Share

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

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix Rust config: derive public hoisting from shamefullyHoist

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Derive publicHoistPattern from shamefullyHoist after all config sources merge.
• Align Rust CLI hoisting behavior with TypeScript CLI precedence and semantics.
• Add config + CLI regression tests and a patch changeset for pacquet.
Diagram

graph TD
  A["Config sources"] --> B["Merged Config"] --> C["Derive public hoist"] --> D["Hoist pass"] --> E["Root node_modules links"]
  T["Rust tests"] --> C
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Derive per-source during parsing (instead of post-merge)
  • ➕ Keeps Config always internally normalized as each source loads
  • ➕ May simplify downstream consumers that assume invariants early
  • ➖ Harder to get correct precedence across multiple sources
  • ➖ Risk of order-dependent behavior and subtle overrides
2. Bridge `shamefullyHoist` inside the hoist/install pipeline
  • ➕ Avoids mutating config representation
  • ➕ Keeps legacy handling near the behavior it affects
  • ➖ Spreads legacy compatibility into execution logic
  • ➖ Other code paths reading config may still see inconsistent state
3. Deprecate `shamefullyHoist` and require `publicHoistPattern`
  • ➕ Eliminates legacy alias complexity long-term
  • ➕ Reduces ambiguous config combinations
  • ➖ Breaking change and migration burden for users
  • ➖ Does not solve current regression without a transition period

Recommendation: Keep the PR’s approach: applying the derivation after all config sources are merged is the most robust way to match TypeScript CLI semantics and ensure explicit shamefullyHoist reliably overrides any publicHoistPattern, regardless of which source provided either setting.

Files changed (5) +53 / -14

Bug fix (1) +14 / -0
lib.rsDerive publicHoistPattern from explicit shamefullyHoist post-merge +14/-0

Derive publicHoistPattern from explicit shamefullyHoist post-merge

• Adds a post-merge derivation step that translates an explicit 'shamefullyHoist' value into the effective 'publicHoistPattern' ('true' => '['*']', 'false' => disable). Runs after all sources are merged so precedence is consistent regardless of configuration source.

pnpm/crates/config/src/lib.rs

Tests (3) +34 / -14
dedupe_direct_deps.rsUpdate dedupe test to rely on shamefullyHoist derivation +4/-9

Update dedupe test to rely on shamefullyHoist derivation

• Simplifies the test setup by removing explicit 'publicHoistPattern: ['*']' configuration and using only 'shamefullyHoist: true'. Updates comments to reflect that the legacy flag is now expected to drive public hoisting behavior.

pnpm/crates/cli/tests/dedupe_direct_deps.rs

hoist.rsAdjust hoist regression test to validate post-merge derivation +2/-5

Adjust hoist regression test to validate post-merge derivation

• Updates documentation and test fixture configuration so 'shamefullyHoist: true' alone triggers public hoisting. This ensures the CLI regression test asserts the new post-merge derivation behavior rather than requiring redundant explicit patterns.

pnpm/crates/cli/tests/hoist.rs

tests.rsAdd config regression tests for shamefullyHoist derivation +28/-0

Add config regression tests for shamefullyHoist derivation

• Adds tests verifying that 'shamefullyHoist: true' forces 'public_hoist_pattern' to '['*']' even if explicitly set otherwise, and that 'shamefullyHoist: false' disables public hoisting. These cover precedence and correct interpretation of the legacy flag.

pnpm/crates/config/src/tests.rs

Documentation (1) +5 / -0
shamefully-hoist-root-links.mdAdd patch changeset for shamefullyHoist root links fix +5/-0

Add patch changeset for shamefullyHoist root links fix

• Introduces a changeset noting that 'shamefullyHoist: true' now correctly creates public root dependency links. This acts as the user-facing release note for the 'pacquet' patch.

.changeset/shamefully-hoist-root-links.md

@greptile-apps

greptile-apps Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (2): Last reviewed commit: "test(config): cover unset shameful hoist..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
pnpm/crates/config/src/tests.rs (1)

2635-2661: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Cover the unset-preservation branch.

These tests cover true and false, but not the compatibility case where shamefullyHoist is unset and an explicit publicHoistPattern must be preserved. Add that regression case so the None => {} branch cannot regress.

As per path instructions, REVIEW_GUIDE.md requires regression tests to prove the merged-configuration derivation contract, including unset preservation.

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

In `@pnpm/crates/config/src/tests.rs` around lines 2635 - 2661, Add a regression
test alongside shamefully_hoist_derives_the_public_hoist_pattern and
shamefully_hoist_false_disables_public_hoisting that omits shamefullyHoist while
setting an explicit publicHoistPattern, then assert Config preserves that
pattern. This must exercise the unset/None branch of the shamefullyHoist-derived
configuration logic.

Source: Path instructions

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

Nitpick comments:
In `@pnpm/crates/config/src/tests.rs`:
- Around line 2635-2661: Add a regression test alongside
shamefully_hoist_derives_the_public_hoist_pattern and
shamefully_hoist_false_disables_public_hoisting that omits shamefullyHoist while
setting an explicit publicHoistPattern, then assert Config preserves that
pattern. This must exercise the unset/None branch of the shamefullyHoist-derived
configuration logic.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 67dda0df-da07-47dd-ae41-d313a45732e3

📥 Commits

Reviewing files that changed from the base of the PR and between c59e2a4 and c6edb43.

📒 Files selected for processing (5)
  • .changeset/shamefully-hoist-root-links.md
  • pnpm/crates/cli/tests/dedupe_direct_deps.rs
  • pnpm/crates/cli/tests/hoist.rs
  • pnpm/crates/config/src/lib.rs
  • pnpm/crates/config/src/tests.rs

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

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

Copy link
Copy Markdown

Code Review by Qodo

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

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Informational

1. pnpm missing changeset entry 📘 Rule violation § Compliance
Description
The new changeset only declares a bump for pacquet and omits pnpm, which violates the repository
requirement to explicitly include pnpm with a valid bump type. This can lead to incorrect release
notes/versioning for pnpm-related user-visible fixes.
Code

.changeset/shamefully-hoist-root-links.md[R1-3]

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

⭐ Low

Similar “add pnpm to pacquet-only changeset” suggestions were repeatedly rejected (e.g., #13406,
#13347); only rare acceptance (#13403).

PR-#13406
PR-#13347
PR-#13403

ⓘ Recommendations generated based on similar findings in past PRs

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

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/shamefully-hoist-root-links.md[1-3]

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

## Issue description
The changeset front-matter is missing a `pnpm` entry.

## Issue Context
Compliance requires every changeset to explicitly declare the `pnpm` package with a valid bump type (`patch`/`minor`/`major`). This PR adds a changeset but only lists `pacquet`.

## Fix Focus Areas
- .changeset/shamefully-hoist-root-links.md[1-3]

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


Grey Divider

Previous review results

Review updated until commit e9ef481 ⚖️ Balanced

Results up to commit c6edb43 ⚖️ Balanced


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


Informational
1. pnpm missing changeset entry 📘 Rule violation § Compliance
Description
The new changeset only declares a bump for pacquet and omits pnpm, which violates the repository
requirement to explicitly include pnpm with a valid bump type. This can lead to incorrect release
notes/versioning for pnpm-related user-visible fixes.
Code

.changeset/shamefully-hoist-root-links.md[R1-3]

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

⭐ Low

Similar “add pnpm to pacquet-only changeset” suggestions were repeatedly rejected (e.g., #13406,
#13347); only rare acceptance (#13403).

PR-#13406
PR-#13347
PR-#13403

ⓘ Recommendations generated based on similar findings in past PRs

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

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/shamefully-hoist-root-links.md[1-3]

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

## Issue description
The changeset front-matter is missing a `pnpm` entry.

## Issue Context
Compliance requires every changeset to explicitly declare the `pnpm` package with a valid bump type (`patch`/`minor`/`major`). This PR adds a changeset but only lists `pacquet`.

## Fix Focus Areas
- .changeset/shamefully-hoist-root-links.md[1-3]

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


Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

Copilot AI review requested due to automatic review settings July 27, 2026 21:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@zkochan

zkochan commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

Addressed CodeRabbit’s test-coverage suggestion in e9ef481 by adding a regression case that preserves an explicit publicHoistPattern when shamefullyHoist is unset. The focused config tests pass (3 passed).


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

@qodo-code-review

Copy link
Copy Markdown

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

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@github-actions

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     14.2±2.01ms    26.3 MB/sec    1.11     15.8±1.66ms    23.7 MB/sec
packument/parse                                  1.00     43.2±0.77µs  1533.9 MB/sec    1.04     44.8±3.56µs  1481.2 MB/sec
tarball/download_dependency                      1.00      2.5±0.16ms  1737.2 KB/sec    1.03      2.6±0.37ms  1690.4 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    183.7±3.76ms 87.1 KElem/sec    1.26   231.2±13.20ms 69.2 KElem/sec

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.65%. Comparing base (81411d3) to head (e9ef481).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13447   +/-   ##
=======================================
  Coverage   87.64%   87.65%           
=======================================
  Files         545      545           
  Lines       93978    94018   +40     
=======================================
+ Hits        82367    82410   +43     
+ Misses      11611    11608    -3     

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

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

@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: e9ef481bba18

Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD.

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

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.925 ± 0.250 2.519 3.248 1.58 ± 0.21
pacquet@main 3.619 ± 0.524 3.009 4.575 1.95 ± 0.35
pnpr@HEAD 1.852 ± 0.192 1.563 2.147 1.00
pnpr@main 1.909 ± 0.148 1.659 2.114 1.03 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.92540889492,
      "stddev": 0.25026266452110385,
      "median": 2.89871727442,
      "user": 2.8016135199999996,
      "system": 2.0944201799999993,
      "min": 2.51856010092,
      "max": 3.24843204592,
      "times": [
        2.86843436692,
        2.51856010092,
        3.15290535692,
        2.74053731592,
        3.21583526092,
        3.24843204592,
        3.12248376392,
        2.9290001819200002,
        2.7750134109199998,
        2.68288714492
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 3.6192979091199993,
      "stddev": 0.5240446563322899,
      "median": 3.5674644399199997,
      "user": 3.73261032,
      "system": 2.89396948,
      "min": 3.00906198292,
      "max": 4.57490814092,
      "times": [
        4.57490814092,
        4.20540363592,
        3.90353298492,
        3.6710199169199997,
        3.3050756679199997,
        3.00906198292,
        3.87793833292,
        3.4639089629199997,
        3.16591445292,
        3.01621501292
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.85232117252,
      "stddev": 0.19173527658012285,
      "median": 1.90829686542,
      "user": 2.0073076199999997,
      "system": 2.1390801799999997,
      "min": 1.5631369129200001,
      "max": 2.14684593292,
      "times": [
        1.98263915892,
        1.5814036379199998,
        1.95818186992,
        1.92544397092,
        1.74726729292,
        2.14684593292,
        1.89114975992,
        2.00632966992,
        1.72081351892,
        1.5631369129200001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.90941468862,
      "stddev": 0.14777736830528185,
      "median": 1.91137667342,
      "user": 2.2222839199999997,
      "system": 2.5256089799999994,
      "min": 1.65905912692,
      "max": 2.11368079592,
      "times": [
        1.65905912692,
        1.9331622559200001,
        1.91793532692,
        2.11368079592,
        1.83621985592,
        1.72424126092,
        2.06191694192,
        1.8694384309199998,
        2.07367487092,
        1.90481801992
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 347.1 ± 79.1 292.3 536.0 1.18 ± 0.30
pacquet@main 295.1 ± 34.5 272.7 389.9 1.00
pnpr@HEAD 333.8 ± 39.8 283.3 405.0 1.13 ± 0.19
pnpr@main 371.8 ± 41.7 314.3 416.6 1.26 ± 0.20
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.34714516384,
      "stddev": 0.07909373168939383,
      "median": 0.30401329224,
      "user": 0.28919232,
      "system": 0.6475334800000001,
      "min": 0.29228675574,
      "max": 0.53602508274,
      "times": [
        0.53602508274,
        0.34668704574000003,
        0.39996939374,
        0.40210272374,
        0.29297533974,
        0.29442696874,
        0.30898591374,
        0.29228675574,
        0.29904067074,
        0.29895174374
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.29511965584,
      "stddev": 0.03450920214920444,
      "median": 0.29044712274,
      "user": 0.25128012,
      "system": 0.56807138,
      "min": 0.27272373574000003,
      "max": 0.38989872674000003,
      "times": [
        0.27272373574000003,
        0.38989872674000003,
        0.29222819574000003,
        0.29346977074,
        0.28866604974,
        0.29259745074,
        0.27303009174000004,
        0.29459766974,
        0.28078775274,
        0.27319711474
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.33384247094,
      "stddev": 0.03980240165013183,
      "median": 0.33344651974000006,
      "user": 0.28152072,
      "system": 0.61063878,
      "min": 0.28333115274000004,
      "max": 0.40497893074,
      "times": [
        0.29328897074,
        0.28333115274000004,
        0.28883305474,
        0.33622026374,
        0.31829035274,
        0.33067277574000004,
        0.34239498874,
        0.40497893074,
        0.37063651174,
        0.36977770774
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.37175351864000006,
      "stddev": 0.04170833042551015,
      "median": 0.39242342674,
      "user": 0.31369452,
      "system": 0.6826041800000001,
      "min": 0.31431840674,
      "max": 0.41663923674000003,
      "times": [
        0.40713171774,
        0.39413965774000004,
        0.39732189774000004,
        0.41233077874,
        0.41663923674000003,
        0.34165522774,
        0.39070719574,
        0.31431840674,
        0.32286252574,
        0.32042854174
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.960 ± 0.062 2.902 3.097 1.80 ± 0.16
pacquet@main 2.995 ± 0.149 2.826 3.238 1.82 ± 0.18
pnpr@HEAD 1.761 ± 0.115 1.599 1.949 1.07 ± 0.12
pnpr@main 1.646 ± 0.142 1.432 1.874 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.96013145348,
      "stddev": 0.062338294456109104,
      "median": 2.9525265466799997,
      "user": 2.23222132,
      "system": 1.5955659800000002,
      "min": 2.90171491768,
      "max": 3.0969702676799997,
      "times": [
        2.9024320866799997,
        2.95076436068,
        2.97927778468,
        2.96740547968,
        2.90297436568,
        3.0969702676799997,
        3.0246160716799997,
        2.95428873268,
        2.90171491768,
        2.92087046768
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.9952644141800002,
      "stddev": 0.14857762292906435,
      "median": 2.9719134376799996,
      "user": 2.2520673199999997,
      "system": 1.6790724799999999,
      "min": 2.82573484868,
      "max": 3.23831342468,
      "times": [
        3.20685732168,
        3.07122299668,
        2.86902457768,
        2.82573484868,
        3.03470325268,
        3.05464085068,
        3.23831342468,
        2.9091236226799997,
        2.84644961568,
        2.89657363068
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.7606948895799999,
      "stddev": 0.11516574027158147,
      "median": 1.79282930418,
      "user": 1.39002232,
      "system": 1.49279258,
      "min": 1.59947555168,
      "max": 1.9494198456800003,
      "times": [
        1.9494198456800003,
        1.78594792468,
        1.6508958016800002,
        1.80743324868,
        1.8100609346800003,
        1.88536806068,
        1.6217384976800002,
        1.59947555168,
        1.69689834668,
        1.79971068368
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.64633689658,
      "stddev": 0.14236857503797773,
      "median": 1.65007830218,
      "user": 1.17967882,
      "system": 1.25809248,
      "min": 1.4315954006800002,
      "max": 1.8739696416800002,
      "times": [
        1.5655679656800001,
        1.5486469226800001,
        1.8088892736800002,
        1.60382485168,
        1.4315954006800002,
        1.6963317526800001,
        1.7359552656800001,
        1.71161982668,
        1.8739696416800002,
        1.48696806468
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 806.0 ± 86.7 669.3 930.6 2.36 ± 0.30
pacquet@main 694.2 ± 80.1 635.6 911.4 2.03 ± 0.27
pnpr@HEAD 341.5 ± 22.7 310.6 368.0 1.00
pnpr@main 359.9 ± 26.7 312.3 395.2 1.05 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.8059845028,
      "stddev": 0.08670952888853635,
      "median": 0.7811671846999999,
      "user": 1.0107192799999998,
      "system": 0.82433698,
      "min": 0.6693198422,
      "max": 0.9305597162,
      "times": [
        0.7679588912,
        0.8061090362,
        0.8964739762,
        0.9292652252,
        0.9305597162,
        0.7653908072,
        0.7679615362,
        0.6693198422,
        0.7324331642,
        0.7943728332
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.6941763288999999,
      "stddev": 0.08006506957821338,
      "median": 0.6730257942,
      "user": 0.85798358,
      "system": 0.72278908,
      "min": 0.6356098572,
      "max": 0.9114237692,
      "times": [
        0.7056899651999999,
        0.9114237692,
        0.6356098572,
        0.6651703072,
        0.6896739882,
        0.6426660222,
        0.7007635402,
        0.6688316451999999,
        0.6772199432,
        0.6447142512
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.3415289821000001,
      "stddev": 0.022723637085787615,
      "median": 0.3467128532,
      "user": 0.23718128,
      "system": 0.59291048,
      "min": 0.3106487002,
      "max": 0.36801132820000004,
      "times": [
        0.3395634582,
        0.33117925820000005,
        0.31549716920000004,
        0.36801132820000004,
        0.3538622482,
        0.31254256820000004,
        0.3106487002,
        0.36615242620000005,
        0.35939371820000005,
        0.3584389462
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.3599206119,
      "stddev": 0.026718505801026297,
      "median": 0.36272078920000006,
      "user": 0.24887527999999998,
      "system": 0.61208278,
      "min": 0.31233406620000004,
      "max": 0.3952431632,
      "times": [
        0.36203097320000005,
        0.3952431632,
        0.3634106052,
        0.37959786320000005,
        0.31233406620000004,
        0.33525907120000004,
        0.3326192122,
        0.3905087092,
        0.3737129992,
        0.3544894562
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.154 ± 0.061 2.082 2.308 6.03 ± 0.64
pacquet@main 2.183 ± 0.068 2.090 2.274 6.11 ± 0.66
pnpr@HEAD 0.358 ± 0.027 0.337 0.431 1.00 ± 0.13
pnpr@main 0.357 ± 0.037 0.315 0.427 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.1541097091399997,
      "stddev": 0.06106741486838064,
      "median": 2.14177391514,
      "user": 1.4074512999999997,
      "system": 0.9369856599999998,
      "min": 2.08159737714,
      "max": 2.30824540014,
      "times": [
        2.11939782614,
        2.18889079014,
        2.13889535314,
        2.08159737714,
        2.14465247714,
        2.12385996914,
        2.14564472114,
        2.16308662714,
        2.12682655014,
        2.30824540014
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.18340634664,
      "stddev": 0.0676563063548063,
      "median": 2.18226932214,
      "user": 1.4510797000000002,
      "system": 0.9912318600000001,
      "min": 2.09022572614,
      "max": 2.27409603014,
      "times": [
        2.14378950614,
        2.09022572614,
        2.20250436414,
        2.24131880714,
        2.16203428014,
        2.23301687214,
        2.27409603014,
        2.26136732914,
        2.10784216914,
        2.11786838214
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.35816605844000005,
      "stddev": 0.027394663387374577,
      "median": 0.34940434714,
      "user": 0.26091429999999993,
      "system": 0.59226826,
      "min": 0.33733948914000006,
      "max": 0.43087723114000004,
      "times": [
        0.43087723114000004,
        0.36941035414000006,
        0.35062284214000006,
        0.34651872214,
        0.33733948914000006,
        0.34205912414000006,
        0.35319999214000003,
        0.34059155714000006,
        0.34818585214000003,
        0.36285542014000005
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.35706698084,
      "stddev": 0.03662979800954142,
      "median": 0.34553949214,
      "user": 0.23687459999999994,
      "system": 0.5995136600000002,
      "min": 0.31487016914000004,
      "max": 0.42686970314000006,
      "times": [
        0.31487016914000004,
        0.33220021414000006,
        0.37152007714,
        0.42686970314000006,
        0.40889467714000005,
        0.34792213814000006,
        0.34315684614,
        0.32862903514,
        0.33000190414,
        0.36660504414000006
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 485.5 ± 35.0 438.6 551.4 5.26 ± 0.41
pacquet@main 449.3 ± 26.7 397.5 477.3 4.87 ± 0.33
pnpr@HEAD 92.3 ± 2.8 86.7 101.1 1.00
pnpr@main 96.3 ± 6.7 89.7 127.7 1.04 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.48548944544,
      "stddev": 0.0350341118246385,
      "median": 0.4796563836400001,
      "user": 0.47591084000000006,
      "system": 0.08226799999999998,
      "min": 0.43859586114000004,
      "max": 0.55144029214,
      "times": [
        0.51379409314,
        0.46290985514000005,
        0.55144029214,
        0.51562485114,
        0.45390822514000007,
        0.43859586114000004,
        0.45846170914000006,
        0.46854163514,
        0.5008468001399999,
        0.49077113214000007
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.44932850044000006,
      "stddev": 0.02666934857997893,
      "median": 0.45448914864000006,
      "user": 0.43187523999999994,
      "system": 0.0788894,
      "min": 0.39749639214000004,
      "max": 0.47728869414,
      "times": [
        0.43210434314000007,
        0.46911659714000004,
        0.41965006414000006,
        0.45833058214000005,
        0.47710261414000005,
        0.47037929814000007,
        0.47728869414,
        0.45064771514000007,
        0.39749639214000004,
        0.44116870414000003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09226562463999999,
      "stddev": 0.0028196020853773923,
      "median": 0.09178532064,
      "user": 0.02248240666666667,
      "system": 0.011930026666666668,
      "min": 0.08667014514,
      "max": 0.10111547214000001,
      "times": [
        0.09302166114,
        0.09179117114,
        0.09048441814000001,
        0.09241065514,
        0.09129191514000001,
        0.09209708514,
        0.09244031014000001,
        0.09135813914,
        0.09177947014000001,
        0.09042913414,
        0.09117031614000001,
        0.09142590514000001,
        0.08667014514,
        0.08751217614000001,
        0.09093144714000001,
        0.09197112014,
        0.09132158914,
        0.09039802614,
        0.09164457614,
        0.09282562414000001,
        0.09095821714,
        0.09146487814000001,
        0.09395408314,
        0.09216712814000001,
        0.09785729314000001,
        0.09437198814,
        0.09182667914,
        0.09279453614000001,
        0.10111547214000001,
        0.09848357914000001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.09634540347333333,
      "stddev": 0.006651296043454936,
      "median": 0.09598815364,
      "user": 0.025672239999999995,
      "system": 0.012666033333333332,
      "min": 0.08970703714,
      "max": 0.12770856013999998,
      "times": [
        0.09420087614000001,
        0.09730434514000001,
        0.09640759114000001,
        0.09560408214,
        0.09684861814000001,
        0.08970703714,
        0.09303818414000001,
        0.09102296914,
        0.09277009914,
        0.09052134714000001,
        0.09130991714,
        0.09171072114,
        0.09108717914,
        0.09329462414,
        0.09418231114,
        0.09685730514,
        0.10081642014,
        0.09751689414,
        0.09723425314,
        0.09669684414,
        0.09341030114000001,
        0.10079143314000001,
        0.09726378814,
        0.09779639814,
        0.10066039714000001,
        0.09547574114000001,
        0.09637222514,
        0.09559324114000001,
        0.09715840014,
        0.12770856013999998
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.687 ± 0.101 4.538 4.888 1.28 ± 0.05
pacquet@main 4.686 ± 0.139 4.503 4.927 1.28 ± 0.06
pnpr@HEAD 3.656 ± 0.087 3.527 3.773 1.00 ± 0.04
pnpr@main 3.649 ± 0.113 3.514 3.897 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.6868065448800005,
      "stddev": 0.10078683433556014,
      "median": 4.68119263018,
      "user": 2.2617468799999996,
      "system": 1.76546414,
      "min": 4.53797692168,
      "max": 4.88825200968,
      "times": [
        4.69555574868,
        4.57954717668,
        4.66742408068,
        4.6913762086799995,
        4.88825200968,
        4.78565995368,
        4.61887667368,
        4.53797692168,
        4.67100905168,
        4.73238762368
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.6855468480799995,
      "stddev": 0.13925747777666647,
      "median": 4.6877868841799994,
      "user": 2.39118398,
      "system": 1.7764159400000001,
      "min": 4.5033819266799995,
      "max": 4.92737405768,
      "times": [
        4.56462049668,
        4.80743513468,
        4.5033819266799995,
        4.92737405768,
        4.65710079368,
        4.51985376868,
        4.81463218068,
        4.71847297468,
        4.61225258668,
        4.73034456068
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.6562252593799998,
      "stddev": 0.08732429654911533,
      "median": 3.66782274168,
      "user": 1.70195908,
      "system": 1.6995870399999997,
      "min": 3.52662253468,
      "max": 3.77251312168,
      "times": [
        3.72823073268,
        3.60563856168,
        3.67771093268,
        3.53621524068,
        3.60426812668,
        3.77251312168,
        3.76596735168,
        3.65793455068,
        3.52662253468,
        3.68715144068
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.64882038798,
      "stddev": 0.11282750987793712,
      "median": 3.62898936518,
      "user": 1.6617881799999998,
      "system": 1.6161014400000002,
      "min": 3.51433942368,
      "max": 3.89690454368,
      "times": [
        3.57486862368,
        3.64035551868,
        3.66951022168,
        3.58937275668,
        3.89690454368,
        3.51433942368,
        3.70300540168,
        3.74457421268,
        3.53764996568,
        3.61762321168
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13447
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,901.71 ms
(+4.32%)Baseline: 2,781.48 ms
3,337.77 ms
(86.94%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
2,081.60 ms
(+6.97%)Baseline: 1,945.92 ms
2,335.10 ms
(89.14%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
669.32 ms
(+7.51%)Baseline: 622.54 ms
747.04 ms
(89.60%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
438.60 ms
(+14.20%)Baseline: 384.07 ms
460.88 ms
(95.16%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,518.56 ms
(+5.05%)Baseline: 2,397.44 ms
2,876.93 ms
(87.54%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,537.98 ms
(+1.58%)Baseline: 4,467.32 ms
5,360.79 ms
(84.65%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
292.29 ms
(+7.30%)Baseline: 272.40 ms
326.88 ms
(89.42%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13447
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,599.48 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
337.34 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
310.65 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
86.67 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,563.14 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,526.62 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
283.33 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit ac530a6 into main Jul 27, 2026
33 checks passed
@zkochan
zkochan deleted the fix-13444 branch July 27, 2026 22:12
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.

Rust pnpm misses shamefully hoisted root dependency links

3 participants