Skip to content

test: Exclude When_MsAppData on Skia Android - #24327

Merged
MartinZikmund merged 1 commit into
feature/breakingchangesfrom
dev/mazi/msappdata-android
Sep 1, 2026
Merged

MartinZikmund merged 1 commit into
feature/breakingchangesfrom
dev/mazi/msappdata-android

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: relates to #23967

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Given_BitmapSource.When_MsAppData is now excluded on Skia Android, alongside the SkiaFrameBuffer and SkiaX11 exclusions it already carried for #23967.

Note for @jonpryor — #24215 already excluded SkiaAndroid for this test, but gated behind #if RUNTIME_NATIVE_AOT while investigating #24271. The evidence below shows the hang is not NativeAOT-specific: it reproduces on the plain Android Skia leg. So rather than duplicating the exclusion, this PR un-gates yours and keeps the #24271 reference in the comment. If you'd prefer to keep the two cases separate, happy to change it.

The failure

On the Android Skia runtime-test host the ms-appdata load intermittently never completes. The device log shows the test start and then 30 seconds of complete silence — no ImageOpened, no ImageFailed, no exception — until the inner WaitAsync trips:

09-01 13:10:22.971 I DOTNET :       Running test When_MsAppData()
09-01 13:10:53.107 I DOTNET :       Retry 1/2 of When_MsAppData() after 36ms: TimeoutException: The operation has timed out.

That is the same signature already tracked in #23967 for the Linux hosts, where the root cause is still open.

Why it appeared now

The test never ran on Android at all until #24003 aligned shard 0's UITEST_RUNTIME_TEST_GROUP_COUNT (4 → 5, 005db435370, merged 2026-08-31). Test selection is a stable hash modulo that count, so before that fix When_MsAppData was one of the 14.7% of methods no shard selected — verified absent from every Android shard log in builds 231043, 231021 and 230963.

So this is not a new failure, just a newly executed one. master still carries the old count of 4 and therefore never runs it.

Why it needs its own PR

Since that merge it has failed on three unrelated PR builds within hours of each other:

Build PR Outcome
231145 #24186 isolated retry passed → green
231142 #24194 isolated retry failed 3× → red
231152 #19083 isolated retry passed → green

The retry only sometimes recovers, so the test reddens whichever PR happens to be unlucky rather than anything related to that PR's changes.

Scope

Deliberately limited to this one test. When_MsAppData_StreamDisposed_FileNotLocked and When_Exif_Rotated_MsAppData exercise the same ms-appdata path but run green on Android in every post-fix build checked (231121, 231139, 231157), so they keep running.

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_015Lk1RUZfAj6A7xGWzYaoBw

Copilot AI lite review requested due to automatic review settings September 1, 2026 14:01
@github-actions

github-actions Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 12s —— View job


Review complete

  • Read the changed file
  • Review the change
  • Post findings

Overall verdict: Ship ✅

0 issues found. The change is correct, minimal, and well-documented.

What was reviewed:

The single diff line adds RuntimeTestPlatforms.SkiaAndroid to the existing [PlatformCondition(ConditionMode.Exclude, ...)] attribute on When_MsAppData.

  • RuntimeTestPlatforms.SkiaAndroid is the correct flag — confirmed in use across the test suite (e.g. Given_TextBox.skia.cs, Given_ContentDialog.cs).
  • PlatformCondition(ConditionMode.Exclude, ...) is the established, rule-compliant pattern for per-platform skipping (over #if on the method body, per runtime-tests.md).
  • The scope is deliberately narrow: only When_MsAppData is excluded; When_MsAppData_StreamDisposed_FileNotLocked and When_Exif_Rotated_MsAppData keep running on Android, consistent with the PR's evidence that those pass.
  • The companion comment is concise and explains the non-obvious why (intermittent silence + newly executed via shard fix), acceptable per code-style rules.
  • Commit title test: Exclude When_MsAppData on Skia Android — correct Conventional Commits type, imperative mood, under 50 chars.
  • The underlying issue remains tracked in When_MsAppData hangs on the Linux Framebuffer runtime-test host under .NET 11 Preview 6 #23967 — this is correctly a mitigation, not a root-cause fix.

Validation: Code review only (diff inspection). No local build or runtime execution performed — the change only modifies a test-skip attribute.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces CI flakiness by excluding the Given_BitmapSource.When_MsAppData runtime test on Skia Android, matching existing exclusions for Skia Linux hosts where the test is known to intermittently stall/hang.

Changes:

  • Exclude When_MsAppData on RuntimeTestPlatforms.SkiaAndroid in addition to SkiaFrameBuffer and SkiaX11.
  • Add a short comment explaining why the Android exclusion is being added (test started running after shard partition fix).

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@unodevops

Copy link
Copy Markdown
Contributor

The ms-appdata load intermittently never completes on the Android Skia
runtime-test host: the test starts, then 30 seconds of total silence
follow with no ImageOpened, no ImageFailed and no exception, until the
inner WaitAsync trips. That is the same signature already tracked for
the Linux hosts in #23967, which the existing exclusion covers.

#24215 already excluded SkiaAndroid for this test, but gated behind
RUNTIME_NATIVE_AOT while investigating #24271. The hang is not specific
to NativeAOT -- it reproduces on the plain Android Skia leg -- so the
exclusion is un-gated here rather than duplicated, and #24271 is kept
in the comment.

The test only began running on Android at all once #24003 aligned shard
0's UITEST_RUNTIME_TEST_GROUP_COUNT (4 -> 5, 005db43): selection is
a stable hash modulo that count, so before the fix When_MsAppData was
one of the 14.7% of methods no shard selected. It is not a new failure,
just a newly executed one.

Since that merge it has failed on three unrelated PR builds within
hours of each other -- 231145 (#24186), 231142 (#24194) and 231152
(#19083) -- where the isolated retry only sometimes recovers, so it
reddens whichever PR happens to be unlucky. master still carries the
old count of 4 and therefore never runs it.

Scoped to this test alone: When_MsAppData_StreamDisposed_FileNotLocked
and When_Exif_Rotated_MsAppData use the same ms-appdata path and run
green on Android in every post-fix build checked, so they keep running.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015Lk1RUZfAj6A7xGWzYaoBw
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/msappdata-android branch from a646dc3 to b15667a Compare September 1, 2026 14:23
@github-actions

github-actions Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 22s —— View job


Review complete

  • Read the changed file
  • Review the change
  • Post findings

Overall verdict: Ship (with a nit) ✅

1 nit found (no blockers). The core change is correct and minimal.

What was reviewed:

The diff removes the #if RUNTIME_NATIVE_AOT ... #endif conditional that previously gated the SkiaAndroid exclusion, replacing it with an unconditional RuntimeTestPlatforms.SkiaAndroid in the [PlatformCondition] attribute. That's the right fix given the test now hangs on all Android Skia runs (not just NativeAOT) since the shard partition was fixed in #24003.

Finding:

One pre-existing comment (// ... the awaited TCS has no timeout, so the job hangs to its limit) on the line immediately above the changed block is stale: the test has carried a [Timeout(60000)] and a WaitAsync(TimeSpan.FromSeconds(30)) backstop for a while now, so "has no timeout" is inaccurate. Flagged inline. Since the PR is already touching the surrounding comment block, a one-line fix would keep the rationale consistent with reality.

Everything else is clean: correct PlatformCondition flag, Exclude mode, ConditionMode usage, Conventional Commits title, and the underlying issue is properly tracked in #23967.

Validation: Code review only (diff inspection). The change only modifies a test-skip attribute — no logic, no build, no runtime needed.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 231346 found UI Test snapshots differences: skia-linux-screenshots: 73, skia-windows-screenshots: 220

Details
  • skia-linux-screenshots: 73 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png
    • CalendarView_Theming.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Examples.png
    • DropDownButtonPage.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • ImageBrush_Stretch.png
    • ImageBrushInList.png-dark
    • Image_Margin_Large.png
    • ImageBrushInList.png
    • Attributed_text_FontSize_Changing.png
    • ClipboardTests.png-dark
  • skia-windows-screenshots: 220 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Battery.png
    • Clipping652.png-dark
    • Clipping652.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ClipboardTests.png-dark
    • Contacts_Pick.png-dark
    • Contacts_Pick.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ExpanderColorValidationPage.png-dark
    • FocusManagerTest.png-dark
    • FocusManagerTest.png
    • Hyperlink_Button.png-dark
    • ImageAlignment2541.png-dark
    • Hyperlink_Button.png
    • ImageAlignment2541.png

@mergify

mergify Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@MartinZikmund
MartinZikmund merged commit ec35d4c into feature/breakingchanges Sep 1, 2026
47 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/msappdata-android branch September 1, 2026 16:10
@github-actions github-actions Bot mentioned this pull request Sep 1, 2026
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants