Skip to content

test: wait for the owned Windows frontend window before shutdown - #1413

Merged
zackees merged 2 commits into
masterfrom
fix/windows-startup-window-wait
Oct 18, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/windows-startup-window-wait

Conversation

@zackees

@zackees zackees commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #1412. The previous release candidate passed all package builds, C/Rust compatibility suites and AppImage/macOS/Windows ARM64 runtime checks, but Windows x64's migrate-default scenario failed at the harness's immediate, one-shot visible-window search. WebSocket readiness, capture/profile and screenshot checks had passed; fresh startup/shutdown passed just before it.

Wait at most 30 seconds for a visible HWND owned by the launched PID before posting WM_CLOSE. Preserve the existing clean-exit requirement and all profile/module/runtime assertions. An unrelated PID, permanently invisible window, premature process exit or Win32 API error stays fatal. Timeout diagnostics include owned HWND visibility. No application, WebSocket plugin, ABI, package contents, workflow files or Rust target inventory change.

RED → GREEN

  • RED ed0b53318: uv run --no-project python -m unittest ci.test_packaged_startup.WindowsCloseFrontendTest fails delayed-visibility scenario with cannot find the owned frontend window for clean shutdown.
  • GREEN: delayed visibility passes only after the second enumeration; wrong PID and permanently invisible windows fail with a bounded deadline.
  • All 32 focused startup/ZIP/runtime-mutation checks passed (PYTHONPATH=ci uv run --no-project python -m unittest ci/test_packaged_startup.py ci/test_windows_runtime_mutation.py ci/test_windows_zip_check.py). Full ./lint passed (48.2s), and the existing independent reviewer is clean.

This fixes a missing readiness wait in the harness. The actual cause of the observed Windows run remains subject to packaged integration confirmation: publication must still pass that same real startup/shutdown gate. Failure evidence: run39113292145, job117636755657. Earlier missing-runtime DLL errors in that job were an expected mutation test, not a defective ZIP.

@zackees
zackees enabled auto-merge October 18, 2026 09:16
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit 065fa7d Oct 18, 2026
22 checks passed
@zackees
zackees deleted the fix/windows-startup-window-wait branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Windows packaged startup probes the owned window only once before shutdown

1 participant