Skip to content

fix(workspace): restore dot-directory pruning during discovery - #16252

Merged
zkochan merged 1 commit into
pnpm:mainfrom
cnZary:fix/workspace-dot-directory-pruning
Sep 27, 2026
Merged

zkochan merged 1 commit into
pnpm:mainfrom
cnZary:fix/workspace-dot-directory-pruning

Conversation

@cnZary

@cnZary cnZary commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Restores the dot-directory pruning that #15262 dropped from the generic workspace walk. A packages wildcard such as ** no longer discovers projects inside .cache and other hidden directories, and the walk no longer descends into a hidden directory that the pattern excludes.

Closes #16250.
Closes #3811.

Rust-only: pnpm v11 already prunes dot directories, so no v11 change is needed.

manifest_walk_ignores() returns the dot-pruning template only when the managed-directory list is empty. Discovery from the CLI always passes managed directories (node_modules, the virtual store, and so on), so the else branch rebuilt the walk ignores from IGNORE_PATTERNS, the positional dot ignores, and the managed ignores, and DOT_COMPONENT_IGNORE_PATTERN was left out. The fix keeps that pattern in the union whenever the include pattern does not name a dot component itself, the same rule the template path applies.

Testing

  • Reproduced before the fix with [email protected] and [email protected]: a workspace with packages: ["**"], pkgs/a, pkgs/b, and .cache/hidden/package.json; 12.7.0 lists .cache/hidden in pnpm -r list --depth -1, while 12.6.0 and 11.28.0 list only pkgs/a and pkgs/b.
  • New unit test skips_dot_directories_when_a_managed_directory_is_configured fails on the unfixed tree and passes with the fix.
  • pnpm test:rust -p pnpm-workspace: 114 tests passed.
  • End-to-end with a debug build of pnpm-cli: the fixture above lists only pkgs/a and pkgs/b. With a malformed manifest under .cache, [email protected] fails discovery with ERR_PNPM_PACKAGE_MANIFEST_SERIALIZATION_ERROR, while the fixed build and 12.6.0 succeed.
  • The repo's pre-push checks (rustfmt, workspace-wide clippy and cargo doc, typos) pass locally.

Squash Commit Body

manifest_walk_ignores rebuilt the walk ignores from IGNORE_PATTERNS,
the positional dot ignores, and the globs for the pnpm-managed
directories whenever a managed directory was configured, and dropped
DOT_COMPONENT_IGNORE_PATTERN from the union. Only the template path
kept the dot pruning, and discovery from the CLI always passes
managed directories, so the generic walk never reached it.

A wildcard such as `**` therefore matched packages inside `.cache`
and other dot-prefixed directories, and the walk descended into them
even when the pattern excluded the directory, so one malformed
manifest under an excluded hidden directory aborted discovery.

Keep DOT_COMPONENT_IGNORE_PATTERN in the rebuilt list whenever the
include pattern does not name a dot component itself, matching the
rule the template and the positional ignores already apply.

Closes pnpm/pnpm#16250.

Checklist

  • I checked the referenced issue and verified that none of the PRs already linked to it solves it.
  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes are implemented in every affected version.
  • 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 (Kimi Code).

Summary by CodeRabbit

  • Bug Fixes
    • Workspace discovery now skips projects inside dot-prefixed directories, such as .cache, when using the ** pattern. Regular projects and the workspace root continue to be discovered. This prevents hidden directories from being included in workspace results.

manifest_walk_ignores rebuilt the walk ignores from IGNORE_PATTERNS,
the positional dot ignores, and the globs for the pnpm-managed
directories whenever a managed directory was configured, and dropped
DOT_COMPONENT_IGNORE_PATTERN from the union. Only the template path
kept the dot pruning, and discovery from the CLI always passes
managed directories, so the generic walk never reached it.

A wildcard such as `**` therefore matched packages inside `.cache`
and other dot-prefixed directories, and the walk descended into them
even when the pattern excluded the directory, so one malformed
manifest under an excluded hidden directory aborted discovery.

