Skip to content

Two harness waits sized for a busy runner - #295

Merged
jcanton merged 3 commits into
mainfrom
reload-wait
Nov 24, 2026
Merged

jcanton merged 3 commits into
mainfrom
reload-wait

Conversation

@jcanton

@jcanton jcanton commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Two timing assumptions in the tests failed on runs whose code had not changed, five times on 2026-11-24.

test_a_reload_comes_back_to_the_line_it_left_from read the editor's scroll position a fixed 700ms after load, while the page restores it from a loop that waits for the editor to lay out. It now polls until the first visible row moves, up to 3s, so a restore that never happens still fails.

tests/browser.py opened every page through Chrome's /json/new at httpx's default 5s timeout. A just-started Chrome on a loaded runner took longer, and three unrelated tests failed with a ReadTimeout from the harness. It now waits up to 30s, in line with the 20s already allowed for Chrome to start.

🤖 Written by an agent on behalf of @jcanton

`test_a_reload_comes_back_to_the_line_it_left_from` read the editor's first
visible row a fixed 700ms after load. The page scrolls back from its own loop,
which waits for the editor to lay out, and on a busy CI runner that sometimes
took longer: the test read line 1 three times on 2026-11-24, on #291 (a version
bump) and twice on #294, and passed on rerun each time. It now polls until the
row moves, with a 3s deadline, so a restore that never happens still fails.

🤖 Written by an agent on behalf of @jcanton
`_devtools` opened each page with `httpx.put` on Chrome's `/json/new` at
httpx's default timeout. On a loaded runner a just-started Chrome took longer,
and three tests about other things failed with a ReadTimeout from the harness on
2026-11-24. Thirty seconds, in line with the twenty already allowed for Chrome to
write its port.

🤖 Written by an agent on behalf of @jcanton
@jcanton jcanton changed the title A reload test waits for the scroll to land, not for 700ms Two harness waits sized for a busy runner Nov 24, 2026
@jcanton
jcanton merged commit ca06045 into main Nov 24, 2026
11 checks passed
@jcanton jcanton mentioned this pull request Nov 24, 2026
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