Skip to content

Benchmark process freeze when running DisassemblyDiagnoserTests with xUnit v3 on macos(x64/arm64) #3076

@filzrev

Description

@filzrev

I'm trying to update BenchmarkDotNet tests to use xUnit v3. (#3065)

But DisassemblyDiagnoserTests cause freeze and cause CI timeout(6h) when running tests with xUnit v3 on macos(x64/arm64)

It's not happen on following conditions.

  1. Running tests on other OS (Windows/Ubuntu).
  2. Run benchmark with dotnet run command on macos

So I'm suspecting the issue has caused by SynchronizationContext(xUnit/BenchmarkDotNet) related problem,
But I don't have any proof.

Minimum reproduceable example code
https://github.com/filzrev/test_ci_on_macos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions