Skip to content

ci: Run mobile and WASM software-rendered tests in fewer shards - #26684

Open
MartinZikmund wants to merge 3 commits into
masterfrom
dev/mazi/ci-reshard-mobile
Open

MartinZikmund wants to merge 3 commits into
masterfrom
dev/mazi/ci-reshard-mobile

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: related to #26683 (does not close it)

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Runtime test lanes spend a fixed 3 to 5 minutes per shard on setup (emulator or simulator boot, app install, Chrome install), so lanes with short shards pay mostly for setup. This PR cuts the shard counts where that is the case, and skips one test that dominates a WebAssembly shard.

Lane Shards Setup per shard Shard length now → expected Agent-min saved per run
Android Skia (every PR) 5 → 3 ~4 min 9 → ~12.5 min ~8
iOS Skia (every PR) 4 → 2 ~5 min 9 → ~14 min ~10 (macOS)
Android WebGPU 5 → 3 ~4 min 12 → ~17 min ~8
Android+NativeAOT (master) 5 → 3 ~4 min 8 → ~11 min ~8
iOS WebGPU 4 → 2 ~5 min 9.5 → ~14 min ~10 (macOS)
WebAssembly WebGPU 12 → 6 ~2.7 min 8 → ~12 to 15 min ~16
WebAssembly Threads 12 → 6 ~3.3 min 9 → ~13 to 21 min ~20

"Now" is the median over 150 PR builds and 40 master builds from 2026-11-19 to 2026-11-24. "Expected" is derived from those numbers, not measured; this PR's own run is the first measurement.

  • Android: the copy-pasted matrix entries become a testGroups parameter with an each loop, as in the WebAssembly template. Applies to the Skia, WebGPU and NativeAOT lanes.
  • iOS: group count 4 → 2 for the Skia and WebGPU lanes. This also halves the number of macOS agents each lane asks for.
  • WebAssembly WebGPU and Threads: 12 → 6 groups. The results timeout stays at 55 minutes; the longest expected group is about 21 minutes.
  • WebAssembly Skia stays at 4 groups. Its setup share is small, and fewer groups would lengthen the stage's slowest shard.
  • When_Local_Paragraph_Format_Changes_Retain_Distant_Paragraph_Inlines is excluded on WebAssembly. It takes 3.5 to 6.5 minutes there ([WASM] RichEditBox with 1024 paragraphs takes minutes to load and re-format (runtime test runs 3.5-6.5 min) #26683) and is why WebAssembly shard 0 takes about 20 minutes while the other three take 13 to 16. It still runs on every other target.

No job timeouts change: the longest expected shard is well inside each lane's limit (45 to 90 minutes).

Validation: by inspection only so far. The pipeline YAML and the test attribute are first exercised by this PR's CI run.

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXMNu15KJA7ZTRWURUKpEj

MartinZikmund and others added 3 commits November 24, 2026 12:39
It takes 3.5 to 6.5 minutes there and sets the wall time of the
WebAssembly test stage (#26683).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu15KJA7ZTRWURUKpEj
Android goes from 5 to 3 groups and iOS from 4 to 2. Each shard
spends 4 to 5 minutes on emulator or simulator setup against about
5 minutes of tests.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu15KJA7ZTRWURUKpEj
Both lanes go from 12 to 6 groups. A 12-group shard ran about
5.6 minutes of tests on top of about 3 minutes of setup.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu15KJA7ZTRWURUKpEj
@github-actions github-actions Bot added area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/build Categorizes an issue or PR as relevant to build infrastructure labels Nov 24, 2026
@MartinZikmund
MartinZikmund marked this pull request as ready for review November 24, 2026 11:58
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 16s —— View job


Review of #26684

Verdict: ship. I found no blocking issues, so I posted no inline comments.

I reviewed the diff by inspection only. I did not run the pipelines.

  • Android Skia and NativeAOT: The testGroups plus each loop mirrors the WebAssembly template. UITEST_RUNTIME_TEST_GROUP_COUNT now comes from length(parameters.testGroups), so the group count and the matrix entries can't drift apart. The 'Runtime Tests N' job names are unchanged for indices 0 to 2.
  • iOS: IOS_RUNTIME_TEST_GROUP_COUNT is 2 and the group list has 2 entries, so the two agree. The group count is read only from UITEST_RUNTIME_TEST_GROUP_COUNT at line 44.
  • WebAssembly WebGPU and Threads: The testGroups list is 6 entries long. I left the 55-minute results timeout alone, which matches the PR description.
  • RichEditBox test: Excluding SkiaWasm with [PlatformCondition(ConditionMode.Exclude, ...)] is a platform exclusion, not an [Ignore]. The test still runs on every other target, and the comment links to [WASM] RichEditBox with 1024 paragraphs takes minutes to load and re-format (runtime test runs 3.5-6.5 min) #26683.

Non-blocking notes

  • Required checks: Fewer matrix jobs changes the job names. If branch protection pins required checks by name, such as Runtime Tests 3 or Runtime Tests 4, those checks will go missing. Please confirm none are pinned.
  • Measurement: The shard times in the description are derived, not measured. Check this PR's run against the 55-minute results timeout, especially the WebAssembly Threads lane, which is expected to reach about 21 minutes per shard.
  • Follow-up: Exclusion of the paragraph test is a workaround. [WASM] RichEditBox with 1024 paragraphs takes minutes to load and re-format (runtime test runs 3.5-6.5 min) #26683 should stay open until the underlying slowness is fixed.

@mergify

mergify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 248716 found UI Test snapshots differences: skia-linux-screenshots: 270, skia-windows-screenshots: 260

Details
  • skia-linux-screenshots: 270 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_AutomationId.png-dark
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • ClipboardTests.png-dark
  • skia-windows-screenshots: 260 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Basics.png-dark
    • Basics.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • CornerRadiusControls.png-dark
    • CornerRadiusControls.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure area/skia ✏️ Categorizes an issue or PR as relevant to Skia

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants