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)

Đang mở
#2,235 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@mikolalysenko đang làm issue này rồi.

Từ ngày 25/11/2026.

  • #2245 của @mikolalysenko — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
testing-qa

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Rust
Star
9
Fork
2
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
309

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SocketDev/socket-patch

Tất cả issue của SocketDev/socket-patch

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.