Skip to content

test(desktop): replace mocked residency coverage with NSH runtime tests - #6770

Merged
M4n5ter merged 1 commit into
rust-previewfrom
test/desktop-residency-behavior
Nov 11, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
test/desktop-residency-behavior

Conversation

@me2seeks

@me2seeks me2seeks commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replace the mocked desktop-residency suite with three behavior tests using the existing NSH headless runtime, real QuickJS/reactivity, product modules, and native menu-event dispatch. Remove the separate implementations of signals, effects, cleanup, windows, tray callbacks, and module loading.

Cover close/hide/reopen with an edited Unicode draft, event processing while hidden, callback cleanup and remount, locale/icon updates, platform guards, Quit dispatch, and actual Bootstrap ownership without a root UI. Existing native tray-loss, delayed-hide, Quit, and terminal-isolation coverage remains unchanged. No production behavior changes.

Refs #6723.

Verification

  • cargo test --locked -p maka-workbench --lib desktop_residency_tests -- --nocapture: 3 passed.
  • Affected Rust formatting, TSX Biome checks, and git diff --check: passed.
  • Existing CI planner with actual Cargo metadata selects the Root Rust suite for both the PR diff and a fixture-only change. Archive replay uses a source checkout with workspace remapping.
  • Not run: full repository suites, standalone UI typecheck, archive replay, or new native GUI acceptance.

Coverage boundary

These tests exercise the NSH desktop command/event boundary. Session and work markers belong to the fixture; they do not establish Agent/provider execution, real OS tray behavior, or final process exit. Those native boundaries remain covered by the retained platform tests.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Maka authored the test replacement and verification. OpenAI Codex reviewed and independently verified the focused runtime tests and CI routing.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

Remove the hand-written signal, lifecycle, window, tray and module-loader environment. Exercise close/reopen, owner disposal, Bootstrap ownership and Quit through real NSH execution, preserving the existing native regression tests.

Generated-by: Maka
@github-actions github-actions Bot added the effort/L Under 1000 readable lines label Nov 11, 2026
@M4n5ter
M4n5ter merged commit 191bfda into rust-preview Nov 11, 2026
24 of 31 checks passed
@M4n5ter
M4n5ter deleted the test/desktop-residency-behavior branch November 11, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/L Under 1000 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants