ci: qemu runtime tests for vscode-weston-launcher#6
Merged
Conversation
Adds:
- lib/oeqa/runtime/cases/vscode_launcher.py: OEQA test suite that
is auto-discovered when this layer's bitbake-layers add-layer
runs. Tests:
VSCodeLauncherInstallTest
.test_weston_ini_has_launcher (postinst worked)
.test_vscode_binary_is_executable
.test_vscode_cli_version (code --version exits 0)
WestonStartedTest
.test_weston_process_running (pgrep weston after boot)
.test_wayland_socket_present (/run/user/*/wayland-0)
VSCodeWaylandLaunchTest
.test_vscode_starts_on_wayland (launch code against the
wayland socket, wait for
it to settle, verify the
process is alive and has
wayland-0 in its fd table)
- .github/workflows/qemu-runtime.yml: weekly cron (Sun 03:17 UTC)
plus manual dispatch. Builds core-image-weston with vscode +
vscode-weston-launcher + wayland-utils, INHERIT += testimage with
TEST_SUITES = ping ssh vscode_launcher. Auto-fires do_testimage
at the end of the build, which boots the image under qemu (with
KVM acceleration from the GHA runner) and runs OEQA via ssh.
Heavy CI: ~1-3 hours from a cold sstate. Weekly cadence keeps it
sustainable; manual dispatch for iteration. Self-hosted runner on
fio can be added later if we want faster turnarounds.
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.
Adds end-to-end runtime tests that boot a Yocto image with vscode + vscode-weston-launcher under QEMU and verify the integration actually works.
OEQA test cases (lib/oeqa/runtime/cases/vscode_launcher.py):
VSCodeLauncherInstallTest
WestonStartedTest
VSCodeWaylandLaunchTest
Workflow (.github/workflows/qemu-runtime.yml):
Doesn't run on PRs (too expensive); manual dispatch is available for iteration. If this becomes a bottleneck a self-hosted runner on the build server can be added in a follow-up.
The launcher-click side of "launches from the weston panel" (UI input injection via wlrctl/ydotool) isn't covered here — that's tracked separately as Phase 3.