Skip to content

chore(automation): Sync master → feature/breakingchanges - #23553

Merged
MartinZikmund merged 94 commits into
feature/breakingchangesfrom
automation/master-sync/feature/breakingchanges
Jun 26, 2026
Merged

MartinZikmund merged 94 commits into
feature/breakingchangesfrom
automation/master-sync/feature/breakingchanges

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Automated sync — merges the latest master into feature/breakingchanges.

  • Incoming commits from master: 90

  • Range: 23223f4a20..d31071a296

  • Merge method: merge commit (preserves ancestry so future syncs stay minimal)

  • Auto-merge: enabled — lands once required CI is green and a reviewer approves.

Maintained automatically; updates in place. Generated by this run.

MartinZikmund and others added 30 commits June 1, 2026 18:38
Broadens the platform file removal sanity check in Uno.Sdk.After.targets
to fire for all Uno.Sdk projects, not just SingleProject ones. Also fixes
DefaultItemExcludes replacement bug that lost bin/obj excludes in Release.

Fixes #22640

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
WCT DataGrid (and other virtualizing controls) hide off-screen content by
flipping it to Visibility.Collapsed rather than removing it from the visual
tree, and reveal it later by flipping back to Visible. Collapsed elements are
pruned from the automation tree (FrameworkElementAutomationPeer.ChildIsAcceptable),
matching WinUI.

On Skia/Win32 the UIA provider keeps a provider-level cached list of automation
children. A Visibility toggle is not a visual-tree mutation, so nothing
invalidated that cache: an element flipped back to Visible rendered on screen
but never re-appeared in the UIA tree.

