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

Offen
#297 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
25
Forks
4
Ø Merge
18 Std. 22 Min.
Gemergte PRs (30 T.)
34

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus prisma/prisma-cli

Alle Issues in prisma/prisma-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.