Skip to content

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

@github-actions

Description

@github-actions

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

{
  "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+):

Console Log: android-arm64 Console Log

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 (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 · ● 26.1M ·

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-androiduntriagedNew issue has not been triaged by the area owner

    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