ci: build/test/check/doctor on macOS + Linux + automation smoke test#6
Merged
Conversation
Adds .github/workflows/ci.yml with two jobs: - verify (macOS + Linux): native doctor, validate, headless null-platform tests (native test -Dplatform=null), and strict markup/manifest check; macOS also builds the release binary. - smoke (Linux, Xvfb): builds the app with automation enabled, drives it headless through the embedded automation server, asserts the widget tree rendered non-blank, and uploads the deterministic screenshot. scripts/smoke.sh is the portable driver — Xvfb in CI, direct launch on a local desktop — so the same smoke test runs everywhere. Closes #2
Run the app under a private session bus (dbus-run-session) with the accessibility bus disabled (GTK_A11Y=none) so it no longer aborts on the missing a11y DBus service under Xvfb. Drop the GPU-dependent gpu_nonblank assertion — the semantics-tree and screenshot checks are GPU-independent and sufficient. Add dbus to the job's apt packages.
Ubuntu 24.04 GitHub runners set kernel.apparmor_restrict_unprivileged_userns=1, which blocks the user namespace bubblewrap needs to sandbox the SDK's dbus-proxy (bwrap: setting up uid map: Permission denied). Relax the sysctl before launching the app.
This was referenced Jul 11, 2026
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.
Summary
Continuous integration as the merge gate, plus an automation-driven smoke test that proves the window actually opens and renders.
Jobs
verify (macOS + Linux matrix)
0.16.0+@native-sdk/cli@0.4.1native doctor(--stricton macOS)native validate app.zonnative test -Dplatform=null— headless logic + view tests (canvas engine, no display), so they run identically on both OSesnative check --strict— markup + manifest against the model contractnative buildon macOSsmoke (Linux · Xvfb) — the blessed Native SDK CI pattern
-Dautomation=true, launch under a virtual framebuffernative automate wait→assertthe widget tree rendered non-blank (gpu_nonblank=true, buttons, header,count: 0) →assert --absent 'error event='Testing
native test -Dplatform=nullverified locally (headless).scripts/smoke.shverified locally on macOS (direct launch): 7/7 assertions matched, no runtime errors, screenshot delivered, clean teardown. The Linux/Xvfb path is exercised by this PR's CI run.The script is portable — Xvfb when available (CI), direct launch otherwise (local desktop) — so the same smoke test runs everywhere.
Closes #2