Repository navigation
Wait for each tile's own encode in the content-interval test (851-4502) - #1511
Merged
pondorasti merged 2 commits intoNov 27, 2026
Merged
pondorasti merged 2 commits into
pondorasti merged 2 commits into
Conversation
… past what was already recorded (851-4502) The test read `encoder.requests.count + 1` after pushing the frame. When the host encoded the frame before that read, the target was one past the encode that was coming, and the wait ran into the suite's 60 s limit (one in four full ScreenSharingV2Tests runs). It now waits for the frame's own index, whichever order the two land in. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ver comes (851-4502) Co-Authored-By: Claude Opus 5.5 <[email protected]>
pondorasti
deleted the
alexandru/851-4502-screen-sharing-host-content-interval-test
branch
November 27, 2026 17:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes 851-4502
ScreenSharingV2HostContentIntervalTests.eachTileCarriesTheTimeSinceItsOwnContentChanged(from #1508) hung for its 60 s limit in one of four fullScreenSharingV2Testsruns. A hang there can turn main's Build red.Cause
After pushing each frame, the test waited for
encoder.requests.count + 1encodes, reading the count after the push. When the host encoded the frame before that read, the target was one past the encode that was coming, so the wait never ended.Forcing that order (waiting for the encode before reading the count) reproduces the failure exactly: the 60 s time limit, then
encoder.requests.map(\.update.tiles) == [[0, 1], [0], [0], [1]]failing.Fix
The test waits for the frame's own index (
index + 1encodes), so the order in which the push and the read land doesn't matter. It is the only test in the package that read its wait target after the trigger.Proof
ScreenSharingV2Tests: 13 full runs of 206 tests, all passed (M1 Pro, with timeouts).swift:format:checkandswift:lint.Code review
One finding, fixed: if an encode never came, the time limit would end the wait and
requests[index]would read past the end, crashing the whole test process. A#requirenow turns that into this test's failure.Test-only change; nothing in the app changes.
🤖 Generated with Claude Code