test(desktop-lite): fix transient failures#550
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adjusts the desktop-lite feature’s test scripts to reduce transient CI failures by giving services a moment to come up after restarts, and cleans up a duplicate shebang.
Changes:
- Removed a duplicate
#!/bin/bashline fromfeatures/test/desktop-lite/test.sh. - Added brief waits after restarting
tigervnc,openbox, andnovncinfeatures/test/desktop-lite/checks.sh.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| features/test/desktop-lite/test.sh | Removes a duplicate shebang line at the top of the script. |
| features/test/desktop-lite/checks.sh | Adds post-restart delays for runit-managed services to reduce race conditions during status checks. |
Comments suppressed due to low confidence (3)
features/test/desktop-lite/checks.sh:15
- Same as above: a fixed
sleep 1is both slower and less reliable than waiting (with a timeout) forsv statusto reportrun:.
sleep 1
features/test/desktop-lite/checks.sh:22
- Same as above: consider bounded polling (with timeout) for the service to become
run:rather than a fixed sleep.
sleep 1
features/test/desktop-lite/checks.sh:30
- For consistency with the other feature
checks.shscripts, use the>/dev/nullredirect form here as well.
if hash netstat > /dev/null 2>&1; then
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sjinks
force-pushed
the
fix-desktop-lite-tests
branch
2 times, most recently
from
July 27, 2026 11:54
a1338c3 to
0ca8180
Compare
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 pull request makes minor improvements to the desktop-lite test scripts. The main change is the addition of brief pauses after restarting services in
checks.shto help ensure that services have time to start before their status is checked.Improvements to service checks:
sleep 1after restarting thetigervnc,openbox, andnovncservices inchecks.shto reduce the chance of race conditions when checking service status.Code cleanup:
test.sh.