Skip to content

Serialize headless UI tests to avoid dispatcher races - #45

Merged
Marc-André Moreau (mamoreau-devolutions) merged 2 commits into
masterfrom
copilot/investigate-ci-failure
Sep 25, 2026
Merged

Marc-André Moreau (mamoreau-devolutions) merged 2 commits into
masterfrom
copilot/investigate-ci-failure

Conversation

@mamoreau-devolutions

@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

The Windows build-and-test job intermittently fails during Avalonia headless test cleanup with a cross-thread dispatcher exception. The affected window-action tests can open a real terminal session asynchronously, leaving PTY output callbacks active while Avalonia resets its dispatcher between tests.

Run the window-action tests with a settings-only initial activation so they exercise UI actions without starting a PTY; wait for initial activation before closing the final tab. Also serialize headless UI test classes, matching the existing Control test setup, to avoid concurrent dispatcher initialization.

Local validation: all 14 UI tests pass, including six consecutive runs after the settings-only startup change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
publish-dry-run — 722715f4 Deployed Sep 25, 2026 by mamoreau-devolutions via MSI packages #272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant