The perf-316 state-lock test released the held lock on a fixed 1000ms timer, then asserted the SUT had contended (lockAttempts >= 2). On a slow/loaded runner the SUT worker's spawn+init exceeded the timer, so it acquired the lock on the first try (lockAttempts:1) and the test failed intermittently (observed on linux-node22 while linux-node24 passed). The holder now releases only when the writer signals its first FAILED lock attempt (via a shared SharedArrayBuffer + Atomics), so a retry is guaranteed regardless of worker-spawn latency; holdMs becomes a safety cap. Surfaced by the #2009 gsd-test run.
14 KiB
14 KiB