dotnet / dotnet/BenchmarkDotNet
DisassemblyDiagnoserTests randomly failed on CI (macos(arm64))
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 1.1k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 11
Description
On CI environment,
DisassemblyDiagnoserTests randomly failed with following exception.
**StackTrace**
```
CanDisassembleAllMethodCallsUsingFilters(jit: RyuJit, platform: X64, toolchain: .NET 8.0) [FAIL]
System.InvalidOperationException : Sequence contains no elements
Stack Trace:
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
/Users/runner/work/BenchmarkDotNet/BenchmarkDotNet/tests/BenchmarkDotNet.IntegrationTests/DisassemblyDiagnoserTests.cs(114,0): at BenchmarkDotNet.IntegrationTests.DisassemblyDiagnoserTests.CanDisassembleAllMethodCallsUsingFilters(Jit jit, Platform platform, IToolchain toolchain)
at InvokeStub_DisassemblyDiagnoserTests.CanDisassembleAllMethodCallsUsingFilters(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
```
It seems disassembler silently failed on some conditions https://github.com/dotnet/BenchmarkDotNet/issues/2637
Currently this issue is observed on `test-macos (x64)` only.
- https://github.com/dotnet/BenchmarkDotNet/actions/runs/24426573098
- https://github.com/dotnet/BenchmarkDotNet/actions/runs/24440083195
- https://github.com/dotnet/BenchmarkDotNet/actions/runs/24927496657/job/72999787674
Contributor guide
Assessment
This issue has not been assessed yet.