Skip to content

Flaky CI: MTP/TRX host fails when suite filters select zero tests #10754

Description

@ReubenBond

Description

Orleans.Analyzers.Tests intermittently causes a filtered Microsoft.Testing.Platform CI job to fail when the active suite filter selects zero tests from that assembly. The suite continues and reports no failed tests, but the assembly exits unsuccessfully during test-host shutdown.

This has reproduced on unrelated pull requests and different operating systems/frameworks.

Occurrences

PR #10746

Orleans.Analyzers.Tests.dll (net8.0|x64) Zero tests ran (28s 485ms)
Exit code: 7
Standard output: Waiting 10 seconds for foreground threads to exit...
Error output: [FATAL ERROR] Foreground threads were left running, forcing process exit

The overall run reported 501 total tests, 482 succeeded, 19 skipped, 0 failed, and 1 test-application error.

PR #10739

Orleans.Analyzers.Tests.dll (net10.0|x64) Zero tests ran (37s 377ms)
Exit code: 134
Unhandled exception. System.TimeoutException: The operation has timed out.
   at Microsoft.Testing.Platform.Helpers.TaskExtensions.TimeoutAfterAsync(...)
   at Microsoft.Testing.Extensions.TrxReport.Abstractions.TrxProcessLifetimeHandler...

Expected behavior

A test application containing no tests which match the suite filter exits successfully and releases all MTP/TRX resources without delaying or failing the aggregate CI job.

Notes

The failures occur in the analyzer test assembly under suite filters which select no analyzer tests. The different shutdown symptoms may share test-host or TRX lifetime cleanup behavior. The failed PR #10746 job is being rerun to confirm the intermittent nature.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions