Skip to content

test: give AI thread-boundary checks a dedicated caller - #209

Merged
mikhalchankasm merged 1 commit into
mainfrom
codex/test-dedicated-infrastructure-caller-20261004
Oct 4, 2026
Merged

mikhalchankasm merged 1 commit into
mainfrom
codex/test-dedicated-infrastructure-caller-20261004

Conversation

@mikhalchankasm

@mikhalchankasm mikhalchankasm commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

CI 37188784054 exposed a false failure in the AI off-thread assertion: an async xUnit test returned its caller thread to the pool at await, then Task.Run legitimately reused that thread ID. Use a dedicated caller held alive through the assertions in all three tests that require a stable UI-thread identity. The helper releases blocked fakes and joins the owned caller on success, failure and cancellation.

Closes #208; unblocks #207. Production code, all existing assertions, the 15-second deadlock watchdog, collection isolation and test counts are unchanged.

Validation: all 9 AISettingsInfrastructureExecutor tests passed with no skips or build/analyzer warnings after a clean normal rebuild. A temporary MSBuild override outside Git compiled an inline-execution mutant of RunBlockingAsync/RunTransportAsync into the test assembly: all three boundary tests failed immediately on their intended thread assertions (not timeouts), proving they still detect UI-thread work. The normal test assembly was then rebuilt without the override and passed. Incremental output retained the mutant during the first restoration attempt; its owned test processes were stopped and the successful forced rebuild removed that experimental output. No production source or installed bundle was altered by the experiment. Final clean SHA 4266fa8 passed Release2024/2025/2026/2027 x64 L2. Both CI runs passed (37189510391 / 37189499330), including the full 2,358-test suite with zero skips and all repository/distribution guards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TECH-W10 follow-up — Isolate AI executor caller-thread tests

1 participant