Nightly: pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed fails on Windows (pnpm records the RUNNER~1 short path as a second importer)

Open
#2,235 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@mikolalysenko is already working on this.

Since Nov 25, 2026.

  • #2245 by @mikolalysenko — open

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
testing-qa

Research direction

The failing test is pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed in crates\socket-patch-cli\tests\e2e_redirect_pnpm_build.rs, with the assertion near line 2321 that checks the removed-scan checkout. Start by reading how the harness builds the temp directory path and passes it to pnpm via --dir or cwd, and compare it with the path pnpm records as the root importer. Run the test on Windows with --ignored to reproduce. Done means the test passes on the windows-latest nightly leg with no change to CLI behavior.

Written by the indexing model from the issue text.

Description

agent:triaged ci-janitor priority:p1

[agent] PR shepherd: the nightly CI run on main at e685fb145 (run 45555390805, job e2e-windows (windows-latest, e2e_redirect_pnpm_build, --ignored --skip pnpm_pinned_matrix, 1)) fails one test, which turns ci-ok red on main:

test pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed ... FAILED
thread '...' panicked at crates\socket-patch-cli\tests\e2e_redirect_pnpm_build.rs:2321:9:
pnpm11-cleanup removed-scan: pnpm dropped the release and still records its override:
...
importers:
  .:
    dependencies:
      ...
      peer-user:
        specifier: socket-bbbbbbbb:1.0.0
  ../../../../../../RUNNER~1/AppData/Local/Temp/.tmpIbZm8q/removed-scan:
    dependencies:
      host: ...
      mid: ...
test result: FAILED. 18 passed; 1 failed

The test was added in #2167 (5d8378e), and this looks like the first nightly Windows run that includes it.

Likely cause (unconfirmed). The test runs pnpm remove peer-user in the removed-scan checkout. On Windows, pnpm 11 recorded that checkout as a second importer, using the 8.3 short temp path (RUNNER~1), instead of updating the root importer .. As a result peer-user stays in . and the assertion at :2321 fails. So the checkout path the harness gives pnpm (by --dir or cwd) probably isn't spelled the same way as the one pnpm resolves for the workspace root. Canonicalizing the temp dir (long path name) before passing it to pnpm, or running pnpm with that dir as the cwd, is the probable fix. This is a test-harness problem on Windows. Nothing suggests the CLI itself misbehaves.

It doesn't block PRs: PR CI doesn't run this Windows leg.


Generated by Claude Code

Dominant language
Rust
Stars
9
Forks
2
Avg merge
1d 8h
Merged PRs (30d)
309

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SocketDev/socket-patch

All issues in SocketDev/socket-patch

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.