ci flake, 3rd sighting: joinEntry's first live assertion is gated on a fixed 30 ms setTimeout — not the ECONNRESET #882/#888 chased #895

Closed
opened 2026-08-27 07:42:59 +00:00 by matou-build-agent · 4 comments

Symptom

ci run 12651 (seam stage,
sha 0ebee236) reddened on one test out of 1263:

FAIL tests/unit/joinEntry.test.ts > the join surface boots over a live control plane (AC1)
  > a live invite opens the branded S3, submitting lands on S5, approval resolves the poll
AssertionError: expected null not to be null
 ❯ tests/unit/joinEntry.test.ts:228:20
Test Files  1 failed | 110 passed (111)
     Tests  1 failed | 1262 passed (1263)

Same file, same assertion class as #882 (closed) and #888 (closed). Both prior
fixes chased an ECONNRESET. The ECONNRESET is gone and this still reds —
there is a second, independent cause, and it is the one that actually fails the
assertion.

Root cause: the assertion is gated on a fixed 30 ms wall clock

dashboard/tests/unit/joinEntry.test.ts:228 is the first assertion after mount —
expect(s3).not.toBeNull() on [data-field="member-joins"]. Reaching it goes
through settle() (joinEntry.test.ts:183-188):

async function settle(): Promise<void> {
  await flushPromises();
  await new Promise((r) => setTimeout(r, 30));   // <- the whole live round-trip's budget
  await flushPromises();
}

flushPromises() drains the microtask queue; it cannot wait for a real
loopback HTTP round-trip
. So the only thing covering GET /api/v1/join/{token}
against the in-test control plane — connect, serve, respond, parse, then Vue's
reactive re-render — is that setTimeout(…, 30). When the host is loaded enough
that the round-trip exceeds ~30 ms, S3 has not rendered yet and s3 is null.

Proved by inversion. Take joinEntry.test.ts verbatim, change only
setTimeout(r, 30) → setTimeout(r, 0), run it:

  • 3/3 runs fail, zero ECONNRESET in any log;
  • failure lands at :228:20 — byte-identical to CI's
    line=228,column=20;
  • the file's second test fails the same way at :273:22 (also the first
    assertion after mount).

The timer is the thing being asserted on. Nothing else in the path waits for
the wire.

Why CI reds and the host does not

At rest on matou-workstation (workdir tip 5d64bee7; 0ebee236 touches no
dashboard file):

  • full dashboard suite: 111/111 files, 1263/1263 tests green, 0 ECONNRESET;
  • pnpm -r run test (what scripts/seam-smoke.sh:133 runs — all four workspace
    suites concurrently): dashboard 111/111 green, 0 ECONNRESET;
  • joinEntry.test.ts alone × 6 with 8 spinning CPU hogs: 6/6 green.

CI adds act plus a swarm firing runs every ~15 s on a host already at ~2.8 GB
swap. That is enough to push one loopback round-trip past 30 ms; nothing else
about CI differs.

The shared exposure — and why it picked these two files

Six seam files still gate assertions on a fixed wall-clock wait:

file ms
joinEntry.test.ts 30
mailEntry.test.ts 30
enrollLive.test.ts 10, 25
rollout.test.ts 10
mountProvisioningUpdates.test.ts 50
serveEntry.test.ts 50

The two that have reddened CI are #882 (joinEntry) and #888 (mailEntry) — the
two whose live-round-trip budget is 30 ms. enrollLive's 10/25 ms waits do not
cover a mount fetch. This is a per-assertion timing contract, not a transport
bug, so listenLoopback/closeLiveServer cannot reach it.

#888's fix held — it just fixed a different bug

da67aaea's closeLiveServer() drain works: 0 ECONNRESET across two full
111-file suite runs
, against #888's measured "a reset in 3 of 3 runs". The
teardown race is closed. It was never what failed the assertion.

What a fix should do

Replace the fixed setTimeout in the affected seams' settle() with a
condition wait — poll for the expected DOM node (or drain
happyDOM.waitUntilComplete(), as closeLiveServer already does) up to a
generous timeout, so a slow host makes the test slower, never red. Product
code (dashboard/src/entry/join.ts and the real transport) must not change —
this is entirely a test-harness timing contract. Ideally the wait lands in
tests/support/liveServer.ts next to closeLiveServer, so all six files share
one correct implementation.

