dotnet / dotnet/BenchmarkDotNet

DisassemblyDiagnoserTests randomly failed on CI (macos(arm64))

Open
#3,086 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.