Repository navigation
Description
Flaky test analysis: Xamarin.Android-PR pipeline, April 27 – May 11 2026 (follow-up to #11203)
Follow-up to #11203 — refreshes the flaky-test picture two weeks later, after the fixes that
landed in between (notably #11249 for PerformanceTest and #11257 removing the WearOS lane).
Scope
| Period | 2026-04-27 → 2026-05-11 (14 days, ending today) |
| Pipeline | Xamarin.Android-PR (devdiv definition ID 12278) |
| Method | Identical to #11203 — see that issue for full methodology |
| PRs analyzed | 62 merged PRs |
| Direct (team-member) PRs | 62 (no fork PRs in window) |
PRs merged with failed build result |
23 (vs. 38 in #11203 ⇒ ~40% drop) |
Unique test names observed in (Auto-Retry) runs |
80 (vs. 51) |
| Tests with ≥1 🔴 | 15 (vs. 33) |
Signal categories are the same as #11203: 🔴 = passed on auto-retry in a failed build (highest-confidence flake), 🟢 = passed on auto-retry in a succeeded build,
Headline observations
PerformanceTestis no longer a red-CI source. The six topBuild_*/Install_*/
DesignTimeBuild_*perf tests from Flaky test analysis: Xamarin.Android-PR pipeline, April 10–24 2026 #11203 each produced zero 🔴 events this window.
[tests] Skip PerformanceTest on slow CI machines using evaluation time #11249'sAssert.Inconclusiveslow-machine guard is working.- WearOS noise is gone. Four WearOS-only debugger variants from Flaky test analysis: Xamarin.Android-PR pipeline, April 10–24 2026 #11203's top 7
disappeared because the WearOS lane was removed in [build] Remove WearOS emulator CI lane #11257. - Debugger-attach (
ApplicationRunsWithDebuggerAndBreaks) remains the largest residual
flake family. - NativeAOT lane is producing fresh flakes — expected as that lane stabilizes.
- New top offender:
TypeAndMemberRemapping(False,MonoVM)— 3 🔴 across 3 different PRs
([NativeAOT] Use NativeLinker and invoke lld directly for linking #11256, Split android-reviewer review-rules.md into conditional rule files #11266, LEGO: Pull request from juno/hb_6dddf33b-c6da-43d8-ac04-14d2c339cb00_20260502103235064 to main #11269). Only the(False,MonoVM)parameterization flakes.
Top flaky tests with recommended action
All entries below are in suite MSBuildDeviceIntegration On Device. The "Action" column
applies the same playbook used by #11249 (soft-skip), #11202 ([Ignore]), #11110
(Inconclusive for emulator/env failure), and #10756 (remove).
| # | Test | 🔴 | 🟢 | Recommended action | Notes | |
|---|---|---|---|---|---|---|
| 1 | TypeAndMemberRemapping(False,MonoVM) |
3 | 0 | 0 | Investigate — possible real regression | New high-confidence flake; only (False,MonoVM) parametrization fails; (True,CoreCLR) shows |
| 2 | ApplicationRunsWithDebuggerAndBreaks(False,"guest1","apk",True,MonoVM) |
2 | 1 | 0 | Soft-skip on debugger-attach failure | Recurring from #11203. Pattern matches "device-attach race"; consider Assert.Inconclusive when the debugger-attach step times out specifically. |
| 3 | BuildBasicApplicationAndAotProfileIt |
2 | 0 | 0 | Investigate (AOT-profile capture is timing-sensitive) | Recurring from #11203 at same rate (2→2). |
| 4 | ApplicationRunsWithDebuggerAndBreaks(False,"guest1","aab",True,MonoVM) |
1 | 3 | 2 | Soft-skip on debugger-attach failure | Same family as #2. |
| 5 | ApplicationRunsWithDebuggerAndBreaks(False,null,"aab",True,MonoVM) |
1 | 0 | 0 | Soft-skip on debugger-attach failure | Same family. |
| 6 | FastDeployEnvironmentFiles(False,True,MonoVM) |
1 | 0 | 1 | Monitor — only 1 PR | New. Re-check next cycle. |
| 7 | AppWithStyleableUsageRuns(True,False,False,MonoVM) |
1 | 0 | 1 | Monitor — only 1 PR | New. |
| 8 | CheckResouceIsOverridden(NativeAOT) |
1 | 0 | 0 | Monitor (NativeAOT lane) | New; NativeAOT lane still stabilizing. |
| 9 | MonoAndroidExportReferencedAppStarts(False,False,MonoVM) |
1 | 0 | 0 | Monitor | Recurring (2→1). |
| 10 | DotNetRunWaitForExit |
1 | 0 | 0 | Monitor — already tracked in #10832 | Big improvement (5→1). |
| 11 | DotNetRun(True,"managed",NativeAOT) |
1 | 0 | 0 | Monitor (NativeAOT lane) | New. |
| 12 | GradleFBProj(True,NativeAOT) |
1 | 0 | 0 | Monitor (NativeAOT lane) | New. |
| 13 | MonoAndroidExportReferencedAppStarts(False,True,CoreCLR) |
1 | 0 | 0 | Monitor | New CoreCLR variant. |
| 14 | AdbTargetChangesAppBundle |
1 | 0 | 0 | Monitor — only 1 PR | New. |
| 15 | EnsureUncaughtExceptionWorks(MonoVM) |
1 | 0 | 0 | Monitor | Big improvement (3→1). |
Tests with elevated ⚠️ (retry-fail) counts
DotNetRunWithDeviceParameter (
Other
Tests appearing in #11203 with no 🔴 hits this window
- The whole
PerformanceTestfamily (Build_*,Install_*,DesignTimeBuild_*) — resolved by [tests] Skip PerformanceTest on slow CI machines using evaluation time #11249. - All WearOS-only
ApplicationRunsWithDebuggerAndBreaksvariants — resolved by [build] Remove WearOS emulator CI lane #11257. SupportDesugaringStaticInterfaceMethods(MonoVM)— no signal this window.
Proposed concrete follow-ups
- Investigate
TypeAndMemberRemapping(False,MonoVM)— file a focused issue. Three
independent 🔴 hits in one window across unrelated PRs ([NativeAOT] Use NativeLinker and invoke lld directly for linking #11256, Split android-reviewer review-rules.md into conditional rule files #11266, LEGO: Pull request from juno/hb_6dddf33b-c6da-43d8-ac04-14d2c339cb00_20260502103235064 to main #11269), one
parametrization only. - Generalize the soft-skip pattern to
ApplicationRunsWithDebuggerAndBreaks— when the
debugger-attach step itself fails (not the assertion under test), call
Assert.Inconclusivethe same way [tests] Skip PerformanceTest on slow CI machines using evaluation time #11249 does for slow-machine perf tests and Use Assert.Inconclusive for emulator acquisition failures #11110 does
for emulator acquisition. - Investigate
BuildBasicApplicationAndAotProfileIt— recurring at a steady rate. - NativeAOT lane: leave at "monitor" for one more cycle; if any of
CheckResouceIsOverridden(NativeAOT),DotNetRun(...,NativeAOT),GradleFBProj(True,NativeAOT)recur, treat as real bugs and escalate. - Repeat this analysis in ~2 weeks to confirm trend and catch regressions.
Existing related issues
- Flaky test analysis: Xamarin.Android-PR pipeline, April 10–24 2026 #11203 — prior analysis (this issue's predecessor)
- [Testing] Consider increasing timeouts for PreformanceTest #11031 —
PerformanceTesttimeouts (largely addressed by [tests] Skip PerformanceTest on slow CI machines using evaluation time #11249) - [tests] test failures on dnceng-public #10832 — broad "test failures on dnceng-public" tracker; covers
DotNetRunWaitForExitandDotNetRunWithDeviceParameter - Figure out WearOS test failures #7506 —
Figure out WearOS test failures— closed-in-effect by [build] Remove WearOS emulator CI lane #11257 removing the lane - [tests] Skip InflateCustomView_ShouldNotLeakGlobalRefs until global ref leak is fully resolved #11202 — example of
[Ignore]pattern for a known-leaking test
Caveats
Same as #11203: only the last build per PR is sampled; only (Auto-Retry) runs carry test
detail; no error-message content collected;
Methodology
Same script and data path as #11203. See that issue for the full methodology section.
Activity
[tests] Fix ApplicationRunsWithDebuggerAndBreaks flakiness (#11398)
jonathanpeppers commentedon Aug 12, 2026
Closing because this historical analysis is complete and its actionable findings were split into focused follow-up work, including #11322. This issue describes a fixed April 27–May 11 snapshot rather than an ongoing individual failure.
A fresh Azure DevOps check found none of the specifically named test signatures in the latest 100 completed
dotnet-androidbuilds (August 3–12, 2026) or the latest 22 completedmainbuilds (July 16–August 12, 2026). New recurring flakes should be tracked individually with current build IDs and failure signatures.