Skip to content

CI green on GitHub's slower runners: races in the Notes view regrouping and the demo walk - #64

Draft
tomeyer97 wants to merge 12 commits into
mainfrom
ci-races/slow-runners
Draft

tomeyer97 wants to merge 12 commits into
mainfrom
ci-races/slow-runners

Conversation

@tomeyer97

Copy link
Copy Markdown
Owner

Fixes races that show up only when VS Code is slow (as on GitHub's runners): half in the extension (deleted note written back, empty journey list during a reload, a draft lost when the box opens slowly, a podcast camera move after a seek, tree-node errors, Add Note's box on a busy machine), half in tests that asserted before the UI settled.

Draft: CI is rerun several times here to check it stays green.

… journeys reload

A save that only records where a note's code is no longer re-creates a note file deleted on disk
(an anchor adopted ~600 ms after an agent wrote the note raced its delete, so the note stayed listed).
Reading the journeys again keeps the list until each file is read, so Open Journey during a
settings reload finds the journey.
…e; commands reach the player that has the audio

A reload forgot every journey missing from its folder listing, also one the watcher had read while
the folders were being listed, so a journey written just then was never listed. It now forgets only
the journeys it knew before the listing.

The podcast tests sent their commands to the Listen view even when the journey panel had the audio
(the Listen view goes when nothing is listened to for 3 s, and a new one is locked until clicked), so
on a slow machine a seek went nowhere. They now go where the extension sends its own, and the test
that makes the listened podcast unavailable puts the unlocked Listen view back.
Playing, the step card above the lines shrinks to its header line; on a slow machine that landed after
the test's scroll and shifted the lines it measured.
A test that ended with no journey listened to left the Listen view to go 3 s later, during the next
test; the helper now requires a journey listened to in an unlocked Listen view.
…en; podcast tests read the reader's scroll once it lands

Add Note gave up putting a draft back when its box took over a second to get the keyboard (a busy
machine): the draft was lost. It now waits for the box's input to become the active editor, and drops
the draft's way back when the keyboard goes elsewhere first.

Two podcast tests read the editor's first visible line right after their own reveal, while VS Code was
still settling it; they now read where the reader's scroll lands.
…nearTop rule

Add Code Note…'s test typed as soon as an input box was visible (the one just closed could still be),
and Enter before the text was in it; it now waits for the new box to have the keyboard and the text.
startPlaying chose between the panel and the Listen view with a short timeout; a Listen view with no
click always hands the audio to the panel, so it now waits for that move, and presses Space only if
the audio is not already playing. The reveal-settle rule of two podcast tests is one helper.
…ot one second

On a busy machine a reveal took longer than a second; the redraw then dropped the row VS Code was
resolving, and it logged "Failed to resolve tree node". The time limit stays only for an answer
that never comes.
… seeks meanwhile

A mark's move reveals its line in steps, waiting for VS Code to draw it in between; on a busy machine
its last step landed after a seek had brought the editor back to the beat, and took it to the far
mark again.
…ew is held

VS Code can take the view out (its 'when' turned false) before the dispose arrives; waiting on that
view's page waited ten seconds for nothing, and the podcast didn't start.
… as held

VS Code applies a redraw a little after it is fired (seconds on a busy machine); rows it asks for in
between are of the drawing it is about to drop, and a reveal of one of them failed ("Failed to
resolve tree node").
… ranges, however long that takes

It waited at most a second for VS Code to ask for the ranges, then opened the box anyway; on a busy
machine the box then did not open. It now waits for that request (ten seconds only as a limit for one
that never comes).
…er during a reveal

The clocks of the journeys Claude is writing were redrawn every second straight to VS Code, past the
rule that a reveal under way holds redraws back; VS Code then dropped rows a reveal was resolving.
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