Skip to content

fix(pacquet): skip the store probe for registry-only commands - #15384

Merged
zkochan merged 2 commits into
mainfrom
fix/registry-commands-skip-store-probe
Sep 23, 2026
Merged

zkochan merged 2 commits into
mainfrom
fix/registry-commands-skip-store-probe

Conversation

@zkochan

@zkochan zkochan commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #15373. That PR stopped view, config, root, prefix, bin, exec, run, and the script shortcuts from writing the hardlink probe (_tmp_<pid>_<hex>) into the project directory when they load their config. Every other command kept the default StoreUse::Opens.

This PR adds the registry-only commands to StoreUse::Never: access, bugs, deprecate, dist-tag, docs, login, logout, owner, ping, repo, search, star, stars, team, undeprecate, unpublish, unstar, whoami. I checked each handler. It only loads its config and passes it to the registry client. None runs the updateConfig hooks, so none installs configDependencies. No code on their paths reads store_dir or global_virtual_store_dir, including the auth-commands, registry, and network-web-auth crates.

list, why, licenses, outdated, and the other dependency-graph commands stay Opens, because they read package metadata from the store.

The pending changeset from #15373 is widened to cover these commands instead of adding a second entry.

Squash Commit Body

The registry commands (`access`, `bugs`, `deprecate`, `dist-tag`, `docs`,
`login`, `logout`, `owner`, `ping`, `repo`, `search`, `star`, `stars`,
`team`, `undeprecate`, `unpublish`, `unstar`, `whoami`) only load their
config and talk to the registry. None runs the `updateConfig` hooks, so
none installs `configDependencies`, and none reads the store. Classify
them as `StoreUse::Never` so their config load no longer writes the
hardlink probe into the project directory.

`list`, `why`, `licenses`, `outdated` and the other dependency-graph
commands stay `Opens`: they read package metadata from the store.

Checklist

  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes
    are implemented in every affected version.
  • 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.

Tests: store_placement::commands_without_store_access_do_not_modify_the_project_directory now runs all 18 registry commands against a registry that answers 404. With the new match arm disabled, each of them creates the pnpm home (checked one by one), and the test fails at the first one, ping.


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

🤖 Generated with Claude Code

The registry commands (`access`, `bugs`, `deprecate`, `dist-tag`, `docs`,
`login`, `logout`, `owner`, `ping`, `repo`, `search`, `star`, `stars`,
`team`, `undeprecate`, `unpublish`, `unstar`, `whoami`) only load their
config and talk to the registry. None runs the `updateConfig` hooks, so
none installs `configDependencies`, and none reads the store. Classify
them as `StoreUse::Never` so their config load no longer writes the
hardlink probe into the project directory.

`list`, `why`, `licenses`, `outdated` and the other dependency-graph
commands stay `Opens`: they read package metadata from the store.

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

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: pnpm/pnpm/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 3c152680-8be6-40ff-b04c-a9b0f1aad1e3

📥 Commits

Reviewing files that changed from the base of the PR and between f4cad39 and 86406d5.

📒 Files selected for processing (3)
  • .changeset/quiet-command-store-probe.md
  • pnpm/crates/cli/src/cli_args/dispatch/configuration.rs
  • pnpm/crates/cli/tests/suite/store_placement.rs

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.

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.11     16.3±2.20ms    23.0 MB/sec    1.00     14.7±0.89ms    25.5 MB/sec
packument/parse                                  1.15     50.2±6.25µs  1321.0 MB/sec    1.00     43.7±1.19µs  1516.6 MB/sec
tarball/download_dependency                      1.22      5.7±0.86ms   763.9 KB/sec    1.00      4.7±0.21ms   930.2 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.12   261.5±10.09ms 61.2 KElem/sec    1.00    233.5±6.90ms 68.5 KElem/sec
workspace_resolution/hoist_heavy                 1.15   336.5±11.92ms        ? ?/sec    1.00    293.8±8.19ms        ? ?/sec
workspace_sort/chained_projects                  1.06     17.5±1.94ms        ? ?/sec    1.00     16.6±2.51ms        ? ?/sec

@codecov-commenter

codecov-commenter commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.65%. Comparing base (f4cad39) to head (86406d5).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15384      +/-   ##
==========================================
+ Coverage   91.59%   91.65%   +0.05%     
==========================================
  Files        1402     1402              
  Lines      188810   188822      +12     
