Skip to content

test(cli): run nine Windows-excluded e2e suites on Windows - #15097

Merged
zkochan merged 8 commits into
mainfrom
fix-15089
Sep 19, 2026
Merged

zkochan merged 8 commits into
mainfrom
fix-15089

Conversation

@zkochan

@zkochan zkochan commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Nine of the fourteen files under pnpm/crates/cli/tests/suite/ that carried a
file-level #![cfg(unix)] now compile and run on the Windows CI job, together
with the two pnpm-differential tests in root.rs and bin.rs that carried a
Windows ignore. That is 104 end-to-end tests that had no Windows
coverage at all, including the repeat-install and side-effects-cache suites the
issue calls out: slot repair, reuse, drift, and cached build output over an
existing node_modules.

The "program not found" the gates blame turned out to be about how pnpm used to
be installed on the runner, not about the tests. pacquet's own CI installed pnpm
through npm, which on Windows is a pnpm.cmd shim; Windows resolves a bare
program name against .exe alone, so the spawn failed. The workflows have used
pnpm/setup since #11589, and that action downloads pnpm's native
pnpm.exe. Nothing else in those files is unix-specific.

Five files stay gated and each now says why in its module docs. interrupt.rs
sends POSIX signals; run_recursive.rs and exec_recursive.rs put POSIX shell
bodies in nearly every package script; global_virtual_store.rs and
hoisted_node_linker.rs assert layouts shaped around symlinks. Un-gating those
is the remainder of the issue.

Running them on Windows turned up five real differences. Four are fixed here,
narrowed to the assertion rather than the file:

  • hoist::should_add_extra_node_paths_to_command_shims asserted the shim names
    the hoisted modules dir relative to itself. generate_sh_shim writes that
    relative form only inside a relocatable root outside Windows; there it writes
    the absolute path, so the entry is present under a different spelling.
  • multiple_importers::recursive_install_builds_workspace_projects_in_correct_order
    wrote its separator as \n inside a node -e body. sh -c unescapes the
    backslash before Node sees it and cmd /d /s /c passes it through, so the two
    platforms handed Node different programs.
  • repeat_install::reinstalls_missing_packages_during_headless_install dropped a
    link with fs::remove_file. That link is a junction on Windows, and
    DeleteFileW refuses a directory-shaped reparse point.
  • The same test then searched the NDJSON stream for the raw path it had removed.
    The stream is JSON, so the separators arrive escaped, and the temporary
    directory arrives in its 8.3 short form (RUNNER~1) while the reporter names
    the long one.

Two tests are skipped on Windows because what they assert does not hold there
yet, and each records what was seen:

  • pipeline_watch::watch_agent_builds_new_revisions_and_skips_quiet_ticks: the
    tick reports the revision built and passed, and the checkout holds no task
    output afterwards.
  • pipeline_cargo_cache::cargo_state_is_shared_between_worktrees_and_survives_cache_deletion:
    the second worktree recompiles instead of restoring the shared Cargo build
    state. That run places the cache under the 8.3 short form of the temporary
    directory while the worktree carries the long one.

Those two look like Windows gaps in the pipeline feature rather than test
problems, so they are tracked in #15105 and both skips name it.

Rust CI / Test / windows now runs all 10013 tests and passes, as do ubuntu and
macOS.

Related to #15089.

Squash Commit Body

Nine files under `crates/cli/tests/suite/` carried a file-level
`#![cfg(unix)]`, and the two `pnpm`-differential tests in `root.rs` and
`bin.rs` carried a Windows `ignore`, so none of them ever compiled or ran
on the Windows CI job.

Four of the gates blamed "program not found" on spawning the external
`pnpm`. That dates from pacquet's own CI, which installed pnpm through
npm as a `pnpm.cmd` shim: Windows resolves a bare program name against
`.exe` alone, so the spawn failed. The workflows have installed pnpm
through `pnpm/setup` since 2026-05, and that action downloads pnpm's
native `pnpm.exe`, which resolves. Nothing in those four files is
unix-specific beyond the spawn.

The other gates were harness details rather than platform behavior:

- `repeat_install.rs` compared inode numbers to tell a file the install
  reused from one it replaced. It now takes a hard link as a witness and
  compares with `same_file`, which answers the same question on both
  platforms.
- `multiple_importers.rs` asserted the executable bit on a linked bin.
  `bundled_dependencies.rs` already had a helper that checks the bit on
  Unix and the `.cmd` / `.ps1` launchers on Windows; it moves to the
  shared test utils and both files call it.
- `pnpx_alias.rs` copied the binary under a name with no `.exe` suffix.
- `ignore_workspace.rs` ran `pwd`, and `pipeline_watch.rs` ran `mkdir -p`
  and `cp`, from a package script. Both now use `node -e`, as
  `pipeline_cache.rs` already did.
- `pipeline_cargo_cache.rs` ran its built probe binary by a path with no
  `.exe` suffix.

Five files stay gated, each with a comment saying why: `interrupt.rs`
sends POSIX signals, `run_recursive.rs` and `exec_recursive.rs` put POSIX
shell bodies in nearly every package script, and
`global_virtual_store.rs` and `hoisted_node_linker.rs` assert layouts
shaped around symlinks. Un-gating those is the remainder of
pnpm/pnpm#15089.

Related to pnpm/pnpm#15089.

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 or updated tests.

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

@coderabbitai

coderabbitai Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

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

Review profile: CHILL

Plan: Advanced

