Skip to content

test(richeditbox): Lighten bounded-layout test on WebGPU - #25211

Draft
MartinZikmund wants to merge 2 commits into
masterfrom
dev/mazi/webgpu-richeditbox-bounded-load
Draft

MartinZikmund wants to merge 2 commits into
masterfrom
dev/mazi/webgpu-richeditbox-bounded-load

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #25210

PR Type:

🏗️ Build or CI related changes (test-only stability fix)

What changed? 🚀

Current behavior: on master, the first attempt of WebAssembly WebGPU Runtime Tests 9 loses Chrome's swiftshader GPU process while Given_RichEditBox.When_Unfocused_Selection_Highlight_Is_Transparent_Text_Remains_Visible runs. It comes right after When_Bounded_Rich_Layout_Inherits_Visual_State_Foreground, which takes about 65 s with frames of about 10 s each. After the loss, every RenderTargetBitmap in the shard returns 0x0, so Shape, RichTextBlock_Highlighters/Render and ShapesClearData tests fail until the retry. Seen in builds 238781, 238799 and 238800. Locally (UNO_WEBGPU_STATS=1), each visual-state change in that test re-records the whole 8200-run story: about 1,800 ops and 4.8-7.3 s of opsBuild/rebuild per frame.

Change: on the WebGPU backend, the bounded-layout foreground test checks one transition (Disabled) instead of three. That cuts its re-records and offscreen captures from 8 to 4. Skia keeps the full PointerOver/Focused/Disabled coverage.

Validation so far: Compile: strict build of Uno.UI.RuntimeTests.Skia (net10.0). Runtime: the test passes on desktop Skia (Vulkan) and on desktop WebGPU (UNO_WEBGPU=1). The ci: TEMP commit forces the gated WASM WebGPU lane on so group 9 can be checked for the GPU-process crash, and will be reverted before review. The crash couldn't be reproduced locally, so this CI run is the proof.

Not addressed here (product gaps): WebGPU never recovers a lost device, and re-recording large rich text is slow on WebGPU WASM.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample: test-only change
  • 📚 Docs have been added/updated: n/a
  • 🖼️ Validated PR Screenshots Compare Test Run results: n/a
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests

🤖 Generated with Claude Code

https://claude.ai/code/session_01TP1JtY64etkfxxGCms44aN

MartinZikmund and others added 2 commits October 11, 2026 00:34
Each visual-state change re-records the whole 8200-run story, which takes
5-10 s per frame on the GPU-less WASM WebGPU agents and precedes the
swiftshader GPU-process crash that leaves the rest of the shard with 0x0
screenshots. Check the Disabled transition only on WebGPU.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TP1JtY64etkfxxGCms44aN
Revert before merge: forces the gated lane on to check that group 9 no longer loses its GPU process.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TP1JtY64etkfxxGCms44aN
@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 Oct 10, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 238861 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • Buttons.png-dark
    • Buttons.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • ImageBrushAlignmentXY.png-dark
    • ImageBrushAlignmentXY.png
    • DropDownButtonPage.png-dark
    • Examples.png
  • skia-windows-screenshots: 2458 changed over 2486

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AppBar_KeyBoard.png
    • Application_DispatcherShutdownMode.png
    • AppWindowPresenters.png
    • Attributed_text_FontSize_Changing.png-dark
    • AuthenticationBroker_Cancel.png
    • AutoBorderStretchwithtopmargin.png
    • AutomationProperties_Relations.png
    • AutoSizedTopLeft.png
    • AutoSuggestBoxChosenSuggestion.png-dark
    • AutoSuggestBox_Keyboard.png-dark
    • AutoSuggestBox_Keyboard.png
    • BasicAutoSuggestBox.png-dark
    • BasicAutoSuggestBox.png
    • BasicThemeResources.png-dark
    • BasicThemeResources.png
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • BorderTopwithmargins.png-dark
    • BorderTopwithmargins.png

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 238861 has failed on Uno.UI - CI.

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.

WASM WebGPU: GPU process crash in RichEditBox tests leaves later screenshots at 0x0

3 participants