Keep DOT_COMPONENT_IGNORE_PATTERN in the rebuilt list whenever the
include pattern does not name a dot component itself, matching the
rule the template and the positional ignores already apply.

Closes pnpm#16250.
@welcome

welcome Bot commented Sep 27, 2026

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Advanced

Run ID: 92498ded-688d-4764-b4c9-d37f989ecfc1

📥 Commits

Reviewing files that changed from the base of the PR and between 3a302fd and 1c55a94.

📒 Files selected for processing (3)
  • .changeset/restore-dot-directory-pruning.md
  • pnpm/crates/workspace/src/projects.rs
  • pnpm/crates/workspace/src/projects/tests/managed_directories.rs

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


📝 Walkthrough

Walkthrough

Workspace discovery now retains dot-directory pruning when managed directories are configured. A regression test checks that the ** pattern excludes a project under .cache, and a patch changeset records the fix.

Changes

Workspace discovery

Layer / File(s) Summary
Dot-directory pruning
pnpm/crates/workspace/src/projects.rs, pnpm/crates/workspace/src/projects/tests/managed_directories.rs, .changeset/restore-dot-directory-pruning.md
The walk-ignore list adds the generic dot-component pattern only when positional dot ignores are absent. A test checks that ** discovery excludes packages/.cache when node_modules is configured as a managed directory. The changeset records the patch.

Priority: ➖ Normal

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

Change: Bug fix · Severity of issue fixed: Medium

Assessment against linked issues

