Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves desktop-lite startup reliability by synchronizing dependent services/tests with X11/VNC readiness, and bumps the feature version accordingly.
Changes:
- Add an X11 socket wait-and-fail loop in
entrypoint.tplbefore startingopenboxandeasy-novnc. - Add pre-check waits in the test
checks.shfor X11 socket and key processes. - Bump
desktop-litefeature version from1.1.0to1.1.1.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| features/test/desktop-lite/checks.sh | Adds readiness waits, but currently removes post-restart waits and doesn’t fail fast on startup timeouts. |
| features/src/desktop-lite/entrypoint.tpl | Waits for /tmp/.X11-unix/X0 before launching dependent desktop services; exits with error if unavailable. |
| features/src/desktop-lite/devcontainer-feature.json | Version bump to reflect reliability changes. |
Comments suppressed due to low confidence (3)
features/test/desktop-lite/checks.sh:27
- After
sv start tigervnc, the script immediately assertsrun:without waiting for the service to actually transition to running. This can reintroduce the same race/flakiness that the earlier retry loop avoided.
sudo sv stop tigervnc
check "tigervnc is stopped" sudo sh -c 'sv status tigervnc | grep -E ^down:'
sudo sv start tigervnc
check "tigervnc is running" sudo sh -c 'sv status tigervnc | grep -E ^run:'
features/test/desktop-lite/checks.sh:33
- After
sv start openbox, the script immediately assertsrun:without waiting for the service to actually transition to running, which can make this test flaky under load.
sudo sv stop openbox
check "openbox is stopped" sudo sh -c 'sv status openbox | grep -E ^down:'
sudo sv start openbox
check "openbox is running" sudo sh -c 'sv status openbox | grep -E ^run:'
features/test/desktop-lite/checks.sh:39
- After
sv start novnc, the script immediately assertsrun:without waiting for the service to actually transition to running. The previous retry loop was guarding against this race.
sudo sv stop novnc
check "novnc is stopped" sudo sh -c 'sv status novnc | grep -E ^down:'
sudo sv start novnc
check "novnc is running" sudo sh -c 'sv status novnc | grep -E ^run:'
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 improves the reliability of the
desktop-litefeature by ensuring that the X server and related processes are available before starting dependent services or running checks. It also bumps the feature version to reflect these changes.Reliability and startup synchronization:
entrypoint.tplto ensure that the X server socket (/tmp/.X11-unix/X0) is available before startingopenboxandeasy-novnc, exiting with an error if unavailable.checks.shto wait for the X server,openbox, andeasy-novncprocesses to be running before performing service checks, improving test robustness.Versioning:
desktop-litefeature version from1.1.0to1.1.1indevcontainer-feature.json.