Repository navigation
[ci-scan] Skip ActivityTracking tests on Android Mono (refs #129088) - #129094
Merged
BrzVlad merged 3 commits intoJun 10, 2026
Merged
Conversation
The BasicEventSourceTests.ActivityTracking tests consistently fail on Android because the Activity ID remains zero after EventSource Start/Stop operations. This disables the four affected tests on Android with a reference to the tracking KBE issue. Co-authored-by: Copilot <[email protected]>
Contributor
|
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger |
Closed
BrzVlad
reviewed
Jun 9, 2026
Co-authored-by: BrzVlad <[email protected]>
Copilot
AI
changed the title
[ci-scan] Skip ActivityTracking tests on Android (refs #129088)
[ci-scan] Skip ActivityTracking tests on Android Mono (refs #129088)
Jun 9, 2026
BrzVlad
marked this pull request as ready for review
June 9, 2026 09:26
BrzVlad
approved these changes
Jun 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates System.Diagnostics.Tracing ActivityTracking unit tests to be skipped only on Android when running on the Mono runtime, by adding a new [ActiveIssue] condition that requires both PlatformDetection.IsAndroid and PlatformDetection.IsMonoRuntime.
Changes:
- Add a new
[ActiveIssue]attribute to the four failingBasicEventSourceTests.ActivityTrackingtests. - Gate the skip specifically to the
IsAndroid && IsMonoRuntimecombination (multiple conditions within one[ActiveIssue]are combined with&&in the test wrapper generator).
BrzVlad
deleted the
ci-scan/disable-activitytracking-android-729b972033d42be5
branch
June 10, 2026 04:54
This was referenced Jun 11, 2026
eiriktsarpalis
pushed a commit
that referenced
this pull request
Jul 15, 2026
…129094) ## Reasoning The `BasicEventSourceTests.ActivityTracking` tests consistently fail on Android when running on the Mono runtime because the Activity ID remains as all-zeros Guid after EventSource Start/Stop operations. On Android with Mono, the threading/activity context does not propagate as expected, causing `Assert.NotEqual(Guid.Empty, ...)` to fail. The fix narrows the `[ActiveIssue]` condition to Android + Mono only by using `PlatformDetection.IsAndroid` together with `PlatformDetection.IsMonoRuntime`. All four affected tests share the same root cause, and the updated skip scope now matches the failing legs more precisely than the original Android-wide condition. Linked KBE: #129088 Match verification (from Step 4.8): 1. Same test/family: yes — `BasicEventSourceTests.ActivityTracking.StartStopCreatesActivity` and 3 sibling tests 2. Same failure signature: yes — `Assert.NotEqual() Failure: Values are equal` with Expected `Not 00000000-0000-0000-0000-000000000000` 3. Same OS/runtime combination: yes — Android on Mono 4. Same architecture: yes — all affected Android Mono architectures ## Impact on platforms - runtime-extra-platforms (def 154) / android-arm Release AllSubsets_Mono / Windows.11.Amd64.Android-armel.Open / exit code 1 - runtime-extra-platforms (def 154) / android-x64 Release AllSubsets_Mono / Windows.11.Amd64.Android-x64.Open / exit code 1 - runtime-extra-platforms (def 154) / android-arm64 Release AllSubsets_Mono / exit code 1 - runtime-extra-platforms (def 154) / android-x86 Release AllSubsets_Mono / exit code 1 ## Errors log ```text [FAIL] BasicEventSourceTests.ActivityTracking.StartStopCreatesActivity Assert.NotEqual() Failure: Values are equal Expected: Not 00000000-0000-0000-0000-000000000000 Actual: 00000000-0000-0000-0000-000000000000 at BasicEventSourceTests.ActivityTracking.StartStopCreatesActivity() [FAIL] BasicEventSourceTests.ActivityTracking.ActivityFlowsAsync [FAIL] BasicEventSourceTests.ActivityTracking.SetCurrentActivityIdBeforeEventFlowsAsync [FAIL] BasicEventSourceTests.ActivityTracking.SetCurrentActivityIdAfterEventDoesNotFlowAsync ``` ## First build it occurred - Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1449088 - Finished: 2026-06-04T09:47:08Z - Occurrences in window: 4+ (builds 1449088, 1450787, 1452386, 1452872) - Computed within the scanned window; may not be the true origin. ## Linked issue #129088 --- Filed by <a href="https://github.com/dotnet/runtime/blob/main/.github/workflows/ci-failure-scan.md">`ci-failure-scan`</a>, which scans dnceng-public outer-loop pipelines on `main` and converts stable failures into KBEs and test-disable PRs. Comment here or on the workflow file to suggest changes; <a href="https://github.com/dotnet/runtime/blob/main/.github/workflows/ci-failure-scan-feedback.md">`ci-failure-scan-feedback`</a> reads in-scope feedback daily and opens (or updates) a PR with prompt edits. > [!NOTE] > > Generated by <a href="https://github.com/dotnet/runtime/actions/runs/27093427266/agentic_workflow">CI Outer-Loop Failure Scanner</a> · ● 38.1M · <a href="https://github.com/search?q=repo%3Adotnet%2Fruntime+%22gh-aw-workflow-id%3A+ci-failure-scan%22&type=pullrequests">◷</a> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: BrzVlad <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reasoning
The
BasicEventSourceTests.ActivityTrackingtests consistently fail on Android when running on the Mono runtime because the Activity ID remains as all-zeros Guid after EventSource Start/Stop operations. On Android with Mono, the threading/activity context does not propagate as expected, causingAssert.NotEqual(Guid.Empty, ...)to fail.The fix narrows the
[ActiveIssue]condition to Android + Mono only by usingPlatformDetection.IsAndroidtogether withPlatformDetection.IsMonoRuntime. All four affected tests share the same root cause, and the updated skip scope now matches the failing legs more precisely than the original Android-wide condition.Linked KBE: #129088
Match verification (from Step 4.8):
BasicEventSourceTests.ActivityTracking.StartStopCreatesActivityand 3 sibling testsAssert.NotEqual() Failure: Values are equalwith ExpectedNot 00000000-0000-0000-0000-000000000000Impact on platforms
Errors log
First build it occurred
Linked issue
#129088
Filed by
ci-failure-scan, which scans dnceng-public outer-loop pipelines onmainand converts stable failures into KBEs and test-disable PRs. Comment here or on the workflow file to suggest changes;ci-failure-scan-feedbackreads in-scope feedback daily and opens (or updates) a PR with prompt edits.> [!NOTE]
>
> Generated by CI Outer-Loop Failure Scanner · ● 38.1M · ◷