==========================================
+ Hits       172941   173062     +121     
+ Misses      15869    15760     -109     

☔ 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 Sep 23, 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 2534.25 ms 2412.35 ms -4.8% 126.71 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1450.63 ms 1522.83 ms 5.0% 72.53 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 451.58 ms 406.90 ms -9.9% 22.58 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr 387.45 ms 616.58 ms 59.1% 19.37 ms Inconclusive (not reproduced)
isolated-repeat-install-hot-cache-hot-store pacquet 10.96 ms 12.71 ms 16.0% 2.00 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr 9.77 ms 10.58 ms 8.3% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 16.56 ms 18.01 ms 8.7% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 21.93 ms 21.82 ms -0.5% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2517.80 ms 2841.46 ms 12.9% 125.89 ms Inconclusive (overlapping samples)
isolated-fresh-install-cold-cache-cold-store pnpr 1456.17 ms 1491.76 ms 2.4% 72.81 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 827.47 ms 798.88 ms -3.5% 41.37 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 521.14 ms 467.53 ms -10.3% 26.06 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet 2373.01 ms 2194.70 ms -7.5% 118.65 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 562.59 ms 562.06 ms -0.1% 28.13 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 242.30 ms 211.37 ms -12.8% 12.12 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 98.93 ms 96.97 ms -2.0% 4.95 ms Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet 726.98 ms 812.30 ms 11.7% 36.35 ms Inconclusive (overlapping samples)
isolated-linked-workspace-resolve-hot-cache-offline pacquet 214.85 ms 227.61 ms 5.9% 10.74 ms Inconclusive (overlapping samples)
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4751.43 ms 4673.29 ms -1.6% 237.57 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3435.38 ms 3610.39 ms 5.1% 171.77 ms Inconclusive (overlapping samples)
gvs-fresh-restore-hot-cache-hot-store pacquet 178.97 ms 182.93 ms 2.2% 8.95 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr 203.86 ms 208.48 ms 2.3% 10.19 ms Within tolerance

Integrated-Benchmark Report (Linux)

Commit: 86406d5290d5

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