Objective Addressed Explanation
Keep dot-prefixed directories out of wildcard workspace discovery when managed directories are configured [#16250] ✅

Suggested labels: product: pacquet

Merge Risk: ⚪ Minimal · up to 1c55a

Wildcard workspace discovery excludes hidden directories while still allowing explicitly named dot components. No concrete merge-blocking risk remains.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 1c55a

The change restores exclusion of hidden directories from ordinary wildcard discovery. No new exposure was identified, but the effect on all downstream workspace operations was not established.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — For the tested wildcard and managed-directory configuration, the change narrows which filesystem content can enter workspace discovery and project membership; it does not expose a new caller or grant additional authority.

Trust Boundaries and Controls

  • observed — Ignore matching controls both descent into filesystem candidates and acceptance of candidates as workspace projects. The test-only range classified as a public entrypoint does not itself provide an attacker-facing entrypoint.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.09%. Comparing base (7379c95) to head (1c55a94).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16252      +/-   ##
==========================================
+ Coverage   92.07%   92.09%   +0.01%     
==========================================
  Files        1487     1489       +2     
  Lines      200527   201056     +529     
==========================================
+ Hits       184639   185154     +515     
- Misses      15888    15902      +14     

☔ 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

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 2554.91 ms 2430.44 ms -4.9% 127.75 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1495.58 ms 1415.29 ms -5.4% 74.78 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 231.18 ms 220.66 ms -4.6% 11.56 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr 238.52 ms 250.57 ms 5.1% 11.93 ms Inconclusive (overlapping samples)
isolated-repeat-install-hot-cache-hot-store pacquet 8.45 ms 14.85 ms 75.8% 2.00 ms Inconclusive (not reproduced)
isolated-repeat-install-hot-cache-hot-store pnpr 8.02 ms 7.87 ms -1.8% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 7.51 ms 7.41 ms -1.4% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 14.36 ms 7.78 ms -45.8% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2606.94 ms 2605.17 ms -0.1% 130.35 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr 1518.84 ms 1495.94 ms -1.5% 75.94 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 586.98 ms 604.03 ms 2.9% 29.35 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 353.17 ms 347.56 ms -1.6% 17.66 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet 1628.24 ms 1657.67 ms 1.8% 81.41 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 347.90 ms 305.34 ms -12.2% 17.40 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 330.17 ms 236.63 ms -28.3% 16.51 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 96.49 ms 108.44 ms 12.4% 4.82 ms Inconclusive (overlapping samples)
isolated-peer-heavy-resolve-hot-cache-offline pacquet 909.88 ms 856.94 ms -5.8% 45.49 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 217.36 ms 209.57 ms -3.6% 10.87 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4479.06 ms 4453.87 ms -0.6% 223.95 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3418.30 ms 3478.33 ms 1.8% 170.92 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 132.31 ms 130.26 ms -1.5% 6.62 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr 147.08 ms 130.90 ms -11.0% 7.35 ms Within tolerance

Integrated-Benchmark Report (Linux)

Commit: 1c55a94b5677

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.452 ± 0.111 2.322 2.614 1.71 ± 0.12
pacquet@main 2.564 ± 0.174 2.358 2.846 1.79 ± 0.16
pnpr@HEAD 1.433 ± 0.081 1.347 1.593 1.00
pnpr@main 1.537 ± 0.102 1.411 1.688 1.07 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.4518104091999997,
      "stddev": 0.11094202542378388,
      "median": 2.4304383257,
      "user": 1.51708124,
      "system": 1.6984696,
      "min": 2.3221783407,
      "max": 2.6144810157
    },
    {
      "command": "pacquet@main",
      "mean": 2.5643037744,
      "stddev": 0.17351262063244627,
      "median": 2.5549119202,
      "user": 1.73248934,
      "system": 2.0448239999999993,
      "min": 2.3576936517,
      "max": 2.8459559027
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4331091174000001,
      "stddev": 0.08115424116371937,
      "median": 1.4152858392,
      "user": 1.4799915399999999,
      "system": 1.7152353000000002,
      "min": 1.3472238047000002,
      "max": 1.5928102047000001
    },
    {
      "command": "pnpr@main",
      "mean": 1.5371036903,
      "stddev": 0.10184656245315724,
      "median": 1.4955830217000001,
      "user": 1.47603794,
      "system": 1.6660379999999997,
      "min": 1.4106975257,
      "max": 1.6875378027000003
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 218.6 ± 10.9 202.6 239.8 1.00
pacquet@main 233.2 ± 9.9 213.9 252.9 1.07 ± 0.07
pnpr@HEAD 249.6 ± 10.6 236.7 271.5 1.14 ± 0.07
pnpr@main 237.0 ± 8.3 221.2 247.1 1.08 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.21864767440000002,
      "stddev": 0.010877446570664922,
      "median": 0.2206635964,
      "user": 0.23446081999999996,
      "system": 0.52555052,
      "min": 0.2026280839,
      "max": 0.2398206139
    },
    {
      "command": "pacquet@main",
      "mean": 0.23316713490000002,
      "stddev": 0.009941940176632356,
      "median": 0.2311831769,
      "user": 0.25336682,
      "system": 0.58132202,
      "min": 0.2139309149,
      "max": 0.2528776589
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.24964469499999997,
      "stddev": 0.010600981195669747,
      "median": 0.2505735384,
      "user": 0.26535462,
      "system": 0.5739724199999999,
      "min": 0.2367100529,
      "max": 0.27153529890000005
    },
    {
      "command": "pnpr@main",
      "mean": 0.23704060869999996,
      "stddev": 0.008331616049699519,
      "median": 0.23852239190000002,
      "user": 0.24674161999999997,
      "system": 0.56029982,
      "min": 0.2212177869,
      "max": 0.2471221229
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 14.9 ± 2.2 7.5 20.7 1.87 ± 0.32
pacquet@main 8.6 ± 0.9 7.2 12.0 1.08 ± 0.14
pnpr@HEAD 8.0 ± 0.7 6.8 10.6 1.00
pnpr@main 8.1 ± 0.7 6.9 10.5 1.02 ± 0.12

Confirmation (reversed target order)

Command Mean [ms] Min [ms] Max [ms] Relative
pnpr@main 8.9 ± 0.6 7.4 11.0 1.14 ± 0.10
pnpr@HEAD 8.2 ± 0.6 6.9 12.1 1.05 ± 0.10
pacquet@main 7.8 ± 0.5 6.9 12.4 1.00
pacquet@HEAD 8.9 ± 2.5 7.0 19.5 1.14 ± 0.33
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.014929834160952378,
      "stddev": 0.0022197375907214148,
      "median": 0.01484732178,
      "user": 0.008461539047619048,
      "system": 0.0072833376190476196,
      "min": 0.0075040387800000006,
      "max": 0.02072907978
    },
    {
      "command": "pacquet@main",
      "mean": 0.00863453746918919,
      "stddev": 0.0008824784679835348,
      "median": 0.00844511478,
      "user": 0.004896986891891889,
      "system": 0.004259481486486483,
      "min": 0.00719826878,
      "max": 0.01200752478
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.007976594917380184,
      "stddev": 0.0006676160240546091,
      "median": 0.007871566780000002,
      "user": 0.004262164281150162,
      "system": 0.004142114440894568,
      "min": 0.006766089780000001,
      "max": 0.01055111878
    },
    {
      "command": "pnpr@main",
      "mean": 0.008135324400253177,
      "stddev": 0.0006540040689201281,
      "median": 0.00801803178,
      "user": 0.004197704177215191,
      "system": 0.004442801835443037,
      "min": 0.006932528780000001,
      "max": 0.01054028878
    }
  ],
  "confirmation": {
    "results": [
      {
        "command": "pnpr@main",
        "mean": 0.008930906397809179,
        "stddev": 0.0006087325953253689,
        "median": 0.008863729260000001,
        "user": 0.0049500466431095375,
        "system": 0.004504465017667845,
        "min": 0.007413119260000001,
        "max": 0.01101761826
      },
      {
        "command": "pnpr@HEAD",
        "mean": 0.008239390414340847,
        "stddev": 0.0005855469171947259,
        "median": 0.008202799260000001,
        "user": 0.004468808360128618,
        "system": 0.004226005466237942,
        "min": 0.006949249260000001,
        "max": 0.01211319926
      },
      {
        "command": "pacquet@main",
        "mean": 0.007845897983809523,
        "stddev": 0.0004646124866272727,
        "median": 0.00784326926,
        "user": 0.004458003174603175,
        "system": 0.003816268571428572,
        "min": 0.006945909260000001,
        "max": 0.01235163826
      },
      {
        "command": "pacquet@HEAD",
        "mean": 0.008936686080668697,
        "stddev": 0.002499069586955815,
        "median": 0.00812337026,
        "user": 0.0047363908814589606,
        "system": 0.0047061553191489304,
        "min": 0.006950449260000001,
        "max": 0.01954716826
      }
    ]
  }
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 7.5 ± 0.5 6.7 9.9 1.00
pacquet@main 7.7 ± 0.8 6.6 11.4 1.03 ± 0.13
pnpr@HEAD 7.9 ± 0.5 7.0 9.9 1.06 ± 0.09
pnpr@main 14.0 ± 2.7 7.7 20.2 1.87 ± 0.38
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.007462151083529414,
      "stddev": 0.00046117114559623555,
      "median": 0.007406060760000001,
      "user": 0.004553728382352942,
      "system": 0.0033268452941176466,
      "min": 0.0066992777600000004,
      "max": 0.00991108576
    },
    {
      "command": "pacquet@main",
      "mean": 0.007717971000677969,
      "stddev": 0.0008107944114785976,
      "median": 0.007511923760000001,
      "user": 0.0043536362711864415,
      "system": 0.0037957483389830502,
      "min": 0.006642571760000001,
      "max": 0.01136418376
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.007876616134149656,
      "stddev": 0.0005057232260929957,
      "median": 0.00777564826,
      "user": 0.004718664081632654,
      "system": 0.0036195697278911527,
      "min": 0.006991126760000001,
      "max": 0.009886349760000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.013961230841560285,
      "stddev": 0.0027397738215047453,
      "median": 0.014358297760000001,
      "user": 0.007919112482269501,
      "system": 0.006708597943262411,
      "min": 0.007650091760000002,
      "max": 0.02016517076
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.619 ± 0.052 2.586 2.763 1.69 ± 0.13
pacquet@main 2.610 ± 0.024 2.582 2.671 1.68 ± 0.13
pnpr@HEAD 1.550 ± 0.115 1.449 1.776 1.00
pnpr@main 1.572 ± 0.120 1.453 1.768 1.01 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6188584638199996,
      "stddev": 0.052168698062094086,
      "median": 2.6051654916199998,
      "user": 2.10713158,
      "system": 2.0315336,
      "min": 2.58574373962,
      "max": 2.76254823662
    },
    {
      "command": "pacquet@main",
      "mean": 2.61001654662,
      "stddev": 0.024471983489426984,
      "median": 2.6069437331199996,
      "user": 2.0891979800000002,
      "system": 1.9907124,
      "min": 2.58199750662,
      "max": 2.67110058562
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.54994259382,
      "stddev": 0.11492147706727408,
      "median": 1.49594160262,
      "user": 1.33106188,
      "system": 1.5590351,
      "min": 1.44869080862,
      "max": 1.7756311016200002
    },
    {
      "command": "pnpr@main",
      "mean": 1.5723179612200002,
      "stddev": 0.11961147890884766,
      "median": 1.51883823512,
      "user": 1.34410618,
      "system": 1.6428698999999998,
      "min": 1.45278645562,
      "max": 1.7681337616200001
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 605.3 ± 22.0 575.7 645.8 1.75 ± 0.08
pacquet@main 589.8 ± 19.5 560.2 618.2 1.70 ± 0.08
pnpr@HEAD 346.6 ± 10.5 325.3 359.8 1.00
pnpr@main 357.2 ± 8.0 350.7 374.8 1.03 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6052815597200001,
      "stddev": 0.02199612294312429,
      "median": 0.6040253062200001,
      "user": 0.7908174599999999,
      "system": 1.0605398199999998,
      "min": 0.5757128867200001,
      "max": 0.64575646072
    },
    {
      "command": "pacquet@main",
      "mean": 0.5897856625200001,
      "stddev": 0.019538087464894556,
      "median": 0.58698487322,
      "user": 0.79298706,
      "system": 1.02829222,
      "min": 0.5601858207200001,
      "max": 0.61824783672
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.34656493922,
      "stddev": 0.010509678161931723,
      "median": 0.34756295272000004,
      "user": 0.30286695999999996,
      "system": 0.74598642,
      "min": 0.32526763872,
      "max": 0.35977276472
    },
    {
      "command": "pnpr@main",
      "mean": 0.35719696142,
      "stddev": 0.008012455819538867,
      "median": 0.35316630072,
      "user": 0.32383116,
      "system": 0.7747502199999999,
      "min": 0.35073240972,
      "max": 0.37476093172
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.702 ± 0.112 1.624 1.949 5.51 ± 0.49
pacquet@main 1.630 ± 0.032 1.571 1.677 5.28 ± 0.33
pnpr@HEAD 0.309 ± 0.019 0.285 0.352 1.00
pnpr@main 0.333 ± 0.030 0.290 0.377 1.08 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.70167836796,
      "stddev": 0.11225374375359888,
      "median": 1.65766786596,
      "user": 0.97751356,
      "system": 0.96826636,
      "min": 1.62435518396,
      "max": 1.94929767796
    },
    {
      "command": "pacquet@main",
      "mean": 1.63002651766,
      "stddev": 0.03209452491427181,
      "median": 1.6282414309599997,
      "user": 0.87185136,
      "system": 0.7854130599999999,
      "min": 1.57076349796,
      "max": 1.6765276279599999
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30870948156000005,
      "stddev": 0.018612481775984662,
      "median": 0.30533826646000006,
      "user": 0.26993725999999996,
      "system": 0.57935936,
      "min": 0.28476457496,
      "max": 0.35164460696000005
    },
    {
      "command": "pnpr@main",
      "mean": 0.33326695376000004,
      "stddev": 0.030482409499348564,
      "median": 0.34790309696000005,
      "user": 0.28638956000000004,
      "system": 0.6568280599999999,
      "min": 0.28958362096,
      "max": 0.37733133096000004
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 249.5 ± 32.2 218.0 326.9 2.56 ± 0.37
pacquet@main 329.0 ± 12.5 308.3 345.4 3.38 ± 0.25
pnpr@HEAD 109.6 ± 3.0 104.3 116.0 1.13 ± 0.08
pnpr@main 97.4 ± 6.1 89.1 113.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.24945023332,
      "stddev": 0.03218970790096994,
      "median": 0.23663385732000003,
      "user": 0.23822566000000003,
      "system": 0.08992354,
      "min": 0.21795555832000002,
      "max": 0.32692803432
    },
    {
      "command": "pacquet@main",
      "mean": 0.32901392982000005,
      "stddev": 0.012520577961982807,
      "median": 0.33017215632,
      "user": 0.31281106,
      "system": 0.12327804,
      "min": 0.30825340032000004,
      "max": 0.34542484232000004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10960968871999999,
      "stddev": 0.003036942364276033,
      "median": 0.10843919032,
      "user": 0.044767280000000007,
      "system": 0.020716159999999997,
      "min": 0.10431256632000001,
      "max": 0.11599519932
    },
    {
      "command": "pnpr@main",
      "mean": 0.09738821176,
      "stddev": 0.006057944546987279,
      "median": 0.09648721232,
      "user": 0.035824,
      "system": 0.017536519999999996,
      "min": 0.08911239332,
      "max": 0.11328043532
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 860.9 ± 120.8 593.7 1049.3 1.00
pacquet@main 870.9 ± 122.2 593.3 983.8 1.01 ± 0.20
pnpm@HEAD 3065.0 ± 109.8 2924.9 3223.6 3.56 ± 0.52
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.8608816206066668,
      "stddev": 0.12076053471209912,
      "median": 0.85694302994,
      "user": 0.886794928888889,
      "system": 0.30407942,
      "min": 0.59369479394,
      "max": 1.0493422859400001
    },
    {
      "command": "pacquet@main",
      "mean": 0.8708609816066666,
      "stddev": 0.12216918889089405,
      "median": 0.90988145894,
      "user": 0.8868594844444444,
      "system": 0.2729045311111111,
      "min": 0.5933077249400001,
      "max": 0.9837544219400001
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.0650232216066673,
      "stddev": 0.10976893700479977,
      "median": 3.11484380994,
      "user": 4.821854373333332,
      "system": 0.21219997555555553,
      "min": 2.92487101094,
      "max": 3.22355485294
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 209.7 ± 4.9 201.1 217.0 1.00
pacquet@main 218.3 ± 7.5 207.7 229.8 1.04 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.2097110909676923,
      "stddev": 0.004879722192567123,
      "median": 0.20957174766,
      "user": 0.17598327692307691,
      "system": 0.0730168076923077,
      "min": 0.20105192666,
      "max": 0.21698601166
    },
    {
      "command": "pacquet@main",
      "mean": 0.21830123066,
      "stddev": 0.007475688534897828,
      "median": 0.21736355466,
      "user": 0.18355527692307694,
      "system": 0.07694880769230769,
      "min": 0.20768274366,
      "max": 0.22977531766
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.490 ± 0.179 4.276 4.851 1.31 ± 0.06
pacquet@main 4.480 ± 0.151 4.314 4.762 1.31 ± 0.05
pnpr@HEAD 3.468 ± 0.091 3.357 3.607 1.01 ± 0.03
pnpr@main 3.429 ± 0.057 3.363 3.531 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.49003438464,
      "stddev": 0.17875573268279607,
      "median": 4.453865710740001,
      "user": 1.47769934,
      "system": 1.4978767400000002,
      "min": 4.27630825974,
      "max": 4.85053565774
    },
    {
      "command": "pacquet@main",
      "mean": 4.48023503574,
      "stddev": 0.15097620335650508,
      "median": 4.47905598424,
      "user": 1.44332464,
      "system": 1.3571840399999997,
      "min": 4.31443749574,
      "max": 4.761673985740001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.46825369324,
      "stddev": 0.09067644847741259,
      "median": 3.47832870274,
      "user": 1.28002334,
      "system": 1.3571721399999999,
      "min": 3.3567795007399996,
      "max": 3.6071403307399996
    },
    {
      "command": "pnpr@main",
      "mean": 3.4291017985399996,
      "stddev": 0.05683509683473159,
      "median": 3.4183047222400003,
      "user": 1.32706604,
      "system": 1.3180361399999998,
      "min": 3.36317396474,
      "max": 3.5314625127399997
    }
  ]
}

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 131.4 ± 5.0 125.3 144.2 1.00
pacquet@main 133.6 ± 11.8 113.2 160.1 1.02 ± 0.10
pnpr@HEAD 133.2 ± 9.2 122.2 154.4 1.01 ± 0.08
pnpr@main 147.2 ± 2.7 141.8 151.8 1.12 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.13135646879999996,
      "stddev": 0.004970921494558769,
      "median": 0.13026290540000002,
      "user": 0.15858018000000002,
      "system": 0.14719260999999995,
      "min": 0.12532045590000002,
      "max": 0.1442459099
    },
    {
      "command": "pacquet@main",
      "mean": 0.13357008221578948,
      "stddev": 0.01179871819796059,
      "median": 0.1323122099,
      "user": 0.15904210105263158,
      "system": 0.1450890231578947,
      "min": 0.1132344089,
      "max": 0.1601057969
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.13315021595,
      "stddev": 0.00921413554915481,
      "median": 0.1309019019,
      "user": 0.15402138,
      "system": 0.13110050999999998,
      "min": 0.1221512909,
      "max": 0.1543877429
    },
    {
      "command": "pnpr@main",
      "mean": 0.14719164001111112,
      "stddev": 0.0026524790293542817,
      "median": 0.14707893789999998,
      "user": 0.1774185688888889,
      "system": 0.14344992666666667,
      "min": 0.1417723229,
      "max": 0.1518413389
    }
  ]
}

