Repository navigation
ci(canary): merge main into canaries/dev - #1648
Merged
Merged
Conversation
- `AdditionalMargin` insets the usable viewport and participates in `FitToCanvas`/`CenterContent`, but `OnAdditionalMarginChanged` only refreshed the scrollbars, so content stayed fitted/centered against the previous margin until an unrelated size/zoom change re-fit it. - Mirror `OnViewportSizeChanged`: call `UpdateScrollDetails()` so the auto fit/center pass re-runs (gated on `AutoFitToCanvas`/`AutoCenterContent`). - Add runtime tests (red/fix/green): re-fit on margin increase; no forced re-fit when `AutoFitToCanvas` is disabled.
Fixes spellcheck failures on the ZoomContentControl AdditionalMargin re-fit spec (lines 14 and 58).
…efit-on-additionalmargin fix(ZoomContentControl): re-fit/center when AdditionalMargin changes
…ge hook ResponsiveHelper.InitializeIfNeeded subscribed to the process-global XamlRoot.Changed with a strong lambda capturing the process-lifetime static _defaultSizeProvider, with no teardown. The host XamlRoot then roots the Toolkit static chain for the process lifetime, pinning the Toolkit AssemblyLoadContext in a downstream host that loads previewed apps into their own collectible ALCs. - Subscribe via a WeakReference-backed self-detaching handler (static, non-capturing onEvent/detach), so the XamlRoot only holds a weak reference. - Record the subscription in a SerialDisposable. - Add internal Reset() to tear down the default/override providers and their subscriptions between app loads. - Add DEBUG test hooks and ResponsiveHelperLeakTests (deterministic teardown + GC weak-collectibility proof). Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]>
…nt handlers on dispose Two ALC-pin sweeps: - NavigationBar subscribed to the process-global SystemNavigationManager.BackRequested with an instance-method delegate. It is detached on Unloaded, but Unloaded does not fire when the owner's ALC is torn down abruptly. Subscribe via a WeakReference-backed self-detaching handler so the global singleton only holds a weak reference; keep the Unloaded fast path. - FrameworkElementExtensions.SubscribeToNestedElements returned a disposable that cleared its subscription list WITHOUT invoking the recorded unsubscribe actions, leaving Loaded handlers attached (pinning the closure graph to any host-owned element). Invoke each recorded Unsubscribe() on dispose. Adds red/green runtime leak tests for both (weak-collectibility proofs) and a DEBUG test hook on NavigationBar. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]>
…ectible ALCs unload DependencyObjectExtensions cached dependency-property reflection results in a process-lifetime Dictionary<(Type, string), ...>. The strong Type key kept that Type's LoaderAllocator alive, pinning a collectible AssemblyLoadContext (e.g. a downstream host that loads previewed apps into their own collectible ALCs) for the process lifetime. - Replace with ConditionalWeakTable<Type, Dictionary<string, DependencyPropertyInfo?>>: the owner Type is now held weakly, so its per-property cache (and the values it holds) becomes unreachable once the Type/ALC is collected. - Guard inner-dictionary access with a lock. - Add a DEBUG test hook and a red/green runtime test using a collectible (RunAndCollect) dynamic assembly Type, proving the Type key is collectible. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]>
…d-instance sweep ResponsiveExtension rooted every instance in the static HardSelfReferences list and only removed it from CleanupIfHostDisposed(), which only ran from OnWindowSizeChanged. In a fixed-size preview canvas the window never resizes, so that event never fires and dead extensions accumulate forever, each pinning its target/host graph — and, across a collectible AssemblyLoadContext boundary, the previewed app's ALC. The static WindowSizeChanged subscription and the static TrackedInstances weak-reference list had the same accumulation problem. - Subscribe to the static WindowSizeChanged event via a WeakReference-backed self-detaching handler, so a dead extension is collectible without a resize. - Hook the host's Unloaded to proactively release the hard self-reference and tracking (graceful path). - Sweep dead HardSelfReferences / TrackedInstances entries on each Connect. - Add DEBUG test hooks and red/green runtime tests (sweep pruning + extension collectibility without resize/Uninstall). Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]>
ExtendedSplashScreen kept a process-lifetime static Instance reference (assigned in the constructor, never cleared) and held its splash content — which on Android wraps the retained native splash bitmap. The splash is a one-shot startup control, so once it unloads those references only serve to pin it (and, when it belongs to a previewed app loaded into a collectible AssemblyLoadContext, that app's whole ALC) for the process lifetime. - Clear the static Instance on Unloaded (only if it still points at this instance). - Drop SplashScreenContent to an empty placeholder on Unloaded. - Android: recycle and null the retained splash bitmap via a new partial hook. - Add a DEBUG test hook and red/green runtime tests (Instance released on Unloaded + splash-screen collectibility). Also finalises specs/alc-weak-subscription-sweeps/recap.md. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]>
…n Connect The handler is a fresh delegate instance per Connect; the previous one is already detached by '_disposable.Disposable = null' at the top of Connect, so the '-=' was dead code. Co-Authored-By: Claude Fable 5 <[email protected]>
…siveExtension Review follow-up: the DEBUG-hook tests verify the weak helpers but cannot fail if the production wiring is reverted. Add integration tests that drive the real OnLoaded/Install paths and prove collectibility after tree removal, so a revert of the subscription/teardown wiring turns the test red. Also correct the ResponsiveExtension collectibility test's message to describe what it isolates. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]>
The Android implementation of the partial ReleaseNativeSplashResources only clears the process-lifetime static SplashBitmap, so CA1822 (promoted to error under TreatWarningsAsErrors) required it to be static. Mark both partial declarations static; the unqualified call site is unaffected. Also fix a cspell failure (behaviour -> behavior) in the spec recap.
…ensions FrameworkElementExtensions is internal to the UI assembly, so the XML-doc <see cref> in the RuntimeTests summary could not be resolved on the net9.0-android target (code binding honors InternalsVisibleTo, doc-comment cref resolution does not), failing the Android sample build with CS1574 under warnings-as-errors. Use a <c> code span, which needs no resolution.
- fix: SubscribeToNestedElements dropped stale-depth subscriptions via RemoveRange without detaching their Loaded handlers, so they stayed attached yet untracked and leaked their closures; unsubscribe before removing. - refactor: extract the duplicated per-type CreateWeakHandler into a shared internal WeakEventHelper (EventHandler and TypedEventHandler overloads); migrate NavigationBar, ResponsiveHelper and ResponsiveExtension to it. - fix: capture the host XamlRoot weakly in ResponsiveHelper's default-provider teardown so the process-lifetime static does not strongly root a closed window's XamlRoot. - style: mark the ResponsiveHelper SerialDisposable statics readonly. - docs: reword NavigationBar/ResponsiveExtension comments to state the weak wrapper self-detaches on the next event raise after collection (Unloaded is the proactive teardown), not "once collected". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
LoadNativeSplashScreen is fire-and-forget and, on the platforms where GetNativeSplashScreen awaits real I/O (reading the app manifest on Skia/WASM/Windows), can complete after the control has unloaded. Its continuation then re-assigned SplashScreenContent, undoing the Unloaded teardown that releases the content for collection. Skip the late assignment when the control has already unloaded, and wrap the fire-and-forget body in try/catch per the async guidance. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The runtime-test engine's WaitForLoaded treats an element with ActualWidth/ActualHeight == 0 as not-yet-loaded, so SetContentAndWait on a bare empty Grid timed out deterministically before the test body ran (the desktop runtime-tests failure). Give the root an explicit size so it loads and the subscribe/dispose detachment assertion actually executes. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
fix: weak-subscription / static-pin sweeps for collectible ALCs (batch 3)
….1 (#1616) UnoThemesVersion was set to the stable 7.0.1, which was never published to nuget.org (only 7.0.0-dev.* and 7.1.0-dev.1 exist for the Uno.Themes family). Via the Uno.Sdk ImplicitPackagesResolver this value overrides the entire Themes group, so every published theme-flavored package (Uno.Toolkit.WinUI.Material / .Cupertino / .Simple and Uno.Themes.WinUI) ended up depending on an unresolvable Uno.*.WinUI 7.0.1, breaking restore for consumers (e.g. studio.live). Point at the current published dev head of that line, 7.1.0-dev.1. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
* docs: complete 9.0 migration guide breaking changes * docs: adjust for review
…space
The Uno 7 dev-server narrows only the head project to the running flavor and
loads every TargetFrameworks entry of the referenced libraries. The android and
ios flavors were never built in a desktop hot-reload session, so the initial
emit failed ("Image is too small") and hot reload was disabled, which failed 39
of the 45 hot-reload runtime tests in CI.
- Inside the workspace (UnoIsHotReloadHost) and without an explicit
TargetFrameworkOverride, the libraries evaluate net10.0 only.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
Dropping the Uno 6 Hot Design package also removed MainWindow.UseStudio(), so
the hot-reload client had no window to update ("Unable to access
Dispatcher/DispatcherQueue in order to invoke UpdateVisualTree") and XAML
edits never reached the visual tree. The Debug heads now call
EnableHotReload() from the DevServer package instead.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
The Uno 7 dev-server applies one edit as one delta per updated assembly, including the app head's generated uno.hot-reload.info file, and applies the head's delta first. HotReloadHelper resumes the test on any metadata update, so assertions ran before the edited page was replaced in the visual tree. - HotReloadTestHelper wraps HotReloadHelper.UpdateSourceFile and, for both the edit and its revert, waits until a MetadataUpdateHandler has seen a delta for the edited file's assembly, then for the UI thread to be idle. - The hot-reload tests use it instead of HotReloadHelper directly. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
…late The test page applies no Style to CardContentControl, and no implicit style exists, so on Uno 7 (as on WinUI) the control has no template and its content is not part of the visual tree. The tests now use hot reload through the helper and read the content from the control's Content property. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
LoadingViewHRTest is ignored but not DEBUG-only, so Release builds of the runtime tests (every sample head in CI) failed with CS0103 on HotReloadTestHelper. The helper only wraps HotReloadHelper, which exists in every configuration. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
The dev-server re-evaluates the projects without the build's global properties, so -p:TargetFrameworkOverride=desktop does not reach it. On the Linux agent, which has no mobile workloads, the head's android and ios flavors load as plain net10.0, match the running net10.0-skia app, and fail the workspace's initial emit, so hot reload stayed disabled in CI. - Write src/crosstargeting_override.props before building. Both the build and the dev-server read it, so they agree on the desktop flavor. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
- Align `where T : DependencyObject` on `FindChild` and `GetFirstParent` with the rest of the file, which already indents the clause one level deeper Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
- Handle the IO/assembly-load exceptions the Resizetizer definition read can raise as a warning, and keep a generic catch as the last-resort fallback so startup still degrades to "no splash screen" rather than crashing Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…to-top - Replace the exact `VerticalOffset == 0` float comparison with a tolerance, so a smooth scroll that settles just shy of zero does not time the test out Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
- `toolkit` reads as Uno Toolkit inside the Uno Toolkit repo, while it actually points at Uno's own `Uno.UI.Xaml.Controls` (ex-`Uno.UI.Toolkit`) - Covers the 10 style dictionaries and the runtime-test XamlHelper xmlns map Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
- Uno's XAML generator reports `UniversalApiContract` present up to major 14 and the WinAppSDK min target (10.0.19041) is contract 10, so `contract7Present` and `contract8Present` always apply and `contract7NotPresent` never does: inline the former and delete the latter's branches - Remove the `contract*Present`/`contract*NotPresent` and `todo` xmlns declarations left with no reference, plus the `mc:Ignorable` entries and `xmlns:mc` that only existed to carry them Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…tion `src/Uno.Toolkit.UITest/` was removed in #1544 but its solution entry survived, so every `dotnet restore`/`build` against `src/Uno.Toolkit.sln` failed with MSB3202 before reaching a single project. CI never caught it because the pipeline builds the sample heads directly. - Remove the `Uno.Toolkit.UITest` project declaration and its 100 orphaned `ProjectConfigurationPlatforms` rows Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
- Wrap the reviewer handles in backticks so cSpell's inline-code pattern skips them, rather than adding usernames to the shared dictionary - `crosstarget` -> `cross-target` Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The pin down to `10.0.101` worked around uno.check provisioning `wasm-tools` from a manifest that set `mono.toolchain.current` *below* the running SDK, so the resolver asked for a `Microsoft.NET.Runtime.MonoTargets.Sdk` that was never installed and every `net10.0-ios` library build failed `NETSDK1147`. That root cause is gone: uno.check's manifest moved from `WASMTOOLS_VERSION` `10.0.101/10.0.100` (`1cde21cd`, Dec 2025) to `10.0.108/10.0.100` (`c748387e`, Aug 2026), which is well above `10.0.102`. - Restore `DotNetVersion` to `10.0.102` on the Linux, macOS and Windows workload templates, matching `main` - Replace the pin's rationale with the standing constraint, so the hazard is documented without holding the SDK back Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Reverts 562c143. Raising the SDK to 10.0.102 failed the Packages job with the same NETSDK1147 (build 234972), so the pin is structural, not incidental. uno.check ships its manifest as an embedded resource, so the live manifest in unoplatform/uno.check does not apply. 1.34.1 embeds WASMTOOLS_VERSION '10.0.101/10.0.100', and provisioning wasm-tools installs mono.toolchain.current 10.0.101 -- below SDK 10.0.102, which is what breaks the net10.0-ios library builds. - Restore DotNetVersion to 10.0.101 on all three workload templates - Replace the rationale with the verified mechanism, so the next reader does not have to re-derive it from the tool's embedded resources Raising the SDK requires raising uno.check with it; no released version does both cleanly, so that stays a tracked follow-up. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
chore!: Uno Platform 7.0 retarget (SDK, net10.0, Skia mobile port)
- Debug.Assert required a null delegate Target, but Roslyn emits a non-capturing lambda as an instance method on a cached singleton, so the assert fired for every caller and failed every Debug runtime test reaching CreateWeakHandler - compare captured state instead: a closure's display class declares an instance field per captured variable, the cached singleton declares none
- OnHostUnloaded dropped the process-lifetime pins and the tracking entry with nothing re-arming Loaded, so an element that was unloaded and loaded again kept the value it last resolved - drop the pins as before, then re-arm Loaded: a host that is really gone still takes the extension with it, a re-parented one reconnects - runtime test re-parents a host while the size changes and asserts it re-resolves; it fails without this change with Expected:<Narrow> Actual:<Wide>
…-free target - a zero-field check alone also accepted an instance method on a stateless object, whose target the wrapper still keeps alive - require the target's type to be compiler-generated as well, which the singleton Roslyn caches non-capturing lambdas on is and an ordinary class is not
…nnect fix(responsive): reconnect a re-parented host instead of tearing down
- Azure expands pipeline templates from the canaries/dev checkout at queue time, before the Canary Update task merges main, so main's CI fixes never reach the canary pipeline - Picks up fe09f91 (restore the 10.0.101 SDK pin); canaries/dev still ran SDK 10.0.102, failing Build_Packages with NETSDK1147 (wasm-tools) on every net10.0-ios library - Resolves samples/Directory.Packages.props to main, dropping the canary-only SkiaSharp 4.148.0 pin from #1605 whose removal condition (Uno.Sdk 7.0) is now met; the build-time -X theirs merge was already discarding it - Canary build: https://dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_build/results?buildId=235212&view=results Co-Authored-By: Claude Opus 5.5 <[email protected]>
rajamatt
marked this pull request as ready for review
September 23, 2026 17:24
agneszitte
added a commit
that referenced
this pull request
Oct 23, 2026
- canaries/dev was a squash of main up to 09-23 (#1648), so main was never an ancestor and git still counted 204 main commits as missing - This merge commit takes main's tree as-is: the only canary-only difference left was an Android UI test step that edits a script main removed in #1544 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): #
PR Type
What is the current behavior?
The toolkit canary (build #235212) fails
Packages › Build_Packages:mainalready fixed this in fe09f91 (Restore the 10.0.101 SDK pin): uno.check 1.34.1 provisions a mono toolchain manifest for 10.0.101, which doesn't resolve on SDK 10.0.102. The canary still ran 10.0.102. Azure expands pipeline YAML templates from thecanaries/devcheckout at queue time, before the Canary Update task mergesmaininto the workspace, so YAML changes onmainnever reach the canary.canaries/devwas last updated 2026-07-08, and 10build/files had drifted.What is the new behavior?
mainintocanaries/dev. After this PR,canaries/devdiffers frommainonly in the canary-only steps inbuild/workflow/templates/canary-updater.yml.samples/Directory.Packages.propsresolved tomain. This drops the canary-onlySkiaSharpVersion 4.148.0pin from fix(canary): pin SkiaSharp to 4.148.0 on canaries/dev samples #1605. Its removal condition ("when the Uno.Sdk moves to v4 (7.0)") is now met, and the build-time-X theirsmerge was already discarding it.This PR fixes only the NETSDK1147 failure. The other 9 failed jobs fail on a separate
NU1605(MSTest.TestFramework 4.3.3 → 2.1.2, pulled in by Uno.UI.RuntimeTests.Engine 2.0.0-dev.89), which needs a separate fix onmain.PR Checklist
Other information
Verification: none locally, since this change only affects the pipeline. After the merge,
git diff origin/mainshows onlycanary-updater.yml, and the workload templates pinDotNetVersion: '10.0.101'. The next canary run will confirm it.Please merge this with a merge commit (not squash), so that
main's history stays an ancestor ofcanaries/dev.🤖 Generated with Claude Code