Route a Visibility toggle on a live element through the same child added/removed
accessibility path real tree mutations use. This is faithful to WinUI, which
registers a StructureChanged event as elements enter/leave the composition scene
on a visibility change (CUIElement::EnterPCSceneRecursive / LeavePCSceneRecursive).
The next UIA query then rebuilds the parent's children from current state.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ToggleSwitchAutomationPeer.GetLocalizedControlTypeCore looked up the resource by the key "ToggleSwitch" (nameof), which does not exist in the WinUI resource table, so the lookup returned empty and UIA reported an empty LocalizedControlType. WinUI uses UIA_AP_TOGGLESWITCH (= "toggle switch"), which is present in Uno's WinUIResources. Use that key so Skia matches WinUI3.
ExpanderAutomationPeer reported AutomationControlType.Button, but the shipping WinUI3 runtime exposes Expander as Group (consistent with WPF's ExpanderAutomationPeer, which the MUX source comment cites). Verified against a live WinAppSDK UIA dump (LineItemsExpander surfaces as <Group LocalizedControlType="group">). Return Group so Skia/Win32 matches the WinUI3 runtime tree; the ExpandCollapse pattern is unaffected.
The default RadioButtons style set AutomationProperties.AccessibilityView="Raw" on the control itself (an original 2020 port artifact). That removed the RadioButtons element from the Control/Content automation views on Skia/Win32, so its group node vanished and the child radio buttons were hoisted to the parent. WinUI's DefaultRadioButtonsStyle has no such setter and exposes RadioButtons as a Group (RadioButtonsAutomationPeer returns AutomationControlType.Group). Remove the setter so the group is exposed, matching WinUI3.
…ntElement

AutomationPeer.IsControlElement()/IsContentElement() called the Core methods directly. Several peers (e.g. ButtonBaseAutomationPeer) override IsControlElementCore to return true unconditionally, so template parts marked AutomationProperties.AccessibilityView="Raw" (SplitButton's PrimaryButton/SecondaryButton, NumberBox's InputEater, AutoSuggestBox's QueryButton) still appeared in the UIA tree on Skia/Win32. WinUI applies AccessibilityView as a separate layer on top of the peer's natural view membership; an explicit Raw removes the element from both views. Mirror that: IsControlElement/IsContentElement now return false when the owner's AccessibilityView is explicitly Raw, pruning those parts to match WinUI3.
A ContentPresenter generates an ImplicitTextBlock for plain string content. WinUI's control templates mark the ContentPresenter AccessibilityView="Raw" (Button, CheckBox, RadioButton, ToggleSwitch, ...) so the generated text is not surfaced as a separate UIA element — the owning control's peer already exposes the content as its Name. ImplicitTextBlock copied the owner's AccessibilityView once in its constructor, but the template applies that value afterward, so the copy read the stale default (Content) and the content text leaked into the tree (every Button/CheckBox/etc. showed a child text node, unlike WinUI). Give ImplicitTextBlock a dedicated peer that reads the owner's AccessibilityView live, excluding the text from the Control/Content views when the owner is Raw. Bare presenters that keep the default view still expose their text, as in WinUI.
WinUI surfaces a TextBox/PasswordBox as a leaf in the UIA tree: its content is exposed via the Value/Text patterns, not as child automation elements. Uno's peers used the default FrameworkElementAutomationPeer child walk, which surfaced template parts (placeholder presenter, content/scroll presenters) — e.g. the PlaceholderTextContentPresenter "Enter PIN" appeared as a stray text node. Override GetChildrenCore to return no children so both controls are leaves, matching WinUI3.
On WASM Skia the Community Toolkit DataGrid emitted an invalid role="headeritem" for column headers and no role for cells: GetSemanticElementType had no mapping for the HeaderItem (header) or Custom (cell) control types, so the columnheader/gridcell factory paths were never reached.

Map HeaderItem to ColumnHeader and any GridItem-pattern peer to GridCell, and emit aria-multiselectable (grid), aria-selected (cells/rows), 1-based aria-colindex and aria-sort (headers). Rows no longer emit a bogus uniform aria-rowindex=1; the per-row index is carried by each cell from IGridItemProvider.Row.
Removed mention of the Hot Design Agent from the Hot Design section.
Bumps [ws](https://github.com/websockets/ws) from 8.19.0 to 8.21.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.19.0...8.21.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-version: 8.21.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
The uno56droidioswasmskia template (built with no -f) compiles all 5 TFMs in
parallel, so the memory-heavy WASM native relink (wasm-opt -O2 over the
SkiaSharp/HarfBuzz/ICU statics) ran concurrently with the android/ios/maccatalyst
builds and intermittently aborted (SIGABRT) under peak memory on the macOS agent,
flaking Tests-Templates. Add /m:1 to serialize the inner per-TFM builds so
wasm-opt runs without contention.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
When_Ctrl_Delete and When_Repeated_Delete_Undo_Redo fail deterministically on
Skia-WASM (verified 6/6 in a healthy local browser) but pass on every other Skia
target — a real WASM-specific TextBox key/undo defect, not flakiness. Exclude on
SkiaWasm with tracking issue #23525 to unblock CI pending the product fix.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Root cause: the CI launched the WASM test browser via xvfb-run google-chrome with
no window manager and no defined screen, so the window was treated as background/
zero-size and Chromium throttled requestAnimationFrame/timers -> render-loop-driven
scroll/BringIntoView/virtualization animations stalled and the tests waiting on them
timed out intermittently.

- wasm-run-skia-runtime-tests.sh: run the browser under xvfb -screen 1920x1080x24 +
  fluxbox window manager + --window-size + anti-throttle flags (mirrors the passing
  linux-skia setup), and kill stray fluxbox between retries.
- Harden the affected runtime tests to wait on the real post-condition (WaitFor)
  instead of fixed Task.Delay/short timeouts (no behaviour change; same assertions).
- Exclude on SkiaWasm only the render-loop tests that remain env-flaky, with
  [GitHubWorkItem] tracking (#23524); still covered on all other Skia targets.

Validated: the WebAssembly Skia stage goes green (build 219522).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Address PR review feedback on #22991:

- Fix native WinUI build: gate OnNavigatedTo's `internal` modifier
  behind `#if HAS_UNO`. Uno's Page.OnNavigatedTo is
  `protected internal virtual` while WinUI's is `protected`, so the
  override must drop `internal` on native WinUI. Matches the
  SourceTypePage pattern in Given_Frame.
- Remove the Bindings.Update() workaround from DataContextChanged so
  the test no longer masks the original timing regression.
- Assert the rendered TheTextBlock.Text (via FindName + WaitFor), not
  just the backing BoundText property, to catch the stale-UI case.
- Use Task.Yield() instead of Task.Delay(200) for the async break.

Kept `using static Private.Infrastructure.TestServices;` (reviewers
suggested removing it): WindowHelper is the nested
Private.Infrastructure.TestServices.WindowHelper, not a type in
Uno.UI.RuntimeTests.Helpers, and isn't a global using, so removing it
would break compilation.

Runtime-validated: passes on Skia Desktop.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9s2iUVnwJRRdpviweaTCR
Match the prevailing attribute ordering in the runtime tests (GitHubWorkItem
before PlatformCondition) per Copilot review feedback. Cosmetic; no behaviour change.
Match the prevailing attribute ordering in Given_TextBox.skia.cs per Copilot
review feedback. Cosmetic; no behaviour change.
…eview)

Per Copilot review: the WaitFor calls added to address slower-runtime races relied
on the helper's default 1s timeout. Set explicit 5000ms timeouts on the ContentDialog
initial-focus, MenuFlyout foreground-resolve, and FlipView wheel SelectedIndex waits.
Addresses the WinAppSDK compile break and the PR review feedback on the
When_Button_Does_Not_Stay_Pressed_During_Async_Click_Handler test:

- Replace buttonRect.GetCenter() with inline Point math. GetCenter is a
  Uno.UWP extension (Uno.Extensions.RectExtensions) that is absent on the
  native WinAppSDK target, which broke the Windows build with CS1061.
- Use TrySetResult so a second injected Click can't throw.
- Poll for template children and null-check GetVisualStateGroups before
  querying CommonStates, so the test can't NRE/throw if the template is
  not ready yet.
- Assert the button is in the Pressed state while held, so a button that
  never engages Pressed fails loudly instead of passing trivially.
- Replace the brittle Task.Delay(500) with a gate TaskCompletionSource:
  the Click handler blocks until the post-release assertion has run, so
  there is no wall-clock window for the assertion to race. Released in a
  finally to avoid leaving the handler awaiting forever on failure.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015DYGmMmEsscuswdkmjSNrZ
@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure area/automation Categorizes an issue or PR as relevant to project automation labels Jun 25, 2026
nickrandolph and others added 5 commits June 26, 2026 03:10
…time-tests

fix(ci): De-flake WASM-Skia runtime tests (browser env + test hardening) (#23524)
…-dev.36

chore(sdk): bump Uno.UI.App.Mcp to 1.3.0-dev.36
Updated links for Uno Platform Studio App and Agent in README.
docs: Update README for Studio AI-native suite
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 219872 did not find any UI Test snapshots differences.

@unodevops

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot removed the conflicts Automated merge hit conflicts label Jun 26, 2026
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@github-actions github-actions Bot added platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Jun 26, 2026
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 219909 did not find any UI Test snapshots differences.

@MartinZikmund
MartinZikmund merged commit 61c9df3 into feature/breakingchanges Jun 26, 2026
67 checks passed
@MartinZikmund
MartinZikmund deleted the automation/master-sync/feature/breakingchanges branch June 26, 2026 09:03
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 area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation master-sync Automated master→feature sync PR platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform 🤖 Project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants