Establish layered Rust/Tauri tests and gated releases #4

Merged
exler merged 2 commits from camila/testing-foundation into main 2026-10-17 07:31:25 +02:00
Collaborator

Summary

  • Replace two custom dump-DOM runners with Playwright Test, preserving real frontend regression cases and strict official Tauri mocks/native-menu fixtures.
  • Separate renderer-only tests, Rust database/local-operation tests, mock-runtime IPC tests and a real Tauri/WebKit desktop smoke example.
  • Add test/config type checking, fail-closed runner guards, synthetic data and isolated desktop profile.
  • Verify pushes/PRs/version tags; tag release publishing depends on verification. Document commands and boundaries in TESTING.md.

Verification (executed locally, independently repeated by parent)

  • 25 Playwright tests passed in Chromium.
  • 18 Rust tests passed, including mock-runtime IPC serialization/argument/state/error coverage.
  • 2 runner-guard tests passed (occupied non-HTTP port, empty suite).
  • Real Tauri/WebKit desktop smoke passed: rendered Rust-backed mailbox, UI sort IPC, setting persistence, malformed/forbidden command rejection. Separate Cargo example reuses production local handlers; no automation switch or test handlers added to shipping app.
  • Frozen install, both TypeScript projects, Biome, production frontend build, strict all-target Clippy, scoped Rust formatting and git diff --check passed.
  • Agent also compiled production binary and native example. Negative/mutation evidence: inherited-property mock commands fail before guard, pending-move guard mutation fails its regression.
  • Independent review: no blocking findings.

Scope / limitations

  • Existing Rust files have baseline global formatting debt; new Rust modules/example/fixture have a scoped format gate, avoiding unrelated churn.
  • Browser tests mock native boundary; desktop example only covers shared local read/settings commands, not real IMAP/SMTP, credentials or native menus. No real mail/accounts/profile used.
  • Existing optimistic cache/keyring behavior deliberately unchanged.
  • Headless ResizeObserver/portal warnings observed; assertions passed.
  • Remote Forgejo integration pending first run. Release packaging/publishing not exercised; no version tag created.

First remote run / compatibility fix

The first Forgejo run exposed a runner assumption: the debian label actually uses Ubuntu 24.04, where Chromium is Snap-backed, so /usr/bin/chromium was absent. Switched CI to Playwright-managed Chromium (playwright install --with-deps chromium); local system Chromium remains supported. Head 95373ff passed remote verification on both push (run 580) and pull_request (run 581): renderer tests, runner guards, Rust tests/Clippy/format gate, and real native desktop smoke. Tag-only release packaging/publication remains intentionally unexecuted.

## Summary - Replace two custom dump-DOM runners with Playwright Test, preserving real frontend regression cases and strict official Tauri mocks/native-menu fixtures. - Separate renderer-only tests, Rust database/local-operation tests, mock-runtime IPC tests and a real Tauri/WebKit desktop smoke example. - Add test/config type checking, fail-closed runner guards, synthetic data and isolated desktop profile. - Verify pushes/PRs/version tags; tag release publishing depends on verification. Document commands and boundaries in TESTING.md. ## Verification (executed locally, independently repeated by parent) - 25 Playwright tests passed in Chromium. - 18 Rust tests passed, including mock-runtime IPC serialization/argument/state/error coverage. - 2 runner-guard tests passed (occupied non-HTTP port, empty suite). - Real Tauri/WebKit desktop smoke passed: rendered Rust-backed mailbox, UI sort IPC, setting persistence, malformed/forbidden command rejection. Separate Cargo example reuses production local handlers; no automation switch or test handlers added to shipping app. - Frozen install, both TypeScript projects, Biome, production frontend build, strict all-target Clippy, scoped Rust formatting and git diff --check passed. - Agent also compiled production binary and native example. Negative/mutation evidence: inherited-property mock commands fail before guard, pending-move guard mutation fails its regression. - Independent review: no blocking findings. ## Scope / limitations - Existing Rust files have baseline global formatting debt; new Rust modules/example/fixture have a scoped format gate, avoiding unrelated churn. - Browser tests mock native boundary; desktop example only covers shared local read/settings commands, not real IMAP/SMTP, credentials or native menus. No real mail/accounts/profile used. - Existing optimistic cache/keyring behavior deliberately unchanged. - Headless ResizeObserver/portal warnings observed; assertions passed. - Remote Forgejo integration pending first run. Release packaging/publishing not exercised; no version tag created. ## First remote run / compatibility fix The first Forgejo run exposed a runner assumption: the `debian` label actually uses Ubuntu 24.04, where Chromium is Snap-backed, so `/usr/bin/chromium` was absent. Switched CI to Playwright-managed Chromium (`playwright install --with-deps chromium`); local system Chromium remains supported. Head `95373ff` passed remote verification on both push (run 580) and pull_request (run 581): renderer tests, runner guards, Rust tests/Clippy/format gate, and real native desktop smoke. Tag-only release packaging/publication remains intentionally unexecuted.
Establish layered Rust and Tauri testing with release gates
Some checks failed
Verify and release / verify (push) Failing after -16s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Has been cancelled
Verify and release / build (pull_request) Has been cancelled
52c8140640
Install Playwright-managed Chromium on Ubuntu-based runner
All checks were successful
Verify and release / verify (push) Successful in 3m16s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Successful in 3m18s
Verify and release / build (pull_request) Has been skipped
95373ff650
exler merged commit 349320bb2e into main 2026-10-17 07:31:25 +02:00
exler deleted branch camila/testing-foundation 2026-10-17 07:31:25 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/ambassador!4
No description provided.