Skip to content

ci(desktop): smoke-test the built app on Linux - #459

Merged
kqesar merged 2 commits into
masterfrom
ci-desktop-smoke
Nov 1, 2026
Merged

kqesar merged 2 commits into
masterfrom
ci-desktop-smoke

Conversation

@kqesar

@kqesar kqesar commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Starts the debug binary under Xvfb after the Rust tests and quits it with SIGTERM. It fails unless the app stays up, serves the overlay API, closes its client with 4410 and exits 0. #457's first SIGTERM handler panicked at launch with every test green; this is the check that was missing.

The script is apps/desktop/scripts/smoke.mjs (xvfb-run -a pnpm --filter @alltp/desktop smoke locally, throwaway home, loopback port). The build reuses the test job's artifacts (about 14 s locally). Linux only; docs/desktop.md and docs/ci.md updated.

Proof of failure and CI cost: see the first comment.

Unit tests passed while the app panicked at launch (a signal handler
installed outside Tauri's runtime). The script runs the real binary on a
virtual display, checks the overlay API answers and that SIGTERM closes its
client with 4410 and exits 0.
Builds the debug binary after the tests (the dev profile reuses their
artifacts) and runs it under xvfb-run.
@kqesar

kqesar commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

Cost: on this PR's run the added steps took 19 s (build) + 6 s (smoke) = about 25 s, plus a few seconds for xvfb xauth in the apt line. The job still runs only for apps/desktop/** and the workflow itself.

Failure proof: the H1 bug (handlers installed on the caller's thread) on a throwaway PR fails the smoke step with the app exited with status 101 at launch / there is no reactor running: https://github.com/kqesar/alltp-tracker/actions/runs/41342535174. Green run: https://github.com/kqesar/alltp-tracker/actions/runs/41342377570.

Linux only: macOS would add a separate job (no Xvfb needed but a full debug build, minutes), not worth it for now.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🔍 CI Results

Check Status
Linting ✅
Type-check ✅
Tests ✅

📊 Test Coverage

Metric Coverage Status
Lines 99.05% 🟢
Statements 98.17% 🟢
Functions 98.58% 🟢
Branches 93.14% 🟢

✅ All checks passed!


Updated at 2026-11-01T19:39:07.711Z

@kqesar
kqesar merged commit 411fecc into master Nov 1, 2026
20 checks passed
@kqesar
kqesar deleted the ci-desktop-smoke branch November 1, 2026 19:42
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.

1 participant