Skip to content

test: Instrument RadioButtons BasicKeyboardTest for Android WebGPU (do not merge) - #26674

Closed
ramezgerges wants to merge 8 commits into
unoplatform:masterfrom
ramezgerges:dev/rara/radiobuttons-keyboard-diag
Closed

ramezgerges wants to merge 8 commits into
unoplatform:masterfrom
ramezgerges:dev/rara/radiobuttons-keyboard-diag

Conversation

@ramezgerges

Copy link
Copy Markdown
Contributor

GitHub Issue: related to #26579 (diagnostics only, do not merge)

PR Type:

💬 Other: temporary test diagnostics

What changed? 🚀

BasicKeyboardTest fails intermittently on the Android WebGPU lane (about 5 of 11 recent master builds, Expected:<3>. Actual:<4>). It passes on its own and after a few hundred of its shard's earlier tests on a local emulator, but a full local shard never gets far enough to run it. This draft lets CI reproduce it with more information.

  • Each step of the test records the focused element before and after, the selected index (as the page tracks it and on the control itself), the focused index, the window size and scale and, for injected taps, the item bounds and click point. The steps are also logged to the console with an [RB-DIAG] prefix.
  • A mismatch fails with the step's state and the last 16 steps, so the test result alone shows which step broke and where focus and selection were.
  • src/Uno.UI.RuntimeTests/webgpu-lane-trigger.txt only exists so that determine-test-scope.ps1 runs the WebGPU lanes for this PR.

Checked locally on Skia desktop: the test passes and prints the trail.

PR Checklist ✅

🤖 Generated with Claude Code

Temporary diagnostics for unoplatform#26579. Each step records the focused element
before and after, the selected and focused indices, the window size and,
for injected taps, the item bounds and click point. A mismatch fails with
the last 16 steps. The marker file only makes the PR run the WebGPU lanes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 248582 found UI Test snapshots differences: skia-linux-screenshots: 253, skia-windows-screenshots: 266

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

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png-dark
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Accessibility_Showcase.png
    • AppWindowTitleBar Properties.png
    • AutomationProperties_AutomationId.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • AutomationProperties_AutomationId.png-dark
    • Basics.png-dark
    • Basics.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
  • skia-windows-screenshots: 266 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • AnimatedVisualsTestbedPage.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • Buttons.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Accessibility_Showcase.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_AutomationId.png-dark

The first CI run showed the tap aimed at item 3 selecting item 4. Each
tap now records the pressed position, the RadioButton under it, and the
target's bounds when the press arrives and after the tap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@unodevops

Copy link
Copy Markdown
Contributor

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

The second CI run passed: the failure is intermittent. Six rounds per
run make one run likelier to hit it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@unodevops

Copy link
Copy Markdown
Contributor

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

On the CI shard, injected presses arrive 10 px below their target while
they hit it exactly when the test runs alone. Record whether the input
pane is considered visible, its occluded rect, and where the root
content sits in the window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@unodevops

Copy link
Copy Markdown
Contributor

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

The Android CI shard shows the root content 10 px above the window while
the input pane is hidden. After each test, log the content's position,
the input pane pan and the pane's state when the content is not at the
window's origin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Nov 24, 2026
@unodevops

Copy link
Copy Markdown
Contributor

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

XamlRoot.Content is the test's own element in many tests, so its offset
was mostly layout. The public root visual fills the window: log when it
or the input pane pan is not zero.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 248628 found UI Test snapshots differences: skia-linux-screenshots: 247, skia-windows-screenshots: 283

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

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • Basics.png-dark
    • Basics.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Accessibility_Showcase.png-dark
    • AppWindowTitleBar Properties.png-dark
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_StructureAndProps.png
    • ButtonClippingTestsControl.png-dark
  • skia-windows-screenshots: 283 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • Buttons.png-dark
    • Accessibility_Showcase.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • Basics.png-dark
    • Basics.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • BasicAcrylicBrushTest.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • AnimatedBackVisualSourceSamplePage.png
    • BenchmarkDotNet.png-dark
    • AppWindowTitleBar Properties.png
    • BasicAcrylicBrushTest.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • AppWindowTitleBar Properties.png-dark

@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 248636 found UI Test snapshots differences: skia-linux-screenshots: 246, skia-windows-screenshots: 277

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

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • AnimatedBackVisualSourceSamplePage.png
    • Basics.png-dark
    • Basics.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • ClipboardTests.png-dark
    • AutomationProperties_AutomationId.png
    • Buttons.png
    • AnimatedVisualsTestbedPage.png-dark
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
  • skia-windows-screenshots: 277 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png
    • AppWindowTitleBar Properties.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_AutomationId.png-dark
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Buttons.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png

@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 248645 found UI Test snapshots differences: skia-linux-screenshots: 275, skia-windows-screenshots: 266

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

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_AutomationId.png
    • Buttons.png-dark
    • Buttons.png
    • AnimatedBackVisualSourceSamplePage.png
    • Basics.png-dark
    • Basics.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • Accessibility_Showcase.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AppWindowTitleBar Properties.png
    • AutomationPropertiesExtensions_Role.png
  • skia-windows-screenshots: 266 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AppWindowTitleBar Properties.png
    • AutomationProperties_AutomationId.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_AutomationId.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • BreadcrumbBarPage.png-dark

@ramezgerges

Copy link
Copy Markdown
Contributor Author

Superseded by #26691, which carries only the fix and its test. These diagnostics found the cause: the input pane skipped its reset when the keyboard hid while the window content was being swapped.

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

Labels

area/automation Categorizes an issue or PR as relevant to project automation kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants