Credential-store tests fail on the Windows runner with EPERM and 5 s timeouts

Đang mở
#297 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
typescript

Hướng nghiên cứu

Start with the named credential-manager tests and reproduce them on the windows-latest runner, focusing on the reported EPERM errors and 5 s timeout. Compare the concurrent credential writes and the related skills-project.test.ts flake; done means the affected tests pass reliably without lock or rename failures.

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

Mô tả

Timing-sensitive credential-manager tests keep failing on windows-latest and pass on re-run. Between 2026-08-18 and 2026-09-21:

  • "holds no lock while the workspace name is fetched": 3 failures
  • "re-decides adoption inside the lock": 4 failures, last on 2026-09-12
  • "exchanges one refresh token once": 2 failures (e.g. run 35588710412)
  • "lets only one of two waiting mutations clear the same crashed holder's lock": run 32833711949, 5 s timeout

At least four were EPERM on open(auth.json.lock) or rename(auth.json.<uuid>.tmp → auth.json), not timeouts. That suggests a real problem with two CLI processes writing credentials at once on Windows, not only slow tests. A related Windows flake also appeared in skills-project.test.ts (run 35194673695).

Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L500

🤖 Generated with Claude Code

Ngôn ngữ chính
TypeScript
Star
25
Fork
4
Merge trung bình
18 giờ 22 phút
Pull request đã merge (30 ngày)
34

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 prisma/prisma-cli

Tất cả issue của prisma/prisma-cli

Issue tương tự

Thêm issue về TypeScript

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.