dotnet / dotnet/runtime

[ci-scan] Test failure: System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_* on android and tvos

Open
#127,951 6 comments 0 reactions 0 assignees View on GitHub
agentic-workflows area-Diagnostics-coreclr disabled-test Known Build Error os-android
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

## Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1413202
Build error leg or test failing: android-arm64 Release AllSubsets_CoreCLR - System.Threading.Tasks.Tests and tvos-arm64 Release AllSubsets_CoreCLR - System.Threading.Tasks.Tests

## Error Message

```json
{
"ErrorMessage": "[FAIL] System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```

## Additional Context

**Summary:** Multiple `AsyncProfilerTests.RuntimeAsync_*` tests consistently fail on android-arm64 and tvos-arm64 in the runtime-extra-platforms pipeline. The async profiler EventPipe events (suspend/resume/create callstacks) are not emitted on these mobile platforms, causing assertion and collection-empty failures.

**Failed in (10+):**
- [runtime-extra-platforms 1413202](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1413202) (2026-05-08)
- [runtime-extra-platforms 1411505](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1411505) (2026-05-07)
- [runtime-extra-platforms 1406427](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1406427) (2026-05-03)
- All 10 checked builds in the window show android-arm64 CoreCLR failing

**Console Log:** [android-arm64 Console Log](https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-72fc1f2defca430983/System.Threading.Tasks.Tests/1/console.c012c0cd.log?helixlogtype=result)

**Failed tests:**
```
runtime-extra-platforms (android-arm64 Release AllSubsets_CoreCLR)
- Windows.11.Amd64.Android.Open
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_WrapperIndexMatchesCallstack
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_UnhandledExceptionUnwind
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_SuspendCallstackDepthMatchesChain
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_SuspendAsyncCallstackEmittedOnAwait
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_CallstackDepthMatchesChain
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_CreateCallstackDepthMatchesChain
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_SuspendCallstackDeeperThanInitialResume
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_SuspendResumeCompleteEvents
- System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_CallstackStressWithVaryingDepths

runtime-extra-platforms (tvos-arm64 Release AllSubsets_CoreCLR)
- osx.15.amd64.appletv.open
- Same AsyncProfilerTests.RuntimeAsync_* tests failing
```

**Error Message:**
```
[FAIL] System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_WrapperIndexMatchesCallstack
Expected callstack with 4 frames, got 3
```

**Stack Trace:**
```
at System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_WrapperIndexMatchesCallstack()
at System.Threading.Tasks.Tests.AsyncProfilerTests.RuntimeAsync_SuspendCallstackDepthMatchesChain()
Assert.NotEmpty() Failure: Collection was empty
````

**Impact on platforms:**
- runtime-extra-platforms + android-arm64 + Windows.11.Amd64.Android.Open + exit code 1
- runtime-extra-platforms + tvos-arm64 + osx.15.amd64.appletv.open + exit code 1

**First build it occurred:** First seen in build [1396313](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1396313) (2026-04-25) within the scanned window (earliest of 10 checked builds). 10/10 builds affected. Note: this is the earliest in the scanned window and may not be the true origin.

**Recommended action:** The `AsyncProfilerTests.RuntimeAsync_*` tests rely on EventPipe async profiler events that are not supported on mobile platforms (android, tvos). These tests should be annotated with `[ActiveIssue]` for mobile platforms or the test infrastructure should skip them when runtime async profiling is unavailable. Area owners: `@AaronRobinsonMSFT`, `@dotnet/diagnostics.`

> Generated by [CI Outer-Loop Failure Scanner](https://github.com/dotnet/runtime/actions/runs/25556904133/agentic_workflow) · ● 26.1M · [◷](https://github.com/search?q=repo%3Adotnet%2Fruntime+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Fruntime%2Fci-failure-scan%22&type=issues)

### Report
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|0|

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.