Skip to content

Give the dialog capture test's Node helper room to start on a slow runner - #108

Merged
AdamXweb merged 1 commit into
mainfrom
fix/dialog-test-timeout
Nov 10, 2026
Merged

AdamXweb merged 1 commit into
mainfrom
fix/dialog-test-timeout

Conversation

@adamXbot

Copy link
Copy Markdown
Collaborator

What failed

CI on main after #106 failed in Unit tests (Windows, py3.12): 863 of 864 tests passed, and test_dialog_capture.DialogSnapshotTests.test_draw_failure_releases_snapshot_and_dismisses_prompt errored with subprocess.TimeoutExpired after 10 seconds.

Why

The test runs a short script under Node with a 10-second limit. The script takes milliseconds; the time is Node starting, and this is the first test in the job to start it.

Run First Node start Later starts
Four earlier passing runs (Windows) 2.1 to 2.5 s about 0.06 s each
The failing run over 10 s (the limit) about 0.7 s each

So the runner was roughly ten times slower than usual for that job, and the cold start crossed the limit. Nothing in #106 touches this test or core.DIALOG_VIEW, and the identical tree passed the same job on the pull request minutes earlier.

The fix

The limit is 120 seconds. It still ends a real hang; it no longer measures the runner.

How it was tested

python -m unittest tests.test_dialog_capture passes locally (0.3 s). The failure itself needs a slow Windows runner, so it was not reproduced.

🤖 Generated with Claude Code

…nner

The Windows unit tests failed on main after #106 with a timeout in
test_draw_failure_releases_snapshot_and_dismisses_prompt. The test runs a
short script under Node and allowed it ten seconds. The script itself
takes milliseconds; the time is Node starting, and this test is the first
in the job to start it. That first start takes a little over two seconds
on the Windows runner normally. On that run every later start was ten
times slower than usual as well, and the first one passed the limit.

The same tree had passed the same job on the pull request minutes
earlier. The limit is now 120 seconds: still an end to a real hang, no
longer a measure of the runner.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@AdamXweb
AdamXweb merged commit 0a17088 into main Nov 10, 2026
20 checks passed
@AdamXweb
AdamXweb deleted the fix/dialog-test-timeout branch November 10, 2026 13:33
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.

2 participants