The tables below show mean ± σ. Bencher 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.490 ± 0.167 2.313 2.785 1.68 ± 0.19
pacquet@main 2.524 ± 0.148 2.345 2.780 1.71 ± 0.18
pnpr@HEAD 1.526 ± 0.138 1.342 1.761 1.03 ± 0.13
pnpr@main 1.480 ± 0.131 1.315 1.695 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.4900798682999996,
      "stddev": 0.1669209227003631,
      "median": 2.4123451612,
      "user": 1.7792966199999998,
      "system": 1.8613919199999998,
      "min": 2.3134820762,
      "max": 2.7851661412000004
    },
    {
      "command": "pacquet@main",
      "mean": 2.5242705316,
      "stddev": 0.1475553410216399,
      "median": 2.5342453592,
      "user": 1.5810297199999996,
      "system": 1.7794283199999998,
      "min": 2.3449789882000003,
      "max": 2.7801115362
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.525669335,
      "stddev": 0.1380644141313272,
      "median": 1.5228278361999998,
      "user": 1.5323807200000001,
      "system": 1.6254831199999997,
      "min": 1.3421233341999999,
      "max": 1.7614475911999998
    },
    {
      "command": "pnpr@main",
      "mean": 1.480199202,
      "stddev": 0.13069989931833567,
      "median": 1.4506306271999998,
      "user": 1.41228902,
      "system": 1.50423552,
      "min": 1.3154118062,
      "max": 1.6953822412000001
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 414.7 ± 30.1 373.9 478.7 1.08 ± 0.12
pacquet@main 470.8 ± 60.8 402.5 587.5 1.22 ± 0.19
pnpr@HEAD 617.3 ± 54.4 530.7 712.9 1.60 ± 0.20
pnpr@main 385.6 ± 34.8 331.1 450.4 1.00

Confirmation (reversed target order)

Command Mean [ms] Min [ms] Max [ms] Relative
pnpr@main 369.9 ± 15.1 334.6 385.3 1.13 ± 0.06
pnpr@HEAD 384.5 ± 37.5 341.0 475.4 1.17 ± 0.12
pacquet@main 395.0 ± 37.8 335.3 456.9 1.20 ± 0.12
pacquet@HEAD 328.4 ± 10.8 312.9 341.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.41472634266,
      "stddev": 0.0300945233943282,
      "median": 0.40689506686,
      "user": 0.44940143999999993,
      "system": 0.80786012,
      "min": 0.37393870836,
      "max": 0.47871878236
    },
    {
      "command": "pacquet@main",
      "mean": 0.47075406206,
      "stddev": 0.06082018249027096,
      "median": 0.45157510686,
      "user": 0.49584164,
      "system": 0.82809852,
      "min": 0.40254088436,
      "max": 0.58746915336
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.61734966606,
      "stddev": 0.054372475013596364,
      "median": 0.61658352186,
      "user": 0.57762894,
      "system": 0.9375169199999999,
      "min": 0.53072574836,
      "max": 0.7129466963600001
    },
    {
      "command": "pnpr@main",
      "mean": 0.38557381246,
      "stddev": 0.03481139054752105,
      "median": 0.38745360386,
      "user": 0.39960724,
      "system": 0.73547422,
      "min": 0.33114931136,
      "max": 0.45039260836
    }
  ],
  "confirmation": {
    "results": [
      {
        "command": "pnpr@main",
        "mean": 0.3698654205200001,
        "stddev": 0.01511056499942144,
        "median": 0.36951418982000006,
        "user": 0.37398161999999996,
        "system": 0.6990963599999999,
        "min": 0.33458107832000006,
        "max": 0.38527584232000006
      },
      {
        "command": "pnpr@HEAD",
        "mean": 0.38453456642000006,
        "stddev": 0.037487070438794685,
        "median": 0.37967617432,
        "user": 0.40080861999999995,
        "system": 0.77059936,
        "min": 0.34104175232000006,
        "max": 0.4753856443200001
      },
      {
        "command": "pacquet@main",
        "mean": 0.39503292541999996,
        "stddev": 0.03775914472921018,
        "median": 0.40231144332,
        "user": 0.43473251999999996,
        "system": 0.84176456,
        "min": 0.33528450832000006,
        "max": 0.45693462032000004
      },
      {
        "command": "pacquet@HEAD",
        "mean": 0.32842011512,
        "stddev": 0.010842101557936953,
        "median": 0.32727984982,
        "user": 0.36720551999999995,
        "system": 0.7071762599999999,
        "min": 0.31292020232000006,
        "max": 0.34181964132000003
      }
    ]
  }
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 13.6 ± 3.3 8.9 25.4 1.34 ± 0.41
pacquet@main 11.3 ± 1.7 8.1 18.3 1.11 ± 0.27
pnpr@HEAD 11.0 ± 2.3 7.5 20.1 1.08 ± 0.30
pnpr@main 10.2 ± 1.9 7.1 17.5 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.01362397004060151,
      "stddev": 0.003331168234398882,
      "median": 0.0127121118,
      "user": 0.008446482406015038,
      "system": 0.006053835187969924,
      "min": 0.0089098968,
      "max": 0.025432140800000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.01129851460465116,
      "stddev": 0.0017467953112599156,
      "median": 0.0109571388,
      "user": 0.0065816316279069705,
      "system": 0.005469325209302324,
      "min": 0.0080794898,
      "max": 0.018335782800000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.010964717099539173,
      "stddev": 0.0022524514454411366,
      "median": 0.0105831918,
      "user": 0.006373326451612903,
      "system": 0.005276382672811059,
      "min": 0.0074715058,
      "max": 0.0200957468
    },
    {
      "command": "pnpr@main",
      "mean": 0.01017526298548387,
      "stddev": 0.001854794324858835,
      "median": 0.0097702678,
      "user": 0.005875189354838715,
      "system": 0.004976460806451614,
      "min": 0.0071100538,
      "max": 0.0174886488
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 18.0 ± 2.2 13.4 23.9 1.08 ± 0.25
pacquet@main 16.7 ± 3.3 10.9 24.1 1.00
pnpr@HEAD 22.2 ± 4.9 13.4 43.8 1.33 ± 0.39
pnpr@main 22.4 ± 3.1 16.5 32.1 1.34 ± 0.32
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.01799242830666667,
      "stddev": 0.0021537091088747913,
      "median": 0.018011748640000002,
      "user": 0.009942068817204299,
      "system": 0.009254113118279568,
      "min": 0.01342841264,
      "max": 0.02390629664
    },
    {
      "command": "pacquet@main",
      "mean": 0.016658933481726625,
      "stddev": 0.003289830487828279,
      "median": 0.01656256764,
      "user": 0.008851671942446045,
      "system": 0.008965189496402877,
      "min": 0.01090637464,
      "max": 0.02414216764
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.022225780409230764,
      "stddev": 0.0048564560349444565,
      "median": 0.02181991264,
      "user": 0.011779251923076927,
      "system": 0.011398519807692305,
      "min": 0.013355976640000001,
      "max": 0.043816715640000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.022369666686296304,
      "stddev": 0.003082309133787504,
      "median": 0.02193244364,
      "user": 0.01313755,
      "system": 0.010420614444444446,
      "min": 0.01653150864,
      "max": 0.03211746764
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.871 ± 0.153 2.695 3.137 1.97 ± 0.13
pacquet@main 2.543 ± 0.057 2.494 2.661 1.74 ± 0.08
pnpr@HEAD 1.526 ± 0.142 1.368 1.746 1.05 ± 0.11
pnpr@main 1.458 ± 0.057 1.396 1.580 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.87073237252,
      "stddev": 0.15300713747669295,
      "median": 2.8414598574200003,
      "user": 2.9268365199999997,
      "system": 2.42675764,
      "min": 2.69531356892,
      "max": 3.13733520292
    },
    {
      "command": "pacquet@main",
      "mean": 2.54323759752,
      "stddev": 0.056638407627190315,
      "median": 2.51780206842,
      "user": 2.05047602,
      "system": 1.7304754399999998,
      "min": 2.49444160592,
      "max": 2.66147875492
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.52615013392,
      "stddev": 0.14191508753374357,
      "median": 1.4917581044200001,
      "user": 1.12956062,
      "system": 1.3403248399999999,
      "min": 1.36772349692,
      "max": 1.74575637492
    },
    {
      "command": "pnpr@main",
      "mean": 1.4576163254200003,
      "stddev": 0.057379188779343386,
      "median": 1.4561698489200001,
      "user": 1.09321622,
      "system": 1.2733620399999999,
      "min": 1.3959887959200001,
      "max": 1.5803019489200003
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 795.9 ± 89.8 694.4 935.4 1.71 ± 0.22
pacquet@main 826.4 ± 52.5 730.6 891.6 1.77 ± 0.16
pnpr@HEAD 466.7 ± 28.9 426.3 507.3 1.00
pnpr@main 519.7 ± 28.2 478.4 574.0 1.11 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.79590214416,
      "stddev": 0.0897678574234761,
      "median": 0.79887844086,
      "user": 1.2056335999999999,
      "system": 1.2346782199999997,
      "min": 0.69444756886,
      "max": 0.9354298368600001
    },
    {
      "command": "pacquet@main",
      "mean": 0.82636548526,
      "stddev": 0.05249088282882914,
      "median": 0.8274747558600001,
      "user": 1.2007402999999999,
      "system": 1.30688582,
      "min": 0.73064264186,
      "max": 0.8915938928600001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.46667186806000005,
      "stddev": 0.028942313564819612,
      "median": 0.46753229786,
      "user": 0.4284061,
      "system": 0.75442462,
      "min": 0.42627020786,
      "max": 0.5073021318600001
    },
    {
      "command": "pnpr@main",
      "mean": 0.51973328636,
      "stddev": 0.028169010390269866,
      "median": 0.5211423073600001,
      "user": 0.4620969,
      "system": 0.81566312,
      "min": 0.47835638486000004,
      "max": 0.5739870528600001
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.194 ± 0.130 2.006 2.510 3.84 ± 0.37
pacquet@main 2.428 ± 0.176 2.249 2.766 4.25 ± 0.45
pnpr@HEAD 0.571 ± 0.044 0.491 0.637 1.00
pnpr@main 0.573 ± 0.057 0.506 0.659 1.00 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.1943942192,
      "stddev": 0.13037065307118426,
      "median": 2.1947041251,
      "user": 1.7996623799999998,
      "system": 1.51400892,
      "min": 2.0063317301,
      "max": 2.5098761170999997
    },
    {
      "command": "pacquet@main",
      "mean": 2.4283734420000003,
      "stddev": 0.17579185624176435,
      "median": 2.3730087425999997,
      "user": 2.02897618,
      "system": 1.7006656199999999,
      "min": 2.2486766381,
      "max": 2.7663488391
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.5709545033,
      "stddev": 0.043929992591219415,
      "median": 0.5620598231,
      "user": 0.49706828,
      "system": 0.8392793199999999,
      "min": 0.4910024731,
      "max": 0.6365185021
    },
    {
      "command": "pnpr@main",
      "mean": 0.5731102980000001,
      "stddev": 0.05722095907705254,
      "median": 0.5625915311,
      "user": 0.4884540799999999,
      "system": 0.84328502,
      "min": 0.5058831111000001,
      "max": 0.6589277061000001
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 214.5 ± 11.1 200.3 241.9 2.19 ± 0.20
pacquet@main 243.2 ± 22.1 207.5 298.1 2.48 ± 0.29
pnpr@HEAD 98.0 ± 7.2 88.9 124.0 1.00
pnpr@main 99.4 ± 5.1 90.9 111.5 1.01 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.21445066717714287,
      "stddev": 0.011131124411502435,
      "median": 0.21137065482,
      "user": 0.21939039999999996,
      "system": 0.08076213714285711,
      "min": 0.20025532132,
      "max": 0.24186551332000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.24321864532000004,
      "stddev": 0.022112378076063637,
      "median": 0.24230116582000003,
      "user": 0.2577735428571429,
      "system": 0.0823659942857143,
      "min": 0.20747106232000004,
      "max": 0.29808710332000005
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09796124117714286,
      "stddev": 0.007200005459993532,
      "median": 0.09696588482,
      "user": 0.03577982857142857,
      "system": 0.019504351428571425,
      "min": 0.08886050032000001,
      "max": 0.12396743732000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.09938457835846151,
      "stddev": 0.005093677828002022,
      "median": 0.09892999832000002,
      "user": 0.04116755384615385,
      "system": 0.015517269230769227,
      "min": 0.09092866532,
      "max": 0.11146042732
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 770.6 ± 95.5 612.4 860.9 1.05 ± 0.16
pacquet@main 735.1 ± 63.8 635.9 855.8 1.00
pnpm@HEAD 4166.2 ± 734.3 3364.7 5351.8 5.67 ± 1.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.770621902171111,
      "stddev": 0.09550020909513549,
      "median": 0.81229927406,
      "user": 0.783020011111111,
      "system": 0.20857915111111114,
      "min": 0.61243260006,
      "max": 0.8609216780600001
    },
    {
      "command": "pacquet@main",
      "mean": 0.7351126619488889,
      "stddev": 0.06378512852110262,
      "median": 0.7269848010600001,
      "user": 0.7659905666666667,
      "system": 0.16617715111111112,
      "min": 0.63587192506,
      "max": 0.8557969040600001
    },
    {
      "command": "pnpm@HEAD",
      "mean": 4.166155089615555,
      "stddev": 0.7342800840617117,
      "median": 4.04490602206,
      "user": 6.552490011111111,
      "system": 0.32720559555555556,
      "min": 3.36472199606,
      "max": 5.35182600506
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 225.0 ± 28.6 187.3 273.5 1.04 ± 0.14
pacquet@main 217.4 ± 10.5 200.8 236.1 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.22501346834857142,
      "stddev": 0.028596479426202793,
      "median": 0.22761404692000003,
      "user": 0.17354041428571426,
      "system": 0.10628826,
      "min": 0.18734755242,
      "max": 0.27349466742
    },
    {
      "command": "pacquet@main",
      "mean": 0.2173597777276923,
      "stddev": 0.010540648162179986,
      "median": 0.21485466442000004,
      "user": 0.1536899307692308,
      "system": 0.10372345230769228,
      "min": 0.20075053442000002,
      "max": 0.23605725242000003
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.661 ± 0.160 4.441 4.933 1.34 ± 0.06
pacquet@main 4.712 ± 0.184 4.461 4.941 1.35 ± 0.07
pnpr@HEAD 3.591 ± 0.122 3.415 3.765 1.03 ± 0.05
pnpr@main 3.485 ± 0.115 3.397 3.763 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.66095441002,
      "stddev": 0.15985194874933323,
      "median": 4.67329385332,
      "user": 2.1194091,
      "system": 2.02727332,
      "min": 4.44128734932,
      "max": 4.93345612432
    },
    {
      "command": "pacquet@main",
      "mean": 4.712461749219999,
      "stddev": 0.1841926946618504,
      "median": 4.75143404582,
      "user": 1.9166916999999999,
      "system": 1.8735415199999998,
      "min": 4.461274288319999,
      "max": 4.94080408532
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.591405199620001,
      "stddev": 0.1222261788837597,
      "median": 3.6103942188200002,
      "user": 1.6337773999999996,
      "system": 1.63227342,
      "min": 3.4147380913200003,
      "max": 3.7649353703200004
    },
    {
      "command": "pnpr@main",
      "mean": 3.4846150830200004,
      "stddev": 0.11483505702422127,
      "median": 3.4353768133200004,
      "user": 1.5951805999999997,
      "system": 1.6119489200000001,
      "min": 3.3971237533200003,
      "max": 3.7634912643200003
    }
  ]
}

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 188.2 ± 15.3 165.4 220.6 1.05 ± 0.11
pacquet@main 179.4 ± 12.9 158.4 209.6 1.00
pnpr@HEAD 214.0 ± 22.2 186.3 249.1 1.19 ± 0.15
pnpr@main 206.5 ± 13.9 182.2 232.3 1.15 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.1881628728533333,
      "stddev": 0.015275617885093074,
      "median": 0.18293497732,
      "user": 0.22580918666666666,
      "system": 0.20901250666666668,
      "min": 0.16540408232,
      "max": 0.22060224032
    },
    {
      "command": "pacquet@main",
      "mean": 0.17940460311999998,
      "stddev": 0.012942406450566274,
      "median": 0.17896671232,
      "user": 0.21273478666666665,
      "system": 0.20867750666666668,
      "min": 0.15842893732000002,
      "max": 0.20955287432
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.21396068139142854,
      "stddev": 0.022249175428657137,
      "median": 0.20848125132,
      "user": 0.2494985342857143,
      "system": 0.21414552571428574,
      "min": 0.18627415632000002,
      "max": 0.24908961032000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.20649963785846154,
      "stddev": 0.013938937155696147,
      "median": 0.20386266732000002,
      "user": 0.23100885846153843,
      "system": 0.2176323169230769,
      "min": 0.18215153332,
      "max": 0.23229877932
    }
  ]
}

@zkochan
zkochan marked this pull request as ready for review September 23, 2026 15:37
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Skip store probing for registry-only pacquet commands

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Classifies registry-only commands as store-free to avoid project-directory hardlink probes.
• Expands store-placement coverage across representative registry commands and failure paths.
• Broadens pacquet release notes to describe all store-free commands.
Diagram

graph TD
  A["CLI command"] --> B{"Registry-only?"} -->|Yes| C["StoreUse Never"] --> D["Config loader"] --> E["Registry client"]
  B -->|No| F["Existing policy"]
  C -->|No probe| G["Project unchanged"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Attach store capabilities to command definitions
  • ➕ Co-locates store requirements with each command declaration.
  • ➕ Could make newly added commands explicitly choose a store policy.
  • ➖ Requires a broader parser and dispatch refactor.
  • ➖ Still depends on manually maintaining correct capability metadata.
  • ➖ Adds unnecessary scope to a focused regression fix.

Recommendation: Keep the PR's centralized registry-only predicate for this fix. It clearly documents the shared behavior, integrates with the existing StoreUse policy, and minimizes regression risk; command-level capability metadata is worth considering only if classification lists become difficult to maintain.

Files changed (3) +33 / -2

Bug fix (1) +25 / -0
configuration.rsClassify registry-only commands as store-free +25/-0

Classify registry-only commands as store-free

• Adds a predicate covering registry-only command variants and maps them to 'StoreUse::Never'. Their configuration now loads without placing the store or writing a hardlink probe into the project directory.

pnpm/crates/cli/src/cli_args/dispatch/configuration.rs

Tests (1) +7 / -1
store_placement.rsVerify registry commands avoid store placement +7/-1

Verify registry commands avoid store placement

• Extends the store-placement integration test with six representative registry commands against a 404 mock registry. Existing assertions verify that these commands create no pnpm home, change no directory timestamp, and leave no extra project entries.

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

Other (1) +1 / -1
quiet-command-store-probe.mdExpand release note coverage for store-free commands +1/-1

Expand release note coverage for store-free commands

• Generalizes the pacquet patch note and names registry command examples that no longer create temporary store-probe files while loading settings.

.changeset/quiet-command-store-probe.md

@greptile-apps

greptile-apps Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge with complete regression coverage for the newly classified commands.

Reviews (2) · Last reviewed commit: "test(pacquet): run every registry comman..."

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Informational

1. Windows probe regressions lack coverage 📜 Skill insight ▣ Testability ⭐ New
Description
The expanded store-placement cases cover the new registry commands only through the shared
Unix-sensitive directory timestamp and entry assertions, with no Windows-specific path or link
scenario. A Windows-only regression in the hardlink probe or project-directory handling could
therefore pass this test suite unnoticed while these commands appear covered on other platforms.
Code

pnpm/crates/cli/tests/suite/store_placement.rs[R32-43]

+        (&["access", "list", "packages", "nx", &registry_arg], false),
+        (&["bugs", "nx", &registry_arg], false),
+        (&["deprecate", "nx@1", "message", &registry_arg], false),
+        (&["undeprecate", "nx@1", &registry_arg], false),
+        (&["unpublish", "[email protected]", &registry_arg], false),
+        (&["login", &registry_arg], false),
+        (&["logout", &registry_arg], false),
+        (&["repo", "nx", &registry_arg], false),
+        (&["star", "nx", &registry_arg], false),
+        (&["unstar", "nx", &registry_arg], false),
+        (&["stars", &registry_arg], false),
+        (&["team", "ls", "@org", &registry_arg], false),
Relevance

● Weak

Matching Windows-specific store-probe coverage request was rejected in PR #15373, despite identical
non-Unix assertion limitations.

PR-#15373

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed test adds registry-command coverage for store-probe behavior, but all cases use the same
generic directory assertions and no Windows-specific path, separator, or hardlink scenario.
Compliance ID 3365308 requires an explicit Windows-specific case when path or hardlink behavior
changes.

pnpm/crates/cli/tests/suite/store_placement.rs[32-43]
Skill: review-code

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

## Issue description
The new registry-command cases extend coverage for store-probe behavior but do not exercise Windows-specific filesystem or hardlink behavior, so a platform-specific regression could remain undetected.

## Fix Focus Areas
- pnpm/crates/cli/tests/suite/store_placement.rs[32-43]

## Recommended Fix
Add an explicit Windows-specific test case or platform-aware assertions for the registry-only commands that verify the project directory and hardlink probe behavior using Windows path semantics. Keep the existing cross-platform cases and ensure the new test fails when registry-only commands perform the store probe.

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


2. New registry cases bypass shared setup 📘 Rule violation ▣ Testability
Description
commands_without_store_access_do_not_modify_the_project_directory sends the six added registry
cases to a directly created mockito::Server instead of the registry starter exported by
pnpm-testing-utils. Each new case therefore bypasses the shared registry lifecycle and fixture
behavior that the repository provides for command tests.
Code

pnpm/crates/cli/tests/suite/store_placement.rs[R26-29]

+        (&["ping", &registry_arg], false),
+        (&["search", "nx", &registry_arg], false),
+        (&["dist-tag", "ls", "nx", &registry_arg], false),
+        (&["owner", "ls", "nx", &registry_arg], false),
Relevance

● Weak

Same raw mockito registry setup was explicitly rejected in PR #15373 for this exact test and
requirement.

PR-#15373

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 2254915 requires registry-interacting tests to use the mocked registry starter from
pnpm-testing-utils. The added command cases use the URL of a direct mockito::Server, while
pnpm-testing-utils already exports TestRegistry::start() for this purpose.

Rule 2254915: Use pnpm-testing-utils to start the mocked registry in tests
pnpm/crates/cli/tests/suite/store_placement.rs[11-31]
pnpm/crates/testing-utils/src/registry.rs[11-21]

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 added registry-command cases use a directly created `mockito::Server`, although registry tests are required to start their mock registry through `pnpm-testing-utils`.

## Fix Focus Areas
- pnpm/crates/cli/tests/suite/store_placement.rs[11-31]

## Recommended Fix
Replace the direct `mockito::Server` with `pnpm_testing_utils::registry::TestRegistry::start()` and build `registry_arg` from its URL. Adjust command status expectations as necessary while preserving the assertions that the default store and pnpm home are not created; avoid `add_mocked_registry()` because its explicit store configuration would bypass the behavior under test.

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


Grey Divider

Context sources
✅ Compliance rules (platform): 64 rules
✅ Skills: review-code
✅ Cross-repo context — repo relationships
  Explored: repo: pnpm/pnpm.io (sha: 36ba7496)
Review mode: 🚀 Fast: This push only expands one localized Rust integration-test case table, with no runtime, security-sensitive, or performance-impacting logic changes.

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Finding overflow, which tucks the rest behind 'View more'

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 86406d5

Results up to commit a996fe6 ⚖️ Balanced


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


Informational
1. New registry cases bypass shared setup 📘 Rule violation ▣ Testability
Description
commands_without_store_access_do_not_modify_the_project_directory sends the six added registry
cases to a directly created mockito::Server instead of the registry starter exported by
pnpm-testing-utils. Each new case therefore bypasses the shared registry lifecycle and fixture
behavior that the repository provides for command tests.
Code

pnpm/crates/cli/tests/suite/store_placement.rs[R26-29]

+        (&["ping", &registry_arg], false),
+        (&["search", "nx", &registry_arg], false),
+        (&["dist-tag", "ls", "nx", &registry_arg], false),
+        (&["owner", "ls", "nx", &registry_arg], false),
Relevance

● Weak

Same raw mockito registry setup was explicitly rejected in PR #15373 for this exact test and
requirement.

PR-#15373

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 2254915 requires registry-interacting tests to use the mocked registry starter from
pnpm-testing-utils. The added command cases use the URL of a direct mockito::Server, while
pnpm-testing-utils already exports TestRegistry::start() for this purpose.

Rule 2254915: Use pnpm-testing-utils to start the mocked registry in tests
pnpm/crates/cli/tests/suite/store_placement.rs[11-31]
pnpm/crates/testing-utils/src/registry.rs[11-21]

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 added registry-command cases use a directly created `mockito::Server`, although registry tests are required to start their mock registry through `pnpm-testing-utils`.

## Fix Focus Areas
- pnpm/crates/cli/tests/suite/store_placement.rs[11-31]

## Recommended Fix
Replace the direct `mockito::Server` with `pnpm_testing_utils::registry::TestRegistry::start()` and build `registry_arg` from its URL. Adjust command status expectations as necessary while preserving the assertions that the default store and pnpm home are not created; avoid `add_mocked_registry()` because its explicit store configuration would bypass the behavior under test.

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


Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

Each of the 18 commands is its own match alternative, so each needs a
case that fails when it probes again. All 12 added commands fail fast
against the 404 registry, before any interactive prompt or browser.

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

zkochan commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

Replying to the Qodo finding "New registry cases bypass shared setup". I'm not acting on it, for the same reason as on #15373 (#15373 (comment)). These cases only need each command to load its config and then fail. A mockito server that answers 404 does that in about 100 ms per command, and tests/suite/view.rs uses the same approach. Starting pnpr would add a store-dir configuration that could hide the default-store probe this test exists to catch.


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

@zkochan

zkochan commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 86406d5

@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 23, 2026

Copy link
Copy Markdown
Member Author

Replying to the Qodo finding "Windows probe regressions lack coverage". I'm not acting on it, for the same reason as on #15373 (#15373 (comment)). The test's pnpm-home check isn't Unix-specific. The test sets PNPM_HOME, so on every platform the default store is <PNPM_HOME>/store. The probe creates a _tmp_ directory inside pnpm-home and removes only that directory, so pnpm-home is left behind on Windows too, and assert!(!root.path().join("pnpm-home").exists()) fails for any command that probes. This PR also changes no path or link handling. It only moves commands between match arms, and that code is the same on every platform.


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

@zkochan
zkochan merged commit 93e6ce6 into main Sep 23, 2026
56 checks passed
@zkochan
zkochan deleted the fix/registry-commands-skip-store-probe branch September 23, 2026 18:08
u9g pushed a commit to u9g/pnpm that referenced this pull request Sep 25, 2026
…5384)

The registry commands (`access`, `bugs`, `deprecate`, `dist-tag`, `docs`,
`login`, `logout`, `owner`, `ping`, `repo`, `search`, `star`, `stars`,
`team`, `undeprecate`, `unpublish`, `unstar`, `whoami`) only load their
config and talk to the registry. None runs the `updateConfig` hooks, so
none installs `configDependencies`, and none reads the store. Classify
them as `StoreUse::Never` so their config load no longer writes the
hardlink probe into the project directory.

`list`, `why`, `licenses`, `outdated` and the other dependency-graph
commands stay `Opens`: they read package metadata from the store.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants