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)
維護者通常 1 天內回覆
評估
- 難度
- 3/5
- 預估耗時
- 半天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- rust
- 領域
- testing-qa
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
[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
- 主要語言
- Rust
- 星號
- 9
- 分支
- 2
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 309
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
SocketDev/socket-patch 的其他 Issue
-
Windows unit tests fail on main: pnpm-registry-overrides fixtures are checked out as CRLF (mixes CRLF and LF line endings)可能已有人在做 @mikolalysenko 今天認領。 未關閉agent:claimed agent:triaged ci-janitor priority:p1
難度 1/5 1-3 小時 新手友好度 85/100
SocketDev/socket-patch#2238 · 1 則留言 ·
維護者通常 1 天內回覆
-
agent:triaged arch-audit priority:p3 refactor
難度 2/5 1-3 小時 新手友好度 83/100
SocketDev/socket-patch#1860 ·
維護者通常 1 天內回覆
-
agent:triaged arch-audit priority:p3 refactor
難度 2/5 1-3 小時 新手友好度 78/100
SocketDev/socket-patch#1838 ·
維護者通常 1 天內回覆
-
Agent mode reports a gem whose installed file was edited as "not installed on this host" / "not found on disk", `apply --check` says to run `apply`, and `rollback` exits 1 with "modified after patching" on every run可能已有人在做 @mikolalysenko 今天認領。 未關閉agent:claimed agent:triaged bug bughunt pm:bundler priority:p1 ux
難度 4/5 3-5 天 新手友好度 18/100
SocketDev/socket-patch#2231 · 1 則留言 ·
維護者通常 1 天內回覆
-
Behind a private gem mirror a hosted gem pin cannot be undone: `rollback` and `remove` refuse on a `CHECKSUMS` lock, and without `CHECKSUMS` `rollback` leaves the patched builds installed with no warning that names them可能已有人在做 @mikolalysenko 今天認領。 未關閉agent:claimed agent:triaged bug bughunt pm:bundler priority:p1
難度 4/5 3-5 天 新手友好度 12/100
SocketDev/socket-patch#2230 · 1 則留言 ·
維護者通常 1 天內回覆
查看 SocketDev/socket-patch 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
qingjian-team/qingjian#1181 ·
維護者通常 2 天內回覆
-
bug P2: medium
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
oxidecomputer/opte#1125 ·
維護者通常 2 天內回覆
-
[Bug] StreamLifecycleConfig clamps post-TTFT stream timeouts to remaining admission budget可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
lbjlaq/Antigravity-Manager#4063 ·
維護者通常 1 天內回覆