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

Aperta
#297 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
25
Fork
4
Merge medio
18h 22m
PR unite (30g)
34

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di prisma/prisma-cli

Tutte le issue di prisma/prisma-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.