Run ID: cc2f9673-3a0a-4cb5-83dc-2e1b5c42e28a

📥 Commits

Reviewing files that changed from the base of the PR and between 48c73e3 and 99e7d9b.

📒 Files selected for processing (2)
  • pnpm/crates/cli/tests/suite/pipeline_cargo_cache.rs
  • pnpm/crates/cli/tests/suite/pipeline_watch.rs
 __________________________________________________________
< Your types are so loose they're in an open relationship. >
 ----------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).

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: f12aac09-15e3-4f0b-a671-098d43dc5a2e

📥 Commits

Reviewing files that changed from the base of the PR and between b109487 and 48c73e3.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock, !Cargo.lock
📒 Files selected for processing (16)
  • pnpm/crates/cli/tests/suite/_utils/mod.rs
  • pnpm/crates/cli/tests/suite/bin.rs
  • pnpm/crates/cli/tests/suite/bundled_dependencies.rs
  • pnpm/crates/cli/tests/suite/hoist.rs
  • pnpm/crates/cli/tests/suite/ignore_workspace.rs
  • pnpm/crates/cli/tests/suite/interrupt.rs
  • pnpm/crates/cli/tests/suite/multiple_importers.rs
  • pnpm/crates/cli/tests/suite/pipeline_cargo_cache.rs
  • pnpm/crates/cli/tests/suite/pipeline_watch.rs
  • pnpm/crates/cli/tests/suite/pnpm_compatibility.rs
  • pnpm/crates/cli/tests/suite/pnpx_alias.rs
  • pnpm/crates/cli/tests/suite/repeat_install.rs
  • pnpm/crates/cli/tests/suite/root.rs
  • pnpm/crates/cli/tests/suite/side_effects_cache.rs
  • pnpm/crates/testing-utils/Cargo.toml
  • pnpm/crates/testing-utils/src/fs.rs
💤 Files with no reviewable changes (3)
  • pnpm/crates/cli/tests/suite/side_effects_cache.rs
  • pnpm/crates/cli/tests/suite/root.rs
  • pnpm/crates/cli/tests/suite/pnpm_compatibility.rs

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


📝 Walkthrough

Walkthrough

The CLI integration suites now compile and run on more platforms. Shared helpers handle platform-specific bin shims and physical-file checks. Unix-specific commands, gates, and executable assumptions were replaced with cross-platform behavior.

Changes

Cross-platform CLI tests

