Repository navigation
Description
- Work Mode: full-bug
Summary
The CI mstest-coverage job intermittently aborts with "Test host process crashed" while the UtilitiesCS.Test OutlookFolderTreeService concurrency, disposal and invalidation tests are running. No assertion fails; the test host process dies, so the run reports an unknown total and fails the job.
Environment
- OS/version: GitHub Actions
windowsrunner, Visual Studio 18 test platform (vstest.console.exe) - Python version: not applicable (C# .NET Framework 4.8 MSTest)
- Command/flags used:
scripts/vscode/Invoke-MSTestWithCoverage.ps1via the CImstest-coveragejob - Data source or fixture: UtilitiesCS.Test
OutlookFolderTreeServiceConcurrencyTests,OutlookFolderTreeServiceDisposalTests,OutlookFolderTreeServiceInvalidationTests
Steps to Reproduce
- Run the CI workflow on a pull request (observed on PR fix(quickfiler): EFC recursive subfolder selection, trash selection, and QFC nested indentation (#1002) #1003, run 39794073798, attempt 1, head e94c261).
- Observe the
mstest-coveragejob: 4622 tests pass, then "The active test run was aborted. Reason: Test host process crashed". - Re-run the failed job on the same commit: attempt 2 passed all checks, so the crash is intermittent.
Expected Behavior
The MSTest run completes deterministically; no test leaves an unhandled exception on a background or dispatcher thread that can terminate the test host.
Actual Behavior
Intermittent test host crash. The last tests reported before the crash were GetSnapshotAsync_WorkerOriginatedColdBuild_UsesCapturedStaDispatcher, Dispose_DuringRefresh_LeavesDisposedWithoutPublicationOrNotification, FolderChanged_DuringInFlightBuild_SchedulesOneFollowUpRefresh, NotificationRefreshAndDispose_RunOnTheCapturedDispatcher and NotificationRefresh_RunsOnCapturedDispatcher.
Logs / Screenshots
- Attached minimal logs or screenshot
- Snippet:
The active test run was aborted. Reason: Test host process crashed : Process path: ...\TestPlatform\Extensions\..\testhost.exe/Test Run Aborted. Total tests: Unknown Passed: 4622
Impact / Severity
- Blocker
- High
- Medium
- Low
Source
From: docs/features/potential/2026-10-22-ci-mstest-testhost-crash-in-folder-tree-service-tests.md
Activity
drmoisan commentedon Oct 22, 2026
Suspected Cause / Notes
--Blame(crash collection) to the CI vstest invocation would name the test that was running.OutlookFolderTreeServiceor these test classes; its UtilitiesCS changes are synchronous types only.Proposed Fix / Validation Ideas
OutlookFolderTreeServiceagainst post-dispose execution; make the concurrency tests join or drain their dispatcher threads before returning