docs(handoff): lore — concurrency tests need negative control + stress loop; audit workaround purpose before deleting
Build ErsatzTV Image / Docs update reminder (push) Has been skipped
Build ErsatzTV Image / Build & push image (amd64) (push) Has been cancelled
Build ErsatzTV Image / Build & test (.NET) (push) Has been cancelled
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Has been cancelled
Build ErsatzTV Image / Docs update reminder (push) Has been skipped
Build ErsatzTV Image / Build & push image (amd64) (push) Has been cancelled
Build ErsatzTV Image / Build & test (.NET) (push) Has been cancelled
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Has been cancelled
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -148,3 +148,17 @@ HARD CONSTRAINTS:
|
||||
- **CI VM test timeouts**: heavy-render web tests (100+ item grids) need explicit vitest
|
||||
timeouts (e.g. 15s) — the CI VM hit the 5s default on a test that runs in ~1s locally
|
||||
(run 686). Bump per-test, don't raise the global default.
|
||||
- **Concurrency tests need a negative control + a stress loop, not a single round** (2026-07-11,
|
||||
#231): a one-shot `Barrier(N)` + `Task.WhenAll` "exactly one winner" test did NOT catch a
|
||||
deliberately non-atomic check-then-set flag on this Mac — the load→store window is too narrow to
|
||||
collide when threads release once. It green-lit broken code. Fix: hammer the race over many rounds
|
||||
(N worker threads × ~20k rounds, two Barriers per round: acquire → validate one-winner → reset),
|
||||
and ALWAYS prove non-vacuous by temporarily breaking the primitive and watching the test fail.
|
||||
Cheap (sub-second) and deterministic-enough. Same discipline as #12's negative control.
|
||||
- **Before deleting a "workaround", check it isn't serving a SECOND purpose** (2026-07-11, #232):
|
||||
an issue said "remove the SPA `PENDING_GRACE_TICKS` grace-tick workaround now the API is honest".
|
||||
The grace ticks did double duty — compensating the lying-200 (now genuinely obsolete) AND
|
||||
absorbing the inherent queue→observed-active lag / fast-completion race (still needed). Removing
|
||||
wholesale wedged the scan button disabled-until-reload for short scans; both fork + Codex caught
|
||||
it. Keep a bounded version, re-scoped honestly. When an issue says "delete X", enumerate every
|
||||
behavior X provided before deleting.
|
||||
|
||||
Reference in New Issue
Block a user