Repository navigation
fix(ci): Align Android Skia shard 0 test group count - #24003
Conversation
|
Claude finished @MartinZikmund's task in 58s —— View job Review complete
SummaryVerdict: ✅ LGTM — ship it. The two-character fix is correct and the PR description provides an exemplary analysis of the root cause and impact. Verification:
No findings. No inline comments needed. |
There was a problem hiding this comment.
Pull request overview
Aligns the runtime-test sharding configuration for Android Skia CI so that shard 0 uses the same UITEST_RUNTIME_TEST_GROUP_COUNT as shards 1–4, restoring a correct partition of the runtime test suite across the 5-job matrix.
Changes:
- Update
UITEST_RUNTIME_TEST_GROUP_COUNTfrom4to5for Runtime Tests 0 in the Android Skia pipeline. - Update
UITEST_RUNTIME_TEST_GROUP_COUNTfrom4to5for Runtime Tests 0 in the Android+CoreCLR Skia pipeline.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| build/ci/tests/.azure-devops-tests-android-skia.yml | Makes shard 0’s declared test group count consistent with shards 1–4 (5-way split). |
| build/ci/tests/.azure-devops-tests-android-coreclr-skia.yml | Same alignment for the CoreCLR Skia matrix shard 0 (5-way split). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24003/wasm-skia-net9/index.html |
|
|
91becd1 to
6bf0986
Compare
|
Claude finished @MartinZikmund's task in 1m 21s —— View job Review complete
SummaryVerdict: ✅ LGTM — ship it. The second commit ("test: Exclude the collectible-ALC prune test on Android") is a correct and well-reasoned follow-up to the shard-count fix. Verification of the new commit:
No findings. No inline comments needed. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24003/wasm-skia-net9/index.html |
6bf0986 to
6672ba1
Compare
|
Claude finished @MartinZikmund's task in 3m 23s —— View job Review complete
SummaryVerdict: ✅ LGTM — 1 minor comment CI shard fix ( Test exclusion ( 1 minor finding — inline comment posted:
No issues with the CI fix itself. No breaking changes, no style violations, no test coverage gaps. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24003/wasm-skia-net9/index.html |
|
The build 229534 found UI Test snapshots differences: Details
|
Shard 0 of the Android Skia and Android+CoreCLR Skia runtime test matrices declared UITEST_RUNTIME_TEST_GROUP_COUNT: 4 while shards 1-4 declared 5. Test selection is a stable hash modulo that count, so the five shards did not form a partition: 669 of 4543 test methods (14.7%) were selected by no shard, and 921 (20.3%) ran twice. Shard 0 also carried 1152 tests instead of 900, making it the slowest shard and the most likely to hit the 45-minute job timeout. fixes #24002 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01RgHbZ4EHYrK6uTkPTtKbq8
Closing the shard-0 grouping gap makes this test run on Android Skia for the first time, where the Mono GC does not reliably reclaim the target. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01YYhzD23aqdv2NddkzkiGKN
6672ba1 to
f489cf8
Compare
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24003/wasm-skia-net9/index.html |
|
The build 230995 found UI Test snapshots differences: Details
|
005db43
into
feature/breakingchanges
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
GitHub Issue: closes #24002
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Shard 0 of the Android Skia and Android+CoreCLR Skia runtime-test matrices declared a different shard count than the other four shards:
Runtime Tests 0Runtime Tests 1–4.azure-devops-tests-android-skia.ymlGROUP_COUNT: 4GROUP_COUNT: 5.azure-devops-tests-android-coreclr-skia.ymlGROUP_COUNT: 4GROUP_COUNT: 5Both are changed to
5. That is the whole diff — two characters.Why it matters
Test selection is a stable hash modulo the declared count (
UnitTestsControl.cs:1415):So shard 0 selected
hash % 4 == 0while shards 1–4 selectedhash % 5 == 1..4. The five shards therefore did not form a partition of the suite — tests withhash % 5 == 0 && hash % 4 != 0were selected by nobody, and tests withhash % 4 == 0 && hash % 5 != 0ran twice.Measured by replicating the exact partition function (
BitConverter.ToUInt64(SHA1(DeclaringType.FullName + "." + method.Name), 0)) over the 4 543[TestMethod]s currently inUno.UI.RuntimeTests:Examples of test methods that no Android Skia shard was running:
The in-app consistency self-check (
UnitTestsControl.cs:1374-1389) could not catch this: it iterates0 .. _ciTestsGroupCountCacheusing the job's own count, so shard 0 validated a self-consistent 4-way split and never observed the other jobs' 5-way split.669 tests that have never run on these stages will start running. Any failures they surface are pre-existing and were simply invisible — they are the true baseline, not a regression from this PR. They may need triage or
[PlatformCondition]exclusions in follow-up PRs.Shard 0 should get meaningfully faster (1 152 → 900 tests, −22 %), which should also reduce its share of 45-minute job timeouts.
Scope
I audited every shard matrix in
build/ci/tests/— these two files were the only inconsistent ones:The same defect is present on
feature/breakingchanges(in.azure-devops-tests-android-skia.yml; the CoreCLR stage was removed there by #23964). Targetingmasterso it propagates through the normal master →feature/breakingchangessync.PR Checklist ✅
Screenshots Compare Test Runresults.