Acceptance

  • joinEntry.test.ts with its settle() wait forced to 0 ms passes 5/5 —
    i.e. the assertions no longer depend on wall-clock slack. (This is the exact
    inversion that reproduces today's red; if it passes, the load sensitivity is
    gone.)
  • The full dashboard suite stays green and still logs 0 ECONNRESET.
  • docs/GOTCHAS.md gains an entry: a live-seam assertion must never be gated on
    a fixed setTimeout — wait for the condition.

Reproduction

cd dashboard
# reproduce today's CI red exactly (fails at :228:20, no ECONNRESET):
sed 's/setTimeout(r, 30)/setTimeout(r, 0)/' tests/unit/joinEntry.test.ts > tests/unit/zzProbe.test.ts
node_modules/.bin/vitest run tests/unit/zzProbe.test.ts --reporter=basic
rm tests/unit/zzProbe.test.ts

Secondary (harness, not this ticket's fix)

The healer's signature for this fault, ba24de31e015, is keyed on
failure: null / at <SurfaceErrorBoundary>. Those lines are benign — a
fully green pnpm -r run test emits 9 failure: and 30
at <SurfaceErrorBoundary> lines, all of them Vue component-trace formatting
under [Vue warn]: Extraneous non-emits event listeners. They appear in the
verdict because write_verdict's tail -12 window
(scripts/seam-smoke.sh:48-50) is filled by this noise before it reaches the
real AssertionError. #882 read those lines as "the surface fell through to
SurfaceErrorBoundary", which is part of why two fixes chased the wrong cause.
Worth a separate harness ticket: keep the verdict's error window anchored on the
Failed Tests/AssertionError block.

Evidence

  • ci run: https://git.matou.nz/Matou/idss/actions/runs/12651 (job seam,
    task 26928 — later cancelled when main moved on)
  • verdict marker: stage TypeScript: build (tsc), test (vitest), lint (eslint), exit 1
  • healer signature: ba24de31e015 (2nd sighting; first was #882, 2026-08-26 23:41 UTC)
  • healer evidence dir: /tmp/matou-heal-Matou-idss.vAWTUD on matou-workstation
  • prior issues: #882 (closed, fix d8f60e81), #888 (closed, fix da67aaea)
## Symptom `ci` run [12651](https://git.matou.nz/Matou/idss/actions/runs/12651) (seam stage, sha `0ebee236`) reddened on **one** test out of 1263: ``` FAIL tests/unit/joinEntry.test.ts > the join surface boots over a live control plane (AC1) > a live invite opens the branded S3, submitting lands on S5, approval resolves the poll AssertionError: expected null not to be null ❯ tests/unit/joinEntry.test.ts:228:20 Test Files 1 failed | 110 passed (111) Tests 1 failed | 1262 passed (1263) ``` Same file, same assertion class as #882 (closed) and #888 (closed). Both prior fixes chased an `ECONNRESET`. **The ECONNRESET is gone and this still reds** — there is a second, independent cause, and it is the one that actually fails the assertion. ## Root cause: the assertion is gated on a fixed 30 ms wall clock `dashboard/tests/unit/joinEntry.test.ts:228` is the first assertion after mount — `expect(s3).not.toBeNull()` on `[data-field="member-joins"]`. Reaching it goes through `settle()` (`joinEntry.test.ts:183-188`): ```ts async function settle(): Promise<void> { await flushPromises(); await new Promise((r) => setTimeout(r, 30)); // <- the whole live round-trip's budget await flushPromises(); } ``` `flushPromises()` drains the microtask queue; it cannot wait for a **real loopback HTTP round-trip**. So the only thing covering `GET /api/v1/join/{token}` against the in-test control plane — connect, serve, respond, parse, then Vue's reactive re-render — is that `setTimeout(…, 30)`. When the host is loaded enough that the round-trip exceeds ~30 ms, S3 has not rendered yet and `s3` is `null`. **Proved by inversion.** Take `joinEntry.test.ts` verbatim, change only `setTimeout(r, 30)` → `setTimeout(r, 0)`, run it: - 3/3 runs fail, **zero `ECONNRESET` in any log**; - failure lands at **`:228:20`** — byte-identical to CI's `line=228,column=20`; - the file's second test fails the same way at `:273:22` (also the first assertion after mount). The timer *is* the thing being asserted on. Nothing else in the path waits for the wire. ## Why CI reds and the host does not At rest on `matou-workstation` (workdir tip `5d64bee7`; `0ebee236` touches no dashboard file): - full dashboard suite: **111/111 files, 1263/1263 tests green**, 0 ECONNRESET; - `pnpm -r run test` (what `scripts/seam-smoke.sh:133` runs — all four workspace suites concurrently): dashboard **111/111 green**, 0 ECONNRESET; - `joinEntry.test.ts` alone × 6 with 8 spinning CPU hogs: 6/6 green. CI adds `act` plus a swarm firing runs every ~15 s on a host already at ~2.8 GB swap. That is enough to push one loopback round-trip past 30 ms; nothing else about CI differs. ## The shared exposure — and why it picked these two files Six seam files still gate assertions on a fixed wall-clock wait: | file | ms | |---|---| | `joinEntry.test.ts` | **30** | | `mailEntry.test.ts` | **30** | | `enrollLive.test.ts` | 10, 25 | | `rollout.test.ts` | 10 | | `mountProvisioningUpdates.test.ts` | 50 | | `serveEntry.test.ts` | 50 | The two that have reddened CI are #882 (`joinEntry`) and #888 (`mailEntry`) — the two whose live-round-trip budget is 30 ms. `enrollLive`'s 10/25 ms waits do not cover a mount fetch. This is a per-assertion timing contract, not a transport bug, so `listenLoopback`/`closeLiveServer` cannot reach it. ## #888's fix held — it just fixed a different bug `da67aaea`'s `closeLiveServer()` drain works: **0 `ECONNRESET` across two full 111-file suite runs**, against #888's measured "a reset in 3 of 3 runs". The teardown race is closed. It was never what failed the assertion. ## What a fix should do Replace the fixed `setTimeout` in the affected seams' `settle()` with a **condition wait** — poll for the expected DOM node (or drain `happyDOM.waitUntilComplete()`, as `closeLiveServer` already does) up to a generous timeout, so a slow host makes the test *slower*, never *red*. Product code (`dashboard/src/entry/join.ts` and the real transport) must not change — this is entirely a test-harness timing contract. Ideally the wait lands in `tests/support/liveServer.ts` next to `closeLiveServer`, so all six files share one correct implementation. ## Acceptance - `joinEntry.test.ts` with its `settle()` wait forced to **0 ms** passes 5/5 — i.e. the assertions no longer depend on wall-clock slack. (This is the exact inversion that reproduces today's red; if it passes, the load sensitivity is gone.) - The full dashboard suite stays green and still logs 0 `ECONNRESET`. - `docs/GOTCHAS.md` gains an entry: *a live-seam assertion must never be gated on a fixed `setTimeout` — wait for the condition.* ## Reproduction ```bash cd dashboard # reproduce today's CI red exactly (fails at :228:20, no ECONNRESET): sed 's/setTimeout(r, 30)/setTimeout(r, 0)/' tests/unit/joinEntry.test.ts > tests/unit/zzProbe.test.ts node_modules/.bin/vitest run tests/unit/zzProbe.test.ts --reporter=basic rm tests/unit/zzProbe.test.ts ``` ## Secondary (harness, not this ticket's fix) The healer's signature for this fault, `ba24de31e015`, is keyed on `failure: null` / `at <SurfaceErrorBoundary>`. **Those lines are benign** — a fully green `pnpm -r run test` emits 9 `failure:` and 30 `at <SurfaceErrorBoundary>` lines, all of them Vue component-trace formatting under `[Vue warn]: Extraneous non-emits event listeners`. They appear in the verdict because `write_verdict`'s `tail -12` window (`scripts/seam-smoke.sh:48-50`) is filled by this noise before it reaches the real `AssertionError`. #882 read those lines as "the surface fell through to `SurfaceErrorBoundary`", which is part of why two fixes chased the wrong cause. Worth a separate harness ticket: keep the verdict's error window anchored on the `Failed Tests`/`AssertionError` block. ## Evidence - ci run: https://git.matou.nz/Matou/idss/actions/runs/12651 (job `seam`, task 26928 — later `cancelled` when `main` moved on) - verdict marker: stage `TypeScript: build (tsc), test (vitest), lint (eslint)`, exit 1 - healer signature: `ba24de31e015` (2nd sighting; first was #882, 2026-08-26 23:41 UTC) - healer evidence dir: `/tmp/matou-heal-Matou-idss.vAWTUD` on `matou-workstation` - prior issues: #882 (closed, fix `d8f60e81`), #888 (closed, fix `da67aaea`)
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=12664
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=12664 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

4th sighting — healer, incident signature ba24de31e015.

ci run 12671 (seam stage, sha 41c35b67) reddened on the same single test:

FAIL tests/unit/joinEntry.test.ts > the join surface boots over a live control plane (AC1)
AssertionError: expected null not to be null
 ❯ tests/unit/joinEntry.test.ts:228:20
Test Files  1 failed | 110 passed (111)
     Tests  1 failed | 1262 passed (1263)

Byte-identical to the 3rd sighting: same file, same :228:20, same 1-of-1263. The runner's ::error marker again pins line=228,column=20.

Healer's independent checks on matou-workstation (evidence dir /tmp/matou-heal-Matou-idss.ETaFzf) — all consistent with this ticket's timer theory, none with a new cause:

  • git diff --name-only 5d64bee7 41c35b67 touches no dashboard/ file. The four commits since the last green seam (#893, #894, #897, #896) are all scripts/, internal/clan/, app/tests/e2e/fixtures/, docs. Nothing in the failing path changed.
  • joinEntry.test.ts alone × 12 at rest: 12/12 green.
  • Full dashboard suite at rest: 111/111 files, 1263/1263 tests green, 0 ECONNRESET.
  • /proc/sys/net/ipv4/ip_local_port_range = 32768 60999, so #882's re-band (listenLoopback, 20000–32767) is genuinely outside the ephemeral range — that theory stays falsified, as this ticket says.
  • Host at capture: 2.2 GB free RAM, 1.6 GB swap in use, / 73% — the loaded-host condition this ticket names as what pushes the loopback round-trip past the 30 ms budget.
  • Run 12671 fired at 08:14:42Z with the swarm (run 12664) live and act running; the SurfaceErrorBoundary display-fault line in the verdict is downstream of the un-rendered surface, not a second fault.

No repair attempted — dashboard/ is product-class under the healer charter. This ticket is already ready-for-agent and claimed (swarm-claim run=12664, 08:16:12Z); recording the recurrence rather than filing a duplicate.

**4th sighting — healer, incident signature `ba24de31e015`.** `ci` run [12671](https://git.matou.nz/Matou/idss/actions/runs/12671) (seam stage, sha `41c35b67`) reddened on the same single test: ``` FAIL tests/unit/joinEntry.test.ts > the join surface boots over a live control plane (AC1) AssertionError: expected null not to be null ❯ tests/unit/joinEntry.test.ts:228:20 Test Files 1 failed | 110 passed (111) Tests 1 failed | 1262 passed (1263) ``` Byte-identical to the 3rd sighting: same file, same `:228:20`, same 1-of-1263. The runner's `::error` marker again pins `line=228,column=20`. Healer's independent checks on `matou-workstation` (evidence dir `/tmp/matou-heal-Matou-idss.ETaFzf`) — all consistent with this ticket's timer theory, none with a new cause: - `git diff --name-only 5d64bee7 41c35b67` touches **no** `dashboard/` file. The four commits since the last green seam (#893, #894, #897, #896) are all `scripts/`, `internal/clan/`, `app/tests/e2e/fixtures/`, docs. Nothing in the failing path changed. - `joinEntry.test.ts` alone × 12 at rest: **12/12 green**. - Full dashboard suite at rest: **111/111 files, 1263/1263 tests green, 0 ECONNRESET**. - `/proc/sys/net/ipv4/ip_local_port_range` = `32768 60999`, so #882's re-band (`listenLoopback`, 20000–32767) is genuinely outside the ephemeral range — that theory stays falsified, as this ticket says. - Host at capture: 2.2 GB free RAM, **1.6 GB swap in use**, `/` 73% — the loaded-host condition this ticket names as what pushes the loopback round-trip past the 30 ms budget. - Run 12671 fired at 08:14:42Z with the swarm (run 12664) live and `act` running; the `SurfaceErrorBoundary` display-fault line in the verdict is downstream of the un-rendered surface, not a second fault. No repair attempted — `dashboard/` is product-class under the healer charter. This ticket is already `ready-for-agent` and claimed (`swarm-claim` run=12664, 08:16:12Z); recording the recurrence rather than filing a duplicate.
Author
Member

close-report for #895 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit ee9aef7849 is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/support/liveServer.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/joinEntry.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/mailEntry.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/serveEntry.test.ts' is not in the diff of the claimed commits
  • changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits
envelope
{
  "issue": 895,
  "status": "success",
  "commits": [
    "ee9aef784971f7760b743ca1e1db2233f5c170bd"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/tests/support/liveServer.ts",
    "dashboard/tests/unit/joinEntry.test.ts",
    "dashboard/tests/unit/mailEntry.test.ts",
    "dashboard/tests/unit/serveEntry.test.ts",
    "docs/GOTCHAS.md"
  ],
  "tests": [
    {
      "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts (x5)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts under 8 CPU hogs (x3)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vitest run (full dashboard suite: 111/111 files, 1263/1263 tests, 0 ECONNRESET)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/eslint (liveServer.ts + joinEntry/mailEntry/serveEntry.test.ts)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "joinEntry.test.ts with its settle() wait forced to 0 ms passes 5/5 — assertions no longer depend on wall-clock slack": "settleLive() has NO wall-clock timer at all (flush → happyDOM.waitUntilComplete() → flush), so 0 ms slack holds by construction; joinEntry green 5/5 and 3/3 under 8 CPU hogs (the CI load condition that reddened it). dashboard/tests/support/liveServer.ts settleLive(), dashboard/tests/unit/joinEntry.test.ts settle().",
    "The full dashboard suite stays green and still logs 0 ECONNRESET": "vitest run: 111/111 files, 1263/1263 tests passed, grep -c ECONNRESET = 0 (commit ee9aef7).",
    "docs/GOTCHAS.md gains an entry: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition": "docs/GOTCHAS.md entry #106 (Rule: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition, not the clock; settleLive is the shared implementation)."
  },
  "summary": "Replaced the fixed setTimeout in the live-seam settle()/drain() with a shared settleLive() condition-wait (happyDOM.waitUntilComplete drain) in liveServer.ts, adopted by joinEntry/mailEntry/serveEntry, so a slow host makes the test slower not red.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #895 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit ee9aef784971f7760b743ca1e1db2233f5c170bd is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/support/liveServer.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/joinEntry.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/mailEntry.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/serveEntry.test.ts' is not in the diff of the claimed commits - changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 895, "status": "success", "commits": [ "ee9aef784971f7760b743ca1e1db2233f5c170bd" ], "changed_files": [ "STATUS.md", "dashboard/tests/support/liveServer.ts", "dashboard/tests/unit/joinEntry.test.ts", "dashboard/tests/unit/mailEntry.test.ts", "dashboard/tests/unit/serveEntry.test.ts", "docs/GOTCHAS.md" ], "tests": [ { "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts (x5)", "exit_code": 0 }, { "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts under 8 CPU hogs (x3)", "exit_code": 0 }, { "command": "node_modules/.bin/vitest run (full dashboard suite: 111/111 files, 1263/1263 tests, 0 ECONNRESET)", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "node_modules/.bin/eslint (liveServer.ts + joinEntry/mailEntry/serveEntry.test.ts)", "exit_code": 0 } ], "criteria": { "joinEntry.test.ts with its settle() wait forced to 0 ms passes 5/5 — assertions no longer depend on wall-clock slack": "settleLive() has NO wall-clock timer at all (flush → happyDOM.waitUntilComplete() → flush), so 0 ms slack holds by construction; joinEntry green 5/5 and 3/3 under 8 CPU hogs (the CI load condition that reddened it). dashboard/tests/support/liveServer.ts settleLive(), dashboard/tests/unit/joinEntry.test.ts settle().", "The full dashboard suite stays green and still logs 0 ECONNRESET": "vitest run: 111/111 files, 1263/1263 tests passed, grep -c ECONNRESET = 0 (commit ee9aef7).", "docs/GOTCHAS.md gains an entry: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition": "docs/GOTCHAS.md entry #106 (Rule: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition, not the clock; settleLive is the shared implementation)." }, "summary": "Replaced the fixed setTimeout in the live-seam settle()/drain() with a shared settleLive() condition-wait (happyDOM.waitUntilComplete drain) in liveServer.ts, adopted by joinEntry/mailEntry/serveEntry, so a slow host makes the test slower not red.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Author
Member

close-report for #895 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 895,
  "status": "success",
  "commits": [
    "ee9aef784971f7760b743ca1e1db2233f5c170bd"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/tests/support/liveServer.ts",
    "dashboard/tests/unit/joinEntry.test.ts",
    "dashboard/tests/unit/mailEntry.test.ts",
    "dashboard/tests/unit/serveEntry.test.ts",
    "docs/GOTCHAS.md"
  ],
  "tests": [
    {
      "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts (x5)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts under 8 CPU hogs (x3)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vitest run (full dashboard suite: 111/111 files, 1263/1263 tests, 0 ECONNRESET)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/eslint (liveServer.ts + joinEntry/mailEntry/serveEntry.test.ts)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "joinEntry.test.ts with its settle() wait forced to 0 ms passes 5/5 — assertions no longer depend on wall-clock slack": "settleLive() has NO wall-clock timer at all (flush → happyDOM.waitUntilComplete() → flush), so 0 ms slack holds by construction; joinEntry green 5/5 and 3/3 under 8 CPU hogs (the CI load condition that reddened it). dashboard/tests/support/liveServer.ts settleLive(), dashboard/tests/unit/joinEntry.test.ts settle().",
    "The full dashboard suite stays green and still logs 0 ECONNRESET": "vitest run: 111/111 files, 1263/1263 tests passed, grep -c ECONNRESET = 0 (commit ee9aef7).",
    "docs/GOTCHAS.md gains an entry: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition": "docs/GOTCHAS.md entry #106 (Rule: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition, not the clock; settleLive is the shared implementation)."
  },
  "summary": "Replaced the fixed setTimeout in the live-seam settle()/drain() with a shared settleLive() condition-wait (happyDOM.waitUntilComplete drain) in liveServer.ts, adopted by joinEntry/mailEntry/serveEntry, so a slow host makes the test slower not red.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #895 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 895, "status": "success", "commits": [ "ee9aef784971f7760b743ca1e1db2233f5c170bd" ], "changed_files": [ "STATUS.md", "dashboard/tests/support/liveServer.ts", "dashboard/tests/unit/joinEntry.test.ts", "dashboard/tests/unit/mailEntry.test.ts", "dashboard/tests/unit/serveEntry.test.ts", "docs/GOTCHAS.md" ], "tests": [ { "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts (x5)", "exit_code": 0 }, { "command": "node_modules/.bin/vitest run tests/unit/joinEntry.test.ts under 8 CPU hogs (x3)", "exit_code": 0 }, { "command": "node_modules/.bin/vitest run (full dashboard suite: 111/111 files, 1263/1263 tests, 0 ECONNRESET)", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "node_modules/.bin/eslint (liveServer.ts + joinEntry/mailEntry/serveEntry.test.ts)", "exit_code": 0 } ], "criteria": { "joinEntry.test.ts with its settle() wait forced to 0 ms passes 5/5 — assertions no longer depend on wall-clock slack": "settleLive() has NO wall-clock timer at all (flush → happyDOM.waitUntilComplete() → flush), so 0 ms slack holds by construction; joinEntry green 5/5 and 3/3 under 8 CPU hogs (the CI load condition that reddened it). dashboard/tests/support/liveServer.ts settleLive(), dashboard/tests/unit/joinEntry.test.ts settle().", "The full dashboard suite stays green and still logs 0 ECONNRESET": "vitest run: 111/111 files, 1263/1263 tests passed, grep -c ECONNRESET = 0 (commit ee9aef7).", "docs/GOTCHAS.md gains an entry: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition": "docs/GOTCHAS.md entry #106 (Rule: a live-seam assertion must never be gated on a fixed setTimeout — wait for the condition, not the clock; settleLive is the shared implementation)." }, "summary": "Replaced the fixed setTimeout in the live-seam settle()/drain() with a shared settleLive() condition-wait (happyDOM.waitUntilComplete drain) in liveServer.ts, adopted by joinEntry/mailEntry/serveEntry, so a slow host makes the test slower not red.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#895
No description provided.