Skip to content

test(desktop-lite): fix transient failures#550

Merged
sjinks merged 2 commits into
trunkfrom
fix-desktop-lite-tests
Jul 27, 2026
Merged

test(desktop-lite): fix transient failures#550
sjinks merged 2 commits into
trunkfrom
fix-desktop-lite-tests

Conversation

@sjinks

@sjinks sjinks commented Jul 27, 2026

Copy link
Copy Markdown
Member

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.sh to help ensure that services have time to start before their status is checked.

Improvements to service checks:

  • Added sleep 1 after restarting the tigervnc, openbox, and novnc services in checks.sh to reduce the chance of race conditions when checking service status.

Code cleanup:

  • Removed a duplicate shebang line from the top of test.sh.

@sjinks sjinks self-assigned this Jul 27, 2026
Copilot AI review requested due to automatic review settings July 27, 2026 10:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/bash line from features/test/desktop-lite/test.sh.
  • Added brief waits after restarting tigervnc, openbox, and novnc in features/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 1 is both slower and less reliable than waiting (with a timeout) for sv status to report run:.
    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.sh scripts, use the >/dev/null redirect 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.

Comment thread features/test/desktop-lite/checks.sh
Comment thread features/test/desktop-lite/checks.sh Outdated
@sjinks
sjinks force-pushed the fix-desktop-lite-tests branch 2 times, most recently from a1338c3 to 0ca8180 Compare July 27, 2026 11:54
@sjinks
sjinks merged commit dfb726d into trunk Jul 27, 2026
439 of 440 checks passed
@sjinks
sjinks deleted the fix-desktop-lite-tests branch July 27, 2026 12:16
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