Repository navigation
test(desktop): stabilize live zenity Xvfb tests - #221
Merged
Merged
Conversation
Run the GTK exec test with session isolation like production exec. Turn off the caret blink in the capture fixture and wait for the typed text against the settled before frame instead of comparing the immediate after capture.
This was referenced Oct 3, 2026
Closed
Closed
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.
This fixes the two live zenity Xvfb tests that flaked in CI on #216.
The GTK exec test waits for its window by polling, but its 15 s bound was too tight for the first CI test step, where every test file runs in parallel. In 13 earlier CI jobs, this test took 2.0 to 10.0 s in
bun run testand about 0.5 s in the laterbun run test:coveragestep of the same job. One run went past 15 s. The bound is now 30 s, the production default fordesktop exec, and the test timeout is 60 s. An earlier commit on this branch tried session isolation instead. CI showed that it did not change the timing, so a later commit reverts it.The capture test compared the before capture with the after capture of
desktop_type. The after capture follows input completion, and the app may not have redrawn yet. The product does not promise that redraw. The GTK caret also blinks, so the old check mostly passed because of the blink. The fixture now turns off the caret blink in the session's private config home. Before it types, the test requires the screen to stay stable for 1.3 s, longer than one blink cycle, within 8 s, shorter than GTK's 10 s blink timeout. A live caret therefore fails that step. Then the test waits for the typed text to change the screen against the before capture.Only test files change. There is no QA device pass, because there is no UI, CLI output or app behavior to drive. The loaded local runs below replace it.
Closes #217
execAppalready polls every 100 ms. The whole integration file ran unloaded. The GTK test ran 10 times under 7-burner load.desktop_typeinput stage (#222). There were no stable-wait or change-wait failures. With the blink on, the stable wait timed out as intended.testjob, repeated attempts at each headPICKFORGE_REQUIRE_*flags, typecheck, oxlint and PickCheck 0.4.0 against origin/main, at the merged head 46c1475Under heavy load on one core,
desktop_typeitself sometimes fails closed with "no text was sent". The old and new tests both hit it. The cause is the 250 ms server grab bound inx11-wire.ts. That bound is product behavior, so it is tracked in #222. The after capture can come before the redraw, and #223 tracks that product question.