Skip to content

Waits for the crash report by its exit - #268

Merged
johnnyt merged 1 commit into
mainfrom
se-tdlr-poll-for-crash-report
Nov 23, 2026
Merged

johnnyt merged 1 commit into
mainfrom
se-tdlr-poll-for-crash-report

Conversation

@johnnyt

@johnnyt johnnyt commented Nov 23, 2026

Copy link
Copy Markdown
Member

What

The screen editor page's crash report tests no longer wait a fixed 100 ms for the report. wait_for_crash_report/1 monitors the page process and waits, bounded at one second, for its exit, with a failure message that names the cause. The duplicate-wait in the GenServer-based test is dropped, since that test already waits for the exit.

Why this is enough

A crashing GenServer logs its crash report from its own process before it exits, so the report is in the capture once the exit is seen. The tests still assert the report lines were captured (terminating, Last message, State: ).

Evidence

  • Changed test file run 15 times in a row: all green.
  • Full mix quality green on the committed tree.
  • Mutation: replacing the wait with an immediate no-op also passes locally, so the tests do not discriminate the wait itself (the race it guards cannot be provoked on demand); the monitor is the deterministic guarantee, not a timing fix.

Test-only change; no production code, no new surface.

The crash report tests slept a fixed 100 ms for the report to reach
the capture. They now monitor the page process and wait, bounded at
one second with a named failure, for its exit; a crashing process
logs its report before it exits, so the report is in the capture by
then. The tests still assert the report lines were captured.
@johnnyt
johnnyt merged commit de4cb52 into main Nov 23, 2026
4 checks passed
@johnnyt
johnnyt deleted the se-tdlr-poll-for-crash-report branch November 23, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant