You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(server): ServerSecretStore race test is flaky #249
What:apps/server/src/auth/ServerSecretStore.test.ts › "returns the persisted secret when concurrent creators race" failed once, then passed three runs in a row on the same tree. Why: unknown; it looks timing-dependent (a race test), and it is outside the code #247 changes. So what: an agent reproduces it in a repeat loop and makes the test deterministic; no user action needed.
Fixed by #261 (merged as 54fb0fc). The flake was a real race: a losing creator could read the winner's secret file before its bytes were written. create now writes a temp file and hard-links it into place; a deterministic regression test covers it, and the file passed 50/50 loop runs.
Activity
fix(server): a racing secret creator never reads a half-written secret
fix(server): a racing secret creator never reads a half-written secret (
lukemaj commentedon Oct 14, 2026
Fixed by #261 (merged as 54fb0fc). The flake was a real race: a losing creator could read the winner's secret file before its bytes were written.
createnow writes a temp file and hard-links it into place; a deterministic regression test covers it, and the file passed 50/50 loop runs.fix(server): a racing secret creator never reads a half-written secret (
fix(server): a racing secret creator never reads a half-written secret (