Repository navigation
test(desktop): bound the screenshot wait paint budget by the window lifetime - #198
Merged
Merged
Conversation
…ifetime Under heavy CPU load the final changed wait in screenshot-wait-live timed out even though 8 to 17 samples fit in its 5 s budget. xdotool lists the zenity window as soon as it is mapped, while GTK paints its first frame 250 ms later unloaded and 6 s or more later when zenity is starved, so the 5 s budget bounded a starved paint rather than change detection. Keep the zenity window alive for 30 s and give the pixel-change wait 20 s of that lifetime. Unloaded the wait still returns at the first changed sample; the stable and 400 ms timeout assertions stay strict. Closes #193
3 tasks done
Closed
3 tasks
Member
Author
|
The first run on c6e6fa0 failed in the coverage step at the window wait ( |
2 tasks done
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.
Closes #193
Under the #191 load recipe (32 busy loops at nice 10, tests at nice 15) the final
changedwait inscreenshot-wait-live.test.tstimed out in 1 of 6 instrumented runs and 4 of 4 real runs. The issue's hypothesis was that too few samples fit in 5 s. Measured: 8 to 17 samples fit. The real cause is thatxdotool search --onlyvisiblelists the zenity window as soon as it is mapped, while GTK paints its first frame about 250 ms later unloaded and 6 s or more later when zenity is starved. The 5 s budget bounded a starved GTK paint, not change detection.Change (test only): zenity window lifetime 30 s, pixel-change wait 20 s of that lifetime, test timeout 60 s. The change detection, the stable wait, and the 400 ms timeout assertion are unchanged, and unloaded the wait still returns at the first changed sample (test still runs in about 1.8 s).
Verification
Evidence and probe script under
~/.pickforge/investigations/193(not committed).