Layer / File(s) Summary
Shared platform helpers
pnpm/crates/cli/tests/suite/_utils/mod.rs, pnpm/crates/testing-utils/*, pnpm/crates/testing-utils/Cargo.toml
Shared helpers are available on all platforms. assert_bin_linked validates Unix executability or Windows launcher files. SameFileWitness tracks physical file identity with hard links.
CLI suite portability
pnpm/crates/cli/tests/suite/bin.rs, bundled_dependencies.rs, hoist.rs, ignore_workspace.rs, multiple_importers.rs, pnpm_compatibility.rs, pnpx_alias.rs, root.rs, side_effects_cache.rs
The suites remove Unix-only gates and Windows skips. Tests use platform-specific paths, executable suffixes, Node.js commands, and shared bin-shim assertions.
Pipeline and process test portability
pnpm/crates/cli/tests/suite/interrupt.rs, pipeline_cargo_cache.rs, pipeline_watch.rs
Pipeline tests use platform-specific executable names and Node.js filesystem commands. Windows-specific skips remain where behavior depends on Unix cache or signal semantics.
Repeat-install integrity checks
pnpm/crates/cli/tests/suite/repeat_install.rs
Repeat-install tests replace inode checks with SameFileWitness, use cross-platform directory-entry removal, and validate escaped JSON paths.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Suggested labels: product: pacquet

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • 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.

@github-actions

github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     10.9±0.38ms    34.3 MB/sec    1.00     10.9±0.18ms    34.4 MB/sec
packument/parse                                  1.00     38.2±0.55µs  1736.2 MB/sec    1.00     38.3±0.46µs  1734.1 MB/sec
tarball/download_dependency                      1.00      4.7±0.19ms   917.6 KB/sec    1.00      4.7±0.11ms   917.0 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    168.8±1.18ms 94.8 KElem/sec    1.01    170.5±1.03ms 93.9 KElem/sec
workspace_resolution/hoist_heavy                 1.00    229.6±4.17ms        ? ?/sec    1.00    230.5±1.78ms        ? ?/sec
workspace_sort/chained_projects                  1.00     12.0±0.41ms        ? ?/sec    1.01     12.0±0.62ms        ? ?/sec

@github-actions

github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 48c73e3651e6

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

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

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.362 ± 0.166 2.202 2.626 1.67 ± 0.21
pacquet@main 2.337 ± 0.121 2.217 2.515 1.66 ± 0.19
pnpr@HEAD 1.410 ± 0.142 1.268 1.653 1.00
pnpr@main 1.452 ± 0.144 1.294 1.673 1.03 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.3617932684000005,
      "stddev": 0.16582814445816027,
      "median": 2.291752731,
      "user": 1.2582231599999998,
      "system": 1.4382282,
      "min": 2.2017354984999997,
      "max": 2.6256916465
    },
    {
      "command": "pacquet@main",
      "mean": 2.3366052953999996,
      "stddev": 0.1210673515082938,
      "median": 2.2782240455,
      "user": 1.16692926,
      "system": 1.3705554,
      "min": 2.2174721524999996,
      "max": 2.5154901124999998
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4103466564,
      "stddev": 0.1422510503486389,
      "median": 1.36199257,
      "user": 1.1020192599999998,
      "system": 1.2287075,
      "min": 1.2679275745,
      "max": 1.6533997715
    },
    {
      "command": "pnpr@main",
      "mean": 1.4519600323000001,
      "stddev": 0.14412520679740418,
      "median": 1.4428699790000001,
      "user": 1.06807346,
      "system": 1.305801,
      "min": 1.2936852385,
      "max": 1.6729437555000002
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 209.3 ± 7.0 194.7 218.8 1.08 ± 0.05
pacquet@main 193.2 ± 6.8 185.8 205.9 1.00
pnpr@HEAD 225.4 ± 10.9 209.7 251.6 1.17 ± 0.07
pnpr@main 232.2 ± 5.7 224.5 244.5 1.20 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.20925779678000006,
      "stddev": 0.00698068154612049,
      "median": 0.20897136948,
      "user": 0.23042672000000003,
      "system": 0.51084162,
      "min": 0.19472230148,
      "max": 0.21878444948
    },
    {
      "command": "pacquet@main",
      "mean": 0.19320794328000002,
      "stddev": 0.006843911668082918,
      "median": 0.19219978648,
      "user": 0.20705942,
      "system": 0.46228191999999996,
      "min": 0.18580869348,
      "max": 0.20594160848
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.22542857208,
      "stddev": 0.010931163246086374,
      "median": 0.22362841348,
      "user": 0.24097792,
      "system": 0.52569512,
      "min": 0.20965528548,
      "max": 0.25162497248000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.23217886008000002,
      "stddev": 0.005693828438876392,
      "median": 0.23065382448000002,
      "user": 0.24623042,
      "system": 0.54508272,
      "min": 0.22453485848000002,
      "max": 0.24449973848
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 13.0 ± 2.2 8.7 21.7 1.21 ± 0.25
pacquet@main 12.3 ± 2.2 8.6 19.1 1.15 ± 0.24
pnpr@HEAD 11.1 ± 1.6 7.5 19.6 1.04 ± 0.19
pnpr@main 10.8 ± 1.3 7.6 14.4 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.01299604345777778,
      "stddev": 0.002188695670326312,
      "median": 0.012637993,
      "user": 0.007749873333333335,
      "system": 0.006120904888888886,
      "min": 0.008655205,
      "max": 0.021696240000000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.01234795800613497,
      "stddev": 0.002175293929832602,
      "median": 0.01209825,
      "user": 0.006826888957055218,
      "system": 0.006380026993865028,
      "min": 0.008633105,
      "max": 0.019060027
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.01113123694833948,
      "stddev": 0.0016433683144197568,
      "median": 0.010936071,
      "user": 0.006279370110701105,
      "system": 0.005585370479704795,
      "min": 0.007483597,
      "max": 0.019550652
    },
    {
      "command": "pnpr@main",
      "mean": 0.010750829630252099,
      "stddev": 0.0012502512532738808,
      "median": 0.0107320485,
      "user": 0.006269573109243696,
      "system": 0.005223340336134453,
      "min": 0.0076226160000000005,
      "max": 0.014414595
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 6.3 ± 0.4 5.5 8.4 1.03 ± 0.09
pacquet@main 6.2 ± 0.4 5.5 8.0 1.01 ± 0.09
pnpr@HEAD 6.2 ± 0.3 5.5 7.4 1.01 ± 0.08
pnpr@main 6.1 ± 0.4 5.2 7.9 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.006325722190909087,
      "stddev": 0.0003516516444028924,
      "median": 0.0062901313,
      "user": 0.003807410909090912,
      "system": 0.00297710429090909,
      "min": 0.0055435963,
      "max": 0.0084489703
    },
    {
      "command": "pacquet@main",
      "mean": 0.0061884338884058,
      "stddev": 0.0003513927340777528,
      "median": 0.0061497663,
      "user": 0.0036576660869565253,
      "system": 0.002975918724637681,
      "min": 0.0054619723,
      "max": 0.007994837300000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.006203359821126757,
      "stddev": 0.0002927723271679657,
      "median": 0.0061912533,
      "user": 0.00377900056338028,
      "system": 0.002869287887323945,
      "min": 0.0054842253,
      "max": 0.0073509163
    },
    {
      "command": "pnpr@main",
      "mean": 0.006131251291689749,
      "stddev": 0.00040021758144114216,
      "median": 0.0061406593,
      "user": 0.0038986926315789485,
      "system": 0.002652392354570638,
      "min": 0.0052164313,
      "max": 0.0079147763
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.493 ± 0.028 2.453 2.531 1.72 ± 0.14
pacquet@main 2.482 ± 0.028 2.437 2.514 1.71 ± 0.14
pnpr@HEAD 1.458 ± 0.082 1.373 1.606 1.00 ± 0.10
pnpr@main 1.452 ± 0.116 1.365 1.699 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.49302297846,
      "stddev": 0.0281378595641209,
      "median": 2.49067424416,
      "user": 2.02107278,
      "system": 1.67112666,
      "min": 2.45317008616,
      "max": 2.53135626716
    },
    {
      "command": "pacquet@main",
      "mean": 2.48164196916,
      "stddev": 0.027889678126162228,
      "median": 2.49087844566,
      "user": 2.0014839799999997,
      "system": 1.64696846,
      "min": 2.4365176561600004,
      "max": 2.5136918561600003
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4575121328600003,
      "stddev": 0.08186032526481742,
      "median": 1.4365495996600002,
      "user": 1.2201703799999999,
      "system": 1.26216986,
      "min": 1.37286483016,
      "max": 1.60629817616
    },
    {
      "command": "pnpr@main",
      "mean": 1.45215787306,
      "stddev": 0.11616746272033891,
      "median": 1.3953612901599999,
      "user": 1.23908188,
      "system": 1.2277727600000001,
      "min": 1.36516118316,
      "max": 1.69903350716
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 321.6 ± 16.7 294.5 355.0 1.27 ± 0.07
pacquet@main 421.1 ± 114.0 306.7 596.5 1.66 ± 0.45
pnpr@HEAD 253.3 ± 7.0 244.7 265.3 1.00
pnpr@main 253.8 ± 5.0 248.8 267.1 1.00 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.32160873276000007,
      "stddev": 0.01665077125260178,
      "median": 0.32341366196000004,
      "user": 0.47182117999999995,
      "system": 0.7151573,
      "min": 0.29453617196000004,
      "max": 0.35503556396
    },
    {
      "command": "pacquet@main",
      "mean": 0.42109332446000003,
      "stddev": 0.11395498546601852,
      "median": 0.40386450846000005,
      "user": 0.67330188,
      "system": 0.9587358,
      "min": 0.30665020096000006,
      "max": 0.59652309096
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.25326154876,
      "stddev": 0.006964972879477944,
      "median": 0.25161078046,
      "user": 0.19442177999999996,
      "system": 0.45313679999999995,
      "min": 0.24466599696000002,
      "max": 0.26525549896000006
    },
    {
      "command": "pnpr@main",
      "mean": 0.25380227886,
      "stddev": 0.005035438002778617,
      "median": 0.25369296846,
      "user": 0.19663157999999997,
      "system": 0.4619013999999999,
      "min": 0.24883734896,
      "max": 0.26706639896000006
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.552 ± 0.019 1.520 1.581 5.84 ± 0.23
pacquet@main 1.548 ± 0.020 1.521 1.585 5.82 ± 0.23
pnpr@HEAD 0.266 ± 0.010 0.249 0.284 1.00
pnpr@main 0.273 ± 0.006 0.266 0.283 1.03 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.55215216386,
      "stddev": 0.019415275887443476,
      "median": 1.55244556166,
      "user": 0.81965676,
      "system": 0.9228588800000003,
      "min": 1.52045350916,
      "max": 1.58096959116
    },
    {
      "command": "pacquet@main",
      "mean": 1.54826436516,
      "stddev": 0.019601105770648726,
      "median": 1.5478139626599998,
      "user": 0.81664976,
      "system": 0.9069731799999999,
      "min": 1.52089537116,
      "max": 1.5849342361599998
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.26599557735999996,
      "stddev": 0.01015325833152152,
      "median": 0.26729179066000003,
      "user": 0.22421185999999999,
      "system": 0.49282948000000004,
      "min": 0.24859860716000004,
      "max": 0.28444923016
    },
    {
      "command": "pnpr@main",
      "mean": 0.27265815616,
      "stddev": 0.006092362434383102,
      "median": 0.27103036366000005,
      "user": 0.22116776,
      "system": 0.51460678,
      "min": 0.26565531116,
      "max": 0.28338992416000003
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 267.4 ± 28.4 222.6 317.5 2.98 ± 0.33
pacquet@main 266.3 ± 48.6 209.5 350.3 2.96 ± 0.55
pnpr@HEAD 92.3 ± 3.1 87.5 100.3 1.03 ± 0.05
pnpr@main 89.9 ± 2.9 86.1 96.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.26742813950000005,
      "stddev": 0.02838533192418292,
      "median": 0.26291200560000005,
      "user": 0.28934468,
      "system": 0.08296282,
      "min": 0.2225993971,
      "max": 0.31751861010000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.26625717,
      "stddev": 0.04856554262877189,
      "median": 0.2598839101,
      "user": 0.28059368000000007,
      "system": 0.08399532,
      "min": 0.20953076110000002,
      "max": 0.35032094710000006
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09229812430689657,
      "stddev": 0.0030747103555474886,
      "median": 0.0919752991,
      "user": 0.03356170758620689,
      "system": 0.013846713103448274,
      "min": 0.0875369261,
      "max": 0.1002719261
    },
    {
      "command": "pnpr@main",
      "mean": 0.08986123588125,
      "stddev": 0.0028822333394648925,
      "median": 0.0886189421,
      "user": 0.03176803625,
      "system": 0.012498706249999998,
      "min": 0.0861312961,
      "max": 0.0968088741
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 728.1 ± 115.0 449.7 822.4 1.01 ± 0.19
pacquet@main 719.2 ± 71.6 609.1 804.1 1.00
pnpm@HEAD 3155.5 ± 125.9 2909.5 3314.6 4.39 ± 0.47
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.7281293219577779,
      "stddev": 0.1149746963792472,
      "median": 0.76976604518,
      "user": 0.7501481177777776,
      "system": 0.16182353333333335,
      "min": 0.44968374218000007,
      "max": 0.82240601518
    },
    {
      "command": "pacquet@main",
      "mean": 0.7192198472911111,
      "stddev": 0.07164574104197521,
      "median": 0.7350133961800001,
      "user": 0.7545205622222221,
      "system": 0.1500470888888889,
      "min": 0.60905328818,
      "max": 0.8040556921800001
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.155513013957778,
      "stddev": 0.12588274697529206,
      "median": 3.1696676201800003,
      "user": 4.926432895555556,
      "system": 0.21992331111111108,
      "min": 2.90945764118,
      "max": 3.31460908818
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 186.4 ± 25.0 164.8 230.9 1.02 ± 0.14
pacquet@main 183.5 ± 5.8 176.6 193.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.18642239621647058,
      "stddev": 0.024990876120134033,
      "median": 0.17378376104,
      "user": 0.1329874011764706,
      "system": 0.09250833176470585,
      "min": 0.16482464904000002,
      "max": 0.23085195104
    },
    {
      "command": "pacquet@main",
      "mean": 0.18346646844,
      "stddev": 0.005830437709517583,
      "median": 0.18094106304000002,
      "user": 0.13975912666666668,
      "system": 0.08573338666666666,
      "min": 0.17659776704000002,
      "max": 0.19333053904
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.466 ± 0.172 4.319 4.808 1.31 ± 0.05
pacquet@main 4.467 ± 0.139 4.326 4.693 1.32 ± 0.04
pnpr@HEAD 3.507 ± 0.117 3.390 3.721 1.03 ± 0.04
pnpr@main 3.397 ± 0.026 3.367 3.453 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.4660617409,
      "stddev": 0.1720493354328917,
      "median": 4.3771831233,
      "user": 1.61031068,
      "system": 1.63767396,
      "min": 4.3185639047999995,
      "max": 4.8083314628
    },
    {
      "command": "pacquet@main",
      "mean": 4.466644078100001,
      "stddev": 0.13905720495751325,
      "median": 4.4198651733,
      "user": 1.6180991799999997,
      "system": 1.6495604600000005,
      "min": 4.3264728028,
      "max": 4.6928631278
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5074826254,
      "stddev": 0.11707354448709441,
      "median": 3.4575080593000003,
      "user": 1.4034463799999997,
      "system": 1.45797496,
      "min": 3.3904767578,
      "max": 3.7213166028000004
    },
    {
      "command": "pnpr@main",
      "mean": 3.3965285737000004,
      "stddev": 0.025889866359733688,
      "median": 3.3904242903000004,
      "user": 1.35573708,
      "system": 1.51524406,
      "min": 3.3668091488000003,
      "max": 3.4527144008
    }
  ]
}

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 109.2 ± 3.4 103.8 118.1 1.03 ± 0.06
pacquet@main 105.6 ± 5.0 97.4 119.5 1.00
pnpr@HEAD 122.2 ± 4.0 114.8 132.1 1.16 ± 0.07
pnpr@main 118.9 ± 4.1 109.4 127.6 1.13 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.1092131581278261,
      "stddev": 0.0033914744882303912,
      "median": 0.10867599278000001,
      "user": 0.13575167565217391,
      "system": 0.12737556869565217,
      "min": 0.10378391678000001,
      "max": 0.11808792678
    },
    {
      "command": "pacquet@main",
      "mean": 0.1055792389466667,
      "stddev": 0.0050159313912105105,
      "median": 0.10514512328,
      "user": 0.13444439666666666,
      "system": 0.11586416833333331,
      "min": 0.09743488778,
      "max": 0.11947708178000001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.12221418941636367,
      "stddev": 0.004046558766957195,
      "median": 0.12167425478,
      "user": 0.14503216181818182,
      "system": 0.13034414181818182,
      "min": 0.11484264878000001,
      "max": 0.13214814878
    },
    {
      "command": "pnpr@main",
      "mean": 0.11888985473238096,
      "stddev": 0.004086378759091469,
      "median": 0.11914453378,
      "user": 0.14468545619047618,
      "system": 0.12789905523809522,
      "min": 0.10935276778000001,
      "max": 0.12755586478
    }
  ]
}

@github-actions

github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/15097
Testbedpacquet

🚨 1 Alert

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
isolated-linker.repeat-install.hot-cache.hot-storeLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
8.66 ms
(+20.70%)Baseline: 7.17 ms
8.61 ms
(100.58%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
103.78 ms
(-17.00%)Baseline: 125.04 ms
150.05 ms
(69.17%)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,453.17 ms
(-2.35%)Baseline: 2,512.23 ms
3,014.68 ms
(81.37%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,520.45 ms
(-4.20%)Baseline: 1,587.19 ms
1,904.63 ms
(79.83%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
294.54 ms
(-24.93%)Baseline: 392.33 ms
470.80 ms
(62.56%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
222.60 ms
(-3.40%)Baseline: 230.43 ms
276.51 ms
(80.50%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,201.74 ms
(-4.18%)Baseline: 2,297.85 ms
2,757.42 ms
(79.85%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,318.56 ms
(-1.17%)Baseline: 4,369.48 ms
5,243.38 ms
(82.36%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
194.72 ms
(-19.21%)Baseline: 241.02 ms
289.22 ms
(67.33%)
isolated-linker.linked-workspace-resolve.hot-cache.offline📈 view plot
🚷 view threshold
164.82 ms
(-10.06%)Baseline: 183.26 ms
219.91 ms
(74.95%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
449.68 ms
(-28.49%)Baseline: 628.87 ms
754.64 ms
(59.59%)
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
🚷 view threshold
5.54 ms
(-19.02%)Baseline: 6.85 ms
8.21 ms
(67.48%)
isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
🚷 view threshold
🚨 view alert (🔔)
8.66 ms
(+20.70%)Baseline: 7.17 ms
8.61 ms
(100.58%)

🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/15097
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)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
105.31 ms
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,395.43 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
278.54 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
316.04 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
88.47 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,337.51 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,357.35 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
259.11 ms
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
6.16 ms
isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
5.70 ms
🐰 View full continuous benchmarking report in Bencher

zkochan and others added 6 commits September 19, 2026 03:13
Nine files under `crates/cli/tests/suite/` carried a file-level
`#![cfg(unix)]`, and the two `pnpm`-differential tests in `root.rs` and
`bin.rs` carried a Windows `ignore`, so none of them ever compiled or ran
on the Windows CI job.

Four of the gates blamed "program not found" on spawning the external
`pnpm`. That dates from pacquet's own CI, which installed pnpm through
npm as a `pnpm.cmd` shim: Windows resolves a bare program name against
`.exe` alone, so the spawn failed. The workflows have installed pnpm
through `pnpm/setup` since 2026-05, and that action downloads pnpm's
native `pnpm.exe`, which resolves. Nothing in those four files is
unix-specific beyond the spawn.

The other gates were harness details rather than platform behavior:

- `repeat_install.rs` compared inode numbers to tell a file the install
  reused from one it replaced. It now takes a hard link as a witness and
  compares with `same_file`, which answers the same question on both
  platforms.
- `multiple_importers.rs` asserted the executable bit on a linked bin.
  `bundled_dependencies.rs` already had a helper that checks the bit on
  Unix and the `.cmd` / `.ps1` launchers on Windows; it moves to the
  shared test utils and both files call it.
- `pnpx_alias.rs` copied the binary under a name with no `.exe` suffix.
- `ignore_workspace.rs` ran `pwd`, and `pipeline_watch.rs` ran `mkdir -p`
  and `cp`, from a package script. Both now use `node -e`, as
  `pipeline_cache.rs` already did.
- `pipeline_cargo_cache.rs` ran its built probe binary by a path with no
  `.exe` suffix.

Five files stay gated, each with a comment saying why: `interrupt.rs`
sends POSIX signals, `run_recursive.rs` and `exec_recursive.rs` put POSIX
shell bodies in nearly every package script, and
`global_virtual_store.rs` and `hoisted_node_linker.rs` assert layouts
shaped around symlinks. Un-gating those is the remainder of
#15089.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`should_add_extra_node_paths_to_command_shims` asserted that the shim
names the hidden hoisted modules dir relative to its own directory.
`generate_sh_shim` writes that relative form only inside a relocatable
root outside Windows; on Windows it writes the absolute path
`@zkochan/cmd-shim` writes, so the entry is there under a different
spelling. Assert whichever the host produces.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`append_order_script` wrote its separator as `\n` inside a double-quoted
`node -e` body. `sh -c` unescapes the backslash before Node sees it, so
Node received a `\n` escape and appended a newline. `cmd /d /s /c` passes
the body through verbatim, so Node received the two characters and
appended them literally, and the order log never matched.

`String.fromCharCode(10)` carries no backslash, so both shells hand Node
the same program.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Both files compile and their other tests run on Windows now, but one test
in each fails there for a reason outside this change:

- The watch agent reports the revision built and passed, and leaves no
  task output in its checkout.
- The pipeline's Cargo build state is not restored into a second
  worktree, which recompiles instead. That run places the cache under the
  8.3 short form of the temporary directory while the worktree carries
  the long one.

Narrow the skip to those two tests rather than gating the files, so the
rest keeps running, and record what was seen for whoever picks them up.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`reinstalls_missing_packages_during_headless_install` dropped the direct
dependency's link with `fs::remove_file`. That link is a symlink on Unix
and a junction on Windows, and `DeleteFileW` refuses a directory-shaped
reparse point with `ERROR_ACCESS_DENIED`.

`pnpm_fs::remove_dirent` already routes each shape to the call that
removes it, and its docs name this exact failure.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`reinstalls_missing_packages_during_headless_install` searched the NDJSON
stream for the raw path of the directory it had removed. The stream is
JSON, so a Windows path arrives with each separator escaped and the raw
form matches nothing.

Serialize the path the way the reporter did and search for that.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The NDJSON needle still missed on Windows: the tests run under a
temporary directory handed to them in its 8.3 short form
(`C:\Users\RUNNER~1\...`), and the reporter names the long one.

Canonicalize the directory while it still exists, and match that.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@zkochan
zkochan marked this pull request as ready for review September 19, 2026 01:36
@codecov-commenter

codecov-commenter commented Sep 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.24%. Comparing base (b109487) to head (99e7d9b).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #15097    +/-   ##
========================================
  Coverage   91.24%   91.24%            
========================================
  Files        1343     1343            
  Lines      180091   180203   +112     
========================================
+ Hits       164325   164431   +106     
- Misses      15766    15772     +6     

☔ 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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Run nine CLI end-to-end suites on Windows

🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Enables 104 CLI end-to-end tests across nine suites on Windows.
• Replaces Unix-specific scripts, paths, shims, and file identity assertions with portable
 equivalents.
• Retains justified Unix gates and narrows two Windows failures to individual tests.
Diagram

graph TD
  WIN["Windows CI"] -->|runs| SUITES["CLI e2e suites"] -->|uses| UTILS["Shared test utils"] -->|normalizes| FS["OS file semantics"]
  SUITES -->|executes| SCRIPTS["Portable Node scripts"] -->|invokes| CLI["Pacquet CLI"]
  SUITES -->|retains| SKIPS["Targeted skips"]
  SUITES -.->|validates| CLI
Loading
High-Level Assessment

The selected approach is optimal: remove broad platform gates, centralize reusable portability assertions, and keep skips scoped to demonstrably unsupported scenarios. Retaining whole-file gates or duplicating Windows-specific suites would reduce coverage parity and increase maintenance.

Files changed (17) +161 / -98

Refactor (1) +1 / -24
bundled_dependencies.rsReuse the shared bin-link assertion +1/-24

Reuse the shared bin-link assertion

• Replaces the suite-local platform-aware bin helper with the shared test utility, avoiding duplicate executable and launcher checks.

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

Tests (12) +115 / -73
mod.rsAdd shared cross-platform bin assertions +24/-2

Add shared cross-platform bin assertions

• Makes lockfile and NDJSON helpers available on Windows. Adds 'assert_bin_linked' to validate Unix executable bits or Windows '.cmd' and '.ps1' launchers.

pnpm/crates/cli/tests/suite/_utils/mod.rs

bin.rsEnable pnpm bin parity testing on Windows +1/-6

Enable pnpm bin parity testing on Windows

• Removes the Windows ignore from the workspace-subdirectory differential test now that CI provides a resolvable native 'pnpm.exe'.

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

hoist.rsEnable hoist tests with platform-aware shim assertions +11/-4

Enable hoist tests with platform-aware shim assertions

• Removes the Unix-only module gate. Accepts the absolute hoisted modules path generated in Windows shell shims while retaining the relative Unix expectation.

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

ignore_workspace.rsMake workspace selection checks shell-independent +5/-5

Make workspace selection checks shell-independent

• Removes the Unix gate and replaces 'pwd' with a Node current-directory command. Uses 'Path::ends_with' so either platform separator is accepted.

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

multiple_importers.rsPort workspace importer tests to Windows +11/-6

Port workspace importer tests to Windows

• Removes the suite-level Unix gate and uses the shared bin-link assertion. Generates order-log newlines without shell-dependent backslash interpretation.

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

pipeline_cargo_cache.rsRun Cargo cache tests with Windows executable naming +14/-2

Run Cargo cache tests with Windows executable naming

• Removes the file-level Unix gate and appends the platform executable suffix when running the fixture binary. Keeps the unresolved cross-worktree cache restoration scenario individually skipped on Windows.

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

pipeline_watch.rsReplace POSIX watch fixture scripts with Node +10/-5

Replace POSIX watch fixture scripts with Node

• Removes the suite-level Unix gate and rewrites build and failure scripts using Node APIs. Narrows an unresolved missing-output issue to the affected Windows test.

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

pnpm_compatibility.rsEnable pnpm compatibility tests on Windows +0/-2

Enable pnpm compatibility tests on Windows

• Removes the obsolete Unix-only gate now that Windows CI installs a directly resolvable native pnpm executable.

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

pnpx_alias.rsMake pnpx alias execution cross-platform +15/-6

Make pnpx alias execution cross-platform

• Copies the test binary using the platform executable suffix and limits executable permission changes to Unix. The alias test can now run on Windows.

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

repeat_install.rsPort repeat-install assertions to Windows filesystems +24/-23

Port repeat-install assertions to Windows filesystems

• Removes the Unix gate and handles Windows junction deletion, canonical path reporting, and JSON-escaped separators. Replaces Unix inode comparisons with cross-platform hard-link witnesses to verify package reuse.

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

root.rsEnable pnpm root parity testing on Windows +0/-10

Enable pnpm root parity testing on Windows

• Removes the obsolete Windows ignore from the workspace-subdirectory differential test because native 'pnpm.exe' is now available in CI.

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

side_effects_cache.rsEnable side-effects cache tests on Windows +0/-2

Enable side-effects cache tests on Windows

• Removes the file-level Unix gate so cached build-output behavior receives Windows coverage.

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

Documentation (1) +6 / -0
interrupt.rsDocument the POSIX-only signal test boundary +6/-0

Document the POSIX-only signal test boundary

• Explains why process-group signal tests remain Unix-only and require distinct console-control-event coverage on Windows.

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

Other (3) +39 / -1
Cargo.lockLock the same-file test dependency +1/-0

Lock the same-file test dependency

• Records 'same-file' as a dependency of the testing utilities crate for cross-platform file identity comparisons.

Cargo.lock

Cargo.tomlAdd cross-platform file identity support +1/-0

Add cross-platform file identity support

• Adds the workspace 'same-file' dependency used by the new filesystem witness utility.

pnpm/crates/testing-utils/Cargo.toml

fs.rsIntroduce a cross-platform file reuse witness +37/-1

Introduce a cross-platform file reuse witness

• Adds 'SameFileWitness', which preserves a hard link outside the tested tree and later uses 'same_file' to detect replacement. This provides a stable alternative to Unix-only inode comparisons.

pnpm/crates/testing-utils/src/fs.rs

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Watch output failure lacks tracking ✓ Resolved 📘 Rule violation ▣ Testability
Description
watch_agent_builds_new_revisions_and_skips_quiet_ticks is newly ignored on Windows with an
observed failure but no linked tracking issue. When a successful agent build leaves no output, the
Windows job suppresses that regression without tying it to a scheduled investigation.
Code

pnpm/crates/cli/tests/suite/pipeline_watch.rs[R47-50]

+#[cfg_attr(
+    target_os = "windows",
+    ignore = "the agent's build reports success but leaves no output in the checkout"
+)]
Relevance

●●● Strong

Team accepted adding explicit tracking issues to quarantined tests, including platform-specific
Windows skips.

PR-#14365
PR-#13141

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 713440 requires newly skipped tests to include an explicit issue reference and
justification. The comment and ignore reason explain the missing output, but neither links a
tracking ticket.

Rule 713440: Investigate and resolve all failing tests before merge
pnpm/crates/cli/tests/suite/pipeline_watch.rs[43-50]

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 newly added Windows ignore quarantines a failing watch-agent test without a linked tracking issue, leaving the missing-output failure without accountable follow-up.

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

## Recommended Fix
Create or identify a tracking issue for the Windows watch-agent output failure and add its explicit reference to the adjacent justification comment or ignore reason. Remove the ignore instead if the failure can be fixed in this PR.

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


2. Cargo cache failure lacks tracking ✓ Resolved 📘 Rule violation ▣ Testability
Description
cargo_state_is_shared_between_worktrees_and_survives_cache_deletion is newly ignored on Windows
with a failure explanation but no linked tracking issue. When the cross-worktree cache restoration
fails, CI skips the scenario indefinitely without connecting the quarantine to accountable follow-up
work.
Code

pnpm/crates/cli/tests/suite/pipeline_cargo_cache.rs[R57-60]

+#[cfg_attr(
+    target_os = "windows",
+    ignore = "the shared Cargo build state is not restored across worktrees"
+)]
Relevance

●●● Strong

Tracking references for quarantined tests are explicitly accepted, including Windows-specific
quarantine precedent.

PR-#14365
PR-#13141

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 713440 permits a newly skipped failing test only when its quarantine includes both a
justification and a clear linked tracking ticket. The added cfg_attr supplies a reason but no
issue reference.

Rule 713440: Investigate and resolve all failing tests before merge
pnpm/crates/cli/tests/suite/pipeline_cargo_cache.rs[51-60]

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 newly added Windows ignore quarantines a failing Cargo cache test without a linked tracking issue, so the failure has no accountable follow-up.

## Fix Focus Areas
- pnpm/crates/cli/tests/suite/pipeline_cargo_cache.rs[51-60]

## Recommended Fix
Create or identify a tracking issue for the Windows cross-worktree cache restoration failure and add its explicit reference to the adjacent justification comment or ignore reason. Remove the ignore instead if the failure can be fixed in this PR.

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


Grey Divider

Context sources
✅ Compliance rules (platform): 63 rules
✅ Skills: review-code
Review mode: ⏭️ Skipped: The push only revises comments and test ignore messages, with no semantic or behavioral changes.

Grey Divider

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

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@greptile-apps

greptile-apps Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The PR should not merge until the confirmed Windows pipeline failures remain visible or are fixed, because the repository explicitly prohibits ignoring test failures.

Reviews (2) · Last reviewed commit: "test(cli): track the two Windows pipelin..."

The skips on `pipeline_watch` and `pipeline_cargo_cache` name what was
seen on Windows but left the gaps themselves untracked, which reads as
disabling a failure rather than recording one. Point both at the issue
that carries the evidence and the leads.

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

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 99e7d9b

@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 merged commit 652dcc8 into main Sep 19, 2026
35 of 36 checks passed
@zkochan
zkochan deleted the fix-15089 branch September 19, 2026 08:29
u9g pushed a commit to u9g/pnpm that referenced this pull request Sep 25, 2026
Nine files under `crates/cli/tests/suite/` carried a file-level
`#![cfg(unix)]`, and the two `pnpm`-differential tests in `root.rs` and
`bin.rs` carried a Windows `ignore`, so none of them ever compiled or ran
on the Windows CI job.

Four of the gates blamed "program not found" on spawning the external
`pnpm`. That dates from pacquet's own CI, which installed pnpm through
npm as a `pnpm.cmd` shim: Windows resolves a bare program name against
`.exe` alone, so the spawn failed. The workflows have installed pnpm
through `pnpm/setup` since 2026-05, and that action downloads pnpm's
native `pnpm.exe`, which resolves. Nothing in those four files is
unix-specific beyond the spawn.

The other gates were harness details rather than platform behavior:

- `repeat_install.rs` compared inode numbers to tell a file the install
  reused from one it replaced. It now takes a hard link as a witness and
  compares with `same_file`, which answers the same question on both
  platforms.
- `multiple_importers.rs` asserted the executable bit on a linked bin.
  `bundled_dependencies.rs` already had a helper that checks the bit on
  Unix and the `.cmd` / `.ps1` launchers on Windows; it moves to the
  shared test utils and both files call it.
- `pnpx_alias.rs` copied the binary under a name with no `.exe` suffix.
- `ignore_workspace.rs` ran `pwd`, and `pipeline_watch.rs` ran `mkdir -p`
  and `cp`, from a package script. Both now use `node -e`, as
  `pipeline_cache.rs` already did.
- `pipeline_cargo_cache.rs` ran its built probe binary by a path with no
  `.exe` suffix.

Five files stay gated, each with a comment saying why: `interrupt.rs`
sends POSIX signals, `run_recursive.rs` and `exec_recursive.rs` put POSIX
shell bodies in nearly every package script, and
`global_virtual_store.rs` and `hoisted_node_linker.rs` assert layouts
shaped around symlinks. Un-gating those is the remainder of
pnpm#15089.

Related to pnpm#15089.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants