Skip to content

test: read the WebKit colours test's first words after a rendering update - #6436

Merged
max-sixty merged 1 commit into
mainfrom
fix/webkit-colours-read-after-render
Nov 19, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/webkit-colours-read-after-render

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#6415 made test_o_gives_marked_words_their_own_colours_back read the re-shown link mark after a rendering update, since WebKit can screenshot words before it paints a highlight just registered. The test's first reading has the same race. It reads the unmarked string's syntax colour right after lf-token-syn-string is registered, and on a starved macOS runner WebKit hadn't painted it yet, so the string read grey (74, 78, 83); the hidden-annotations check then compared the marked string's correct blue (29, 79, 107) against that grey and failed. The test now waits for rendered after each scheme change, before that reading. It's a test fix: WebKit does paint the colour.

Evidence, from CI's macOS runner running only this test as 20 copies one at a time beside four busy loops (flake="--workers 1 --load 4 …", the dispatch input #6434 adds): main failed it at this reading in 17 of 20 (run 44407433212) and, after today's later merges, in 15 of 20 (run 44410667696), and this change passed 20 of 20 (run 44410662485). The nightly hasn't shown this reading fail; the load here is harsher than the nightly's.

Refs #6303. Found while checking that the new dispatch input reproduces the failure #6415 fixed.

This was written by Claude Code on behalf of max-sixty

…date

#6415 made test_o_gives_marked_words_their_own_colours_back read the
re-shown link mark after a rendering update, since WebKit can screenshot
words before it paints a highlight just registered. The test's first
reading has the same race: it reads the unmarked string's syntax colour
right after `lf-token-syn-string` is registered, and on a starved macOS
runner WebKit had not yet painted it, so the string read grey
(74, 78, 83) and the hidden-annotations check then compared the marked
string's correct blue (29, 79, 107) against grey. The test now waits for
`rendered` after each scheme change, before that reading.
@max-sixty
max-sixty merged commit da54f91 into main Nov 19, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/webkit-colours-read-after-render branch November 19, 2026 07: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.

2 participants