Skip to content

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

Merged
github-actions[bot] merged 84 commits into
feature/breakingchangesfrom
automation/master-sync/feature/breakingchanges
Jul 2, 2026
Merged

github-actions[bot] merged 84 commits into
feature/breakingchangesfrom
automation/master-sync/feature/breakingchanges

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

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

  • Incoming commits from master: 50

  • Range: cf6ca19957..3882d97dd8

  • 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.

ajpinedam and others added 29 commits June 17, 2026 15:04
Port the eight-lens review panel from studio.live into the repo's
.claude/ tooling, re-aimed at Uno Platform framework conventions.

- .claude/commands/review-panel.md: orchestrator (scope -> 8 parallel
  reviewers -> synthesized verdict); trunk = master; lessons capture
- .claude/agents/{architect,contract,skeptic,performance,operability,
  quality,security,jerome}.md: reviewer lenses citing AGENTS.md and
  .claude/rules/*
- specs/lessons.md: seeded lessons file (read + write learning loop)
- .claude/review-panel-cheatsheet.md: convenience summary
- AGENTS.md: discoverability entry under the skills table
- .gitignore: track .claude/agents and the cheatsheet

No framework/runtime code is touched; Claude Code tooling only.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0156gaPYGu3jecdt4BUavJUG
For Stretch=UniformToFill, Ellipse and Rectangle must report a square
desired size (height = width) so an oversized shape produces overflow
for Horizontal/VerticalAlignment to act on. MeasureRelativeShape
returned new Size(width, height), leaving the desired height at the
available height, so vertical alignment had no effect when the shape
was wider than its container (issue #18265).

This matches WinUI CEllipse::MeasureOverride / CRectangle::MeasureOverride,
which both set desiredSize.height = width.

Adds Given_Ellipse runtime tests reproducing the issue and a
When_RectangleMeasure data row covering the finite UniformToFill case.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CaPHWAaFvY1iT6STp9xL15
Move Draw + CopyPixels (SwapBuffers/BitBlt) off the UI thread onto a
dedicated background thread. The UI thread records SKPictures and
signals the render thread via SignalNewFrame; the render thread replays
the picture, hands the clip path back to the UI thread, and presents.

Replaces the FramePacer-driven render timer in Win32WindowWrapper. The
cross-platform render scheduler (OnNativePlatformFrameRequested,
EnqueueRender, OnRenderFrameOpportunity) is unchanged — the render
thread reuses it from a non-UI thread and EnqueueRenderCallback still
runs Render() on the UI thread to record the next SKPicture.

Bounded join on dispose (250 ms primary + 2 s backstop) keeps window
close responsive even if the GPU is hung.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Call wglSwapIntervalEXT(1) after GL context creation so SwapBuffers
blocks until the next display refresh. Without this, some GPU drivers
default to swap interval 0 — SwapBuffers returns immediately and the
render thread spins at hundreds of fps, wasting CPU. Logs a warning
if the extension is unavailable or the call fails.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
BitBlt returns instantly (unlike SwapBuffers, which blocks for vsync
when the swap interval is set), so the software path used to spin at
hundreds of fps on the render thread. Add a DwmFlush call after BitBlt
to pace presentation at the DWM compositor's vsync.

Add a degraded-pacing fallback for environments where DwmFlush hangs
or fails repeatedly (RDP reconnect, fast user switch, GPU TDR): after
3 consecutive failures, switch to a 16 ms Thread.Sleep for the
lifetime of the renderer. Better to lose vsync alignment than to risk
hanging the render thread on each frame.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
OnRenderingNegativePathReevaluated mutates _lastClipPath, _tempPath,
and HRGN caches that are only safe to touch on the UI thread. With
the render thread now dispatching the clip path back via
NativeDispatcher.Main.Enqueue, add a debug assert to catch any future
regression where the callback would be invoked off the UI thread.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- Move StartPaint inside try in render thread (Copilot)
- Move GL context detach into TryCreateGlRenderer (ramez)
- Remove unused onFramePresented callback (ramez)
- Restore SetFrameRateAsScreenRefreshRate wiring via IRenderer.UpdateRefreshRate (ramez)
- Pace software DwmFlush degraded fallback via FramePacer at FeatureConfiguration.CompositionTarget.FrameRate, single pacing point (ramez)
Re-apply wglSwapIntervalEXT(1) after Reinitialize() recreates the
HGLRC (the swap interval is per-context), and delete the memory DC
from CreateCompatibleDC with DeleteDC instead of DeleteObject.

Co-Authored-By: Claude Fable 5 <[email protected]>
Replace DisposeAndTryJoin's two-stage timeout and abandon path with a
single unbounded Thread.Join in IDisposable.Dispose. A present always
completes in bounded time (vsync, or a GPU TDR reset for a hung
present), so the thread reliably observes _disposed and exits; the
abandon/leak fallback and its bool safety contract are no longer needed.
OnWmDestroy disposes the renderer and surface unconditionally after the
join.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Adds Given_Basic_Shapes_Parity, a Skia runtime test that renders the
Basic_Shapes HorizontalAlignment x VerticalAlignment grids for Ellipse
and Rectangle across all stretches and sizes, then compares each render
against the WinUI golden screenshots (reused, not copied, from the
native-only and currently [Ignore]d Basics_Shapes_Tests UI test).

This adds the Skia shapes-parity coverage that did not exist before:
the original UI test only ran on native iOS/Android, so it never
exercised the Skia measure/arrange path where #18265 occurred. All 190
Ellipse/Rectangle configurations now match WinUI.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CaPHWAaFvY1iT6STp9xL15
The Vulkan swapchain uses MAILBOX present mode, which is tear-free but
does not block, so the dedicated render thread spun unthrottled (~2000
fps), rendering frames the compositor just discards. Pace it to the DWM
vsync via DwmFlush, keeping MAILBOX's low latency.

Extract the DwmFlush + degraded-timer fallback (previously inline in the
software renderer) into a shared Win32VSyncPacer used by both the
software and Vulkan renderers.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V2Wu63od5GJLd3wCVxRs8Y
The Basic_Shapes stretch/alignment golden comparison was a UI test that only
ran on native iOS/Android and was [Ignore]d, so it never exercised the Skia
path where #18265 occurred. Replace it with the Skia runtime test
Given_Basic_Shapes_Parity and move the WinUI golden screenshots into the
runtime tests library.

- Move all 570 expected screenshots from SamplesApp.UITests into
  Uno.UI.RuntimeTests/Assets/ShapeParityGoldens; load them via ms-appx Content
  (works across all targets) instead of a cross-project embedded resource.
- Extend Given_Basic_Shapes_Parity to all six shapes (Ellipse, Rectangle,
  Line, Path, Polygon, Polyline) x every stretch x size. All 570 configs match
  WinUI on Skia, including the ones the old UI test had to exclude on native.
- Remove the golden comparison suite from Basics_Shapes_Tests; keep the still
  active Validate_Offscreen_Shapes browser test.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CaPHWAaFvY1iT6STp9xL15
- Lower Given_Ellipse pixel tolerance 20 -> 5 (per runtime-tests guideline)
- Use 'using var' for the parity-test golden bitmap (dispose on all paths)
- Clarify the Rectangle UniformToFill row: DesiredSize is clamped to available,
  so the bug surfaces only in arrange (covered by the pixel-based tests)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CaPHWAaFvY1iT6STp9xL15
When SetFrameRateAsScreenRefreshRate is false, pace the render thread to
the configured FeatureConfiguration.CompositionTarget.FrameRate via a
timer instead of the display vsync, restoring fixed-FPS rendering.

Add a followRefreshRate flag to the pacer (renamed Win32VSyncPacer ->
Win32RenderPacer, since it no longer only paces to vsync): when off it
skips DwmFlush and always paces via the timer. Software and Vulkan pass
the flag; OpenGL uses swap interval 0 + the timer in that mode and keeps
wglSwapInterval(1) when following the refresh.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V2Wu63od5GJLd3wCVxRs8Y
ReleaseGlContext disposes _renderTarget but Reinitialize left the field
pointing at the freed instance, so the next UpdateSize disposed it again.
Null it after release; UpdateSize recreates it.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V2Wu63od5GJLd3wCVxRs8Y
When_CompactPaneLength_Changed_PaneToggleButton_Updates is flaky on
native WinUI; exclude it there via PlatformCondition pending the
investigation tracked in #23561. Still runs on Skia and WASM.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CaPHWAaFvY1iT6STp9xL15
Custom-chrome (extend-into-titlebar) windows remove the system frame in
WM_NCCALCSIZE, but a maximized resizable window is positioned so its resize
frame overhangs the monitor on every edge. The client area (and the caption
buttons) therefore spilled off-screen, and AppWindow.ClientSize / Window.Bounds
/ XamlRoot.Bounds over-reported. The previous compensation was a hard-coded,
DPI-unaware WindowChrome.Padding = 4 fudge.

Correct it natively: when maximized (and not full-screen), clamp the proposed
client rect to the monitor work area in WM_NCCALCSIZE so the client becomes
exactly the visible, non-taskbar region - matching a standard maximized window
and WinUI - with no frame/DPI math. An auto-hide taskbar reserves no work area,
so reserve 1px on any edge hosting one (via SHAppBarMessage) so it can still be
revealed. The WindowChrome.Padding hack and the dead _offScreenMargins /
_extendedMargins are removed.

Also fix non-client caption/drag-region hit-testing to map region rects through
the real client origin (ClientToScreen) instead of the window origin, which only
coincided while full-bleed; once the client is inset they diverged by the frame
thickness.

closes #21745

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AYJwArDyoGhNWJ6Zy79Z3e
Regression test for #21745: a maximized window with an extended title bar must
have its client area inset from the (overhanging) window rect. Before the fix
the client equalled the window (off-screen bleed); after, it is strictly smaller
by the resize-frame thickness per side.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AYJwArDyoGhNWJ6Zy79Z3e
A custom-chrome caption button (e.g. Minimize) stayed stuck in its hovered
(PointerOver) state when the pointer slid off it sideways into the caption drag
area. The hover is driven by redirected non-client pointer moves, but only moves
over the buttons were redirected to XAML; moving into the caption (HTCAPTION)
delivered no move at the new position, so the button never received the
pointer-leave transition. (Moving down into the client, or right onto the next
button, worked because those do deliver a move.)

Redirect WM_NCPOINTERUPDATE over the whole title bar (caption drag area + caption
buttons), not just over the buttons. NCPOINTERDOWN/UP stay gated to the buttons,
so window dragging via DwmDefWindowProc is unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AYJwArDyoGhNWJ6Zy79Z3e
fix: Square measure for UniformToFill shapes
MartinZikmund and others added 19 commits July 1, 2026 16:00
- Move StartPaint inside try in render thread (Copilot)
- Move GL context detach into TryCreateGlRenderer (ramez)
- Remove unused onFramePresented callback (ramez)
- Restore SetFrameRateAsScreenRefreshRate wiring via IRenderer.UpdateRefreshRate (ramez)
- Pace software DwmFlush degraded fallback via FramePacer at FeatureConfiguration.CompositionTarget.FrameRate, single pacing point (ramez)
Re-apply wglSwapIntervalEXT(1) after Reinitialize() recreates the
HGLRC (the swap interval is per-context), and delete the memory DC
from CreateCompatibleDC with DeleteDC instead of DeleteObject.

Co-Authored-By: Claude Fable 5 <[email protected]>
Replace DisposeAndTryJoin's two-stage timeout and abandon path with a
single unbounded Thread.Join in IDisposable.Dispose. A present always
completes in bounded time (vsync, or a GPU TDR reset for a hung
present), so the thread reliably observes _disposed and exits; the
abandon/leak fallback and its bool safety contract are no longer needed.
OnWmDestroy disposes the renderer and surface unconditionally after the
join.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The Vulkan swapchain uses MAILBOX present mode, which is tear-free but
does not block, so the dedicated render thread spun unthrottled (~2000
fps), rendering frames the compositor just discards. Pace it to the DWM
vsync via DwmFlush, keeping MAILBOX's low latency.

Extract the DwmFlush + degraded-timer fallback (previously inline in the
software renderer) into a shared Win32VSyncPacer used by both the
software and Vulkan renderers.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V2Wu63od5GJLd3wCVxRs8Y
When SetFrameRateAsScreenRefreshRate is false, pace the render thread to
the configured FeatureConfiguration.CompositionTarget.FrameRate via a
timer instead of the display vsync, restoring fixed-FPS rendering.

Add a followRefreshRate flag to the pacer (renamed Win32VSyncPacer ->
Win32RenderPacer, since it no longer only paces to vsync): when off it
skips DwmFlush and always paces via the timer. Software and Vulkan pass
the flag; OpenGL uses swap interval 0 + the timer in that mode and keeps
wglSwapInterval(1) when following the refresh.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V2Wu63od5GJLd3wCVxRs8Y
ReleaseGlContext disposes _renderTarget but Reinitialize left the field
pointing at the freed instance, so the next UpdateSize disposed it again.
Null it after release; UpdateSize recreates it.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V2Wu63od5GJLd3wCVxRs8Y
The present trigger was coupled to WM_PAINT, the lowest-priority Win32
message. GetMessage returns posted dispatcher messages before a synthesized
WM_PAINT, so a saturating posted-message chain (a WaitForIdle loop spinning
on Compositor.IsAnimating) starves WM_PAINT indefinitely: the render thread
is never signaled, never presents, and the per-present composition animation
tick never runs, so IsAnimating never clears and the test hangs for minutes.

InvalidateRender now wakes the render thread directly via the AutoResetEvent
(the same primitive the WM_PAINT/resize/first-show paths already use), which
is immune to message-queue starvation. The follow-on animation tick rides the
dispatcher's posted render action (a FIFO peer of the idle posts, pulled first
by TryGetRenderAction), so the animation advances and IsAnimating clears.
Immediate, no frame pacer; OS-driven repaints still use WM_PAINT; present-side
vsync pacing is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V2Wu63od5GJLd3wCVxRs8Y
A custom-chrome caption button (e.g. Minimize) stayed stuck in its hovered
(PointerOver) state when the pointer slid off it sideways into the caption drag
area. The hover is driven by redirected non-client pointer moves, but only moves
over the buttons were redirected to XAML; moving into the caption (HTCAPTION)
delivered no move at the new position, so the button never received the
pointer-leave transition. (Moving down into the client, or right onto the next
button, worked because those do deliver a move.)

Redirect WM_NCPOINTERUPDATE over the whole title bar (caption drag area + caption
buttons), not just over the buttons. NCPOINTERDOWN/UP stay gated to the buttons,
so window dragging via DwmDefWindowProc is unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AYJwArDyoGhNWJ6Zy79Z3e
Forward-ports the "Uno Platform 6.6" section of
migrating-from-previous-releases.md to master, mirroring the content
already reviewed and approved for the release/stable/6.6 branch in #23580.

Covers the three migration-relevant changes for 6.6:
- Removal of legacy Windows.Phone namespaces (#22377, breaking)
- Mouse wheel direction on Linux Framebuffer (#22924)
- Uno.Extensions MVUX bindable generation tool v2 -> v3 (uno.extensions#3055)

Migration notes originated on the 6.6 stable branch, so they need a
separate path to master (no auto forward-port from stable). The 6.6-only
external-docs pin changes stay in #23580 and are intentionally not included
here.

Related to unoplatform/private#1076

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@MartinZikmund
MartinZikmund force-pushed the automation/master-sync/feature/breakingchanges branch from 3f0c91b to 7b83232 Compare July 1, 2026 14:00
@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 kind/documentation labels Jul 1, 2026
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

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

@github-actions
github-actions Bot merged commit 820557d into feature/breakingchanges Jul 2, 2026
67 checks passed
@github-actions
github-actions Bot deleted the automation/master-sync/feature/breakingchanges branch July 2, 2026 07:29
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 kind/documentation master-sync Automated master→feature sync PR 🤖 Project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants