Repository navigation
test: wait for the owned Windows frontend window before shutdown - #1413
Merged
Merged
Conversation
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
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
ed0b53318:uv run --no-project python -m unittest ci.test_packaged_startup.WindowsCloseFrontendTestfails delayed-visibility scenario withcannot find the owned frontend window for clean shutdown.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./lintpassed (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.