@cnZary
cnZary marked this pull request as ready for review September 27, 2026 08:29
@cnZary
cnZary requested a review from zkochan as a code owner September 27, 2026 08:29
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Sep 27, 2026
@zkochan
zkochan merged commit 66cc12f into pnpm:main Sep 27, 2026
52 checks passed
@welcome

welcome Bot commented Sep 27, 2026

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

zkochan added a commit that referenced this pull request Sep 27, 2026
…#16254)

The dot-pruning unit tests called discovery with no managed
directories, so they only exercised the prebuilt ignore template.
The CLI always passes managed directories, which sends every walk
through the rebuilt ignore list instead. #15262 dropped the
dot-component pattern from that list and every test still passed,
which is how #16250 shipped in 12.7.0.

find_project_names now discovers with and without a managed
directory and asserts both give the same projects, so every case
that goes through it covers both ignore lists. Both lists are now
built by compile_walk_ignores, so the rule that adds the dot-component
pattern lives in one place. A CLI test runs `pnpm -r run` over a
`**` workspace with a project under `.cache`.

Reverting #16252 fails the CLI test and the existing
dot-pruning unit tests.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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 state: automerge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm 12.7.0 discovers packages inside dot directories again Symlink dot dirs exclude pattern in pnpm-workspace.yaml doesn't work

3 participants