Skip to content

chore: Retarget to Uno 7.0.0-dev.2285 and Uno.Themes 9.0.0-dev.56 - #1681

Merged
Xiaoy312 merged 7 commits into
mainfrom
dev/xygu/20261021/uno7-dev2285-retarget
Oct 22, 2026
Merged

Xiaoy312 merged 7 commits into
mainfrom
dev/xygu/20261021/uno7-dev2285-retarget

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): related to unoplatform/uno#25117

PR Type

  • Build or CI related changes
  • Other... Please describe: Uno SDK and Uno.Themes retarget

What is the current behavior?

Toolkit is on Uno.Sdk 7.0.0-dev.1574 and Uno.Themes 9.0.0-dev.37. That Themes version depends on Uno.WinUI.Lottie, a package Uno removed in 7.0.0-dev.1664 (unoplatform/uno#25117) when LottieVisualSource moved into Uno.UI. Uno.Toolkit.WinUI.Material and .Cupertino pass that dependency on to consumers. Uno.Themes moved past it in unoplatform/Uno.Themes#1760.

What is the new behavior?

  • Retarget to Uno.Sdk 7.0.0-dev.2285 (and Uno.WinUI.DevServer) and Uno.Themes 9.0.0-dev.56. The two must move together: Themes 9.0.0-dev.56 drops Uno.WinUI.Lottie and requires Uno.WinUI 7.0.0-dev.2285. The bump needed these sample fixes:
    • The Android entry points of the sample heads use the host base types from Uno.UI.Runtime.Android.
    • The SDK-pinned Uno.Resizetizer ignores Color on UnoSplashScreen (Uno.Resizetizer0001), so the splash screens use BackgroundColor.
  • The wrapper drops the !Uno.UI.Lottie guest isolation rule. No Release guest ships that assembly any more.
  • The wrapper tolerates one known unreclaimed guest ALC. From dev.2285, a reloaded Cupertino guest's ALC is not reclaimed after unload, on Win32 and Linux (unoplatform/uno-private#2469). Material and Simple are reclaimed within the retries. The loader refuses to load while an unloaded ALC is alive (its XAML attached-property binding paths read null once a second ALC has loaded the owner assembly uno#24581 guard), so the wrapper got stuck on that guest and the hosting smoke failed at "Reloading Cupertino", 2/2 runs, while main passes 2/2. Until #2469 is fixed:
    • GuestAppLoader tracks every unloaded ALC, not only the last one. In Release desktop it still throws GuestAppLoadException unless the only survivor is a single Cupertino ALC. In that case it logs one warning naming the retained guest and the uno#24581 stale-type risk, and loads the next guest.
    • The hosting smoke's reclamation check stays authoritative on Release desktop. The known retention passes and is reported as KNOWN-ISSUE uno-private#2469 on the RESULT line. With the exemption emptied, the smoke fails again at "Reloading Cupertino".
    • TODO(uno-private#2469) markers sit at both code sites, and a restore checkbox in the spec names the commits to revert.
  • Docs: README.md names the one temporary exception to the reclamation guarantee. specs/toolkit-wrapper/progress.md records the retarget, the limitations below, and the verification.

Package impact

  • Uno.Toolkit.WinUI.Material and .Cupertino depend on Uno.Material.WinUI / Uno.Cupertino.WinUI 9.0.0-dev.56 and Uno.WinUI 7.0.0-dev.2285, with no Uno.WinUI.Lottie (checked on locally packed nupkgs).

Known limitations

  • When a theme sample is hosted in the wrapper, the Material and Cupertino ProgressRing animations never load (Failed to load animation … FileNotFoundException: 'uno.material.winui'). This is not a regression: main logs the same two errors when Material is hosted. It is the upstream embedded:// resolution issue described in Uno.Themes' specs/05-alc-wrapper-app/upstream-issues.md § 6. Standalone heads are unaffected.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Verified locally on Windows:

  • Builds: desktop Release solution with 0 errors; the libraries are warning-free. The remaining warnings are the existing sample nullable warnings and UXAML0007 from the runtime-test engine. The Android heads (Debug) and the iOS and Windows App SDK libraries build. Android, iOS and Windows App SDK were build-only. The two WMC1500 warnings in the Windows Material library are also present on main.
  • Runtime tests, Skia desktop (Win32, Release): Material 957 passed, 0 failed, the same as main.
  • Launch: the standalone Material, Cupertino and Simple heads start without errors.
  • Hosting smoke (Win32, Release): passes, with the known issue reported once, at "Reloading Cupertino". With the exemption emptied it fails there again, so the strict check is live.
  • CI: the Linux hosting smoke passes the same way (known issue reported once, every other ALC reclaimed). The hot-reload runtime tests, desktop runtime tests, WASM, Android and iOS builds, and packages also pass.

Internal Issue (If applicable):

🤖 Generated with Claude Code

Xiaoy312 and others added 5 commits October 21, 2026 13:39
- Uno.Themes 9.0.0-dev.37 depends on Uno.WinUI.Lottie, which Uno removed in 7.0.0-dev.1664; 9.0.0-dev.56 drops it and requires Uno.WinUI 7.0.0-dev.2285
- Bump Uno.Sdk.Private and Uno.WinUI.DevServer to 7.0.0-dev.2285 to match
- Use the Android host base types from Uno.UI.Runtime.Android in the sample heads

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- The Uno.Resizetizer pinned by Uno.Sdk 7.0.0-dev.2285 ignores Color on UnoSplashScreen (Uno.Resizetizer0001)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Uno 7.0.0-dev.1664 moved LottieVisualSource into Uno.UI, so no Release guest ships Uno.UI.Lottie any more

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- From Uno 7.0.0-dev.2285 a reloaded Cupertino guest's ALC stays alive after unload on Win32 Release (unoplatform/uno-private#2469, also seen on Linux in Uno.Themes), so the loader refused every further load
- Log a warning and boot the next guest instead, accepting the uno#24581 stale-type risk in the sample wrapper only
- Make the hosting smoke's reclamation check warning-only on Release desktop as well
- Restore both once uno-private#2469 is fixed

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Hosted ProgressRing failure is pre-existing and upstream
- Win32 guest ALC retention (uno-private#2469) and the temporary loader/smoke relaxation
- Verification results

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown

@Xiaoy312
Xiaoy312 enabled auto-merge October 21, 2026 20:33

@ajpinedam ajpinedam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review from a seven-reviewer panel (architect, security, skeptic, quality, operability, contract, performance). Verdict: fix first.

The shipped packages are fine: no public API, DependencyProperty or resource-key changes, and src/ only changes version numbers. Every material finding comes back to the ThemeWrapper ALC workaround, which is broader than the single case it works around. The inline comments below have the details, and a consolidated summary is posted as a separate comment.

Comment thread specs/toolkit-wrapper/progress.md Resolved
Comment thread specs/toolkit-wrapper/progress.md Resolved
Comment thread specs/toolkit-wrapper/progress.md Resolved
Comment thread specs/toolkit-wrapper/progress.md Resolved
Comment thread src/Directory.Packages.props Resolved
@ajpinedam

Copy link
Copy Markdown
Contributor

Review panel summary: Uno 7.0.0-dev.2285 retarget

Verdict: fix first. Six reviewers said "approve with changes", skeptic said "fix first", and security found nothing.

The shipped NuGet packages are fine: no public API, DependencyProperty or resource key changed, and nothing under src/ changed except version numbers. Every material finding is about one thing. The ThemeWrapper workaround for the leaked guest assembly load context (ALC) applies to every guest and every desktop OS, but the failure was only seen for one guest (the Cupertino reload) on Win32.

Findings

Sev Finding Where Flagged by
High The reclamation check can no longer fail anywhere. The only CI ALC-leak check (stage-build-desktop.yml:97) now passes on a leak GuestHostingSmoke.cs:24 (inline) skeptic, architect, quality, contract, performance, operability
Medium Nothing limits how many guests boot over a live ALC (uno#24581 cross-pinning can cascade), and _lastUnloadedAlc only tracks the last ALC GuestAppLoader.cs:582-587 (inline) performance, skeptic, architect, contract, operability
Medium Blaming upstream isn't backed by a root path. The reflection sweep of private Uno fields could be the real gap progress.md:203-208 (inline) quality, skeptic
Medium Docs still describe the strict guarantee README.md:56-61, GuestHostingSmoke.cs:5-11 (not in the diff) quality, architect, skeptic, operability
Medium Nothing actionable tracks the restore: no checkbox or TODO, and the issue is private progress.md:219-220 (inline) architect, quality
Medium Verification gaps: no hot-reload run after the DevServer bump; Cupertino, Simple and WASM suites not run; Android heads never launched; the smoke pass is circular progress.md:224-233 (inline) skeptic
Low The warning blames upstream for every leak, gives no guest name or count, and is buried by 5 per-attempt warnings GuestAppLoader.cs:588 (inline) operability, quality, architect
Low The 10.0 migration notes don't mention the Uno 7 / Themes 9 floor or that Uno.WinUI.Lottie is no longer brought in transitively src/Directory.Packages.props:4 (inline) → doc/uno-toolkit-migration.md contract
Low Slow loads while ALCs are leaking: at least 0.8 s and 10 full GCs per load, and the pauses grow GuestAppLoader.cs:561-579 (folded into the L582 comment) performance
Low The ProgressRing "not a regression" claim cites no evidence progress.md:200-201 (inline) skeptic
Info Check that UnoSplash.def still has Color= under the Resizetizer that 2285 pins; no test asserts the splash Background MaterialSampleApp.csproj:61 (inline) quality, skeptic
Info Theme keys from Themes dev.37 → dev.56 haven't been diffed against src/library/**/Styles (in the Directory.Packages.props comment) contract

Suggested path: scope the exemption to the one known case (guest + OS) and limit how many ALCs can stay alive. That clears the High item and most of the loader, tracking and logging items together. The docs, root-cause and verification items still need separate work.

Existing before this PR (no action needed here)

  • nuget.config has no <packageSourceMapping> (security).
  • UnoThemesVersion is defined in both Directory.Packages.props files, and the DevServer version is a literal copy of the SDK version (architect).

Checked and fine

  • The Android host base types in all 3 heads; ThemeWrapper has no Android head.
  • The splash change in all 4 heads.
  • The !Uno.UI.Lottie removal: nothing left dangling, and there are no Lottie references under src/.
  • Exact version pins: global.json and Directory.Packages.props agree.
  • Uno.WinUI.DevServer is still Debug-only.
  • No new feeds, no new PackageReferences, and no <NoWarn> changes.
  • Conventional Commit subjects.
  • No prerelease versions under doc/.
  • No secrets or machine paths in the spec or logs.

🤖 Generated with Claude Code

Xiaoy312 and others added 2 commits October 22, 2026 10:55
- Track every unloaded guest ALC until it is collected, not only the last one
- Release desktop again refuses to load over an unreclaimed ALC, unless the only survivor is one known Cupertino retention (uno-private#2469)
- The hosting smoke's reclamation check is authoritative again on Release desktop; the known retention is reported as KNOWN-ISSUE on the RESULT line
- One structured warning per load names the retained guests, the pass count and the uno#24581 risk; per-pass "still alive" lines move to Debug
- TODO(uno-private#2469) markers at both sites

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- README: the Release reclamation guarantee now names its one temporary exception
- Spec: Linux CI evidence, sweep-miss check, bisect limits, ProgressRing log lines, a restore checkbox naming the commits to revert, Cupertino package check

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20261021/uno7-dev2285-retarget branch from f9f2404 to 1cd6346 Compare October 22, 2026 15:00
@Xiaoy312

Copy link
Copy Markdown
Contributor Author

Thanks for the review. The fixes are pushed in f5a04959 and 1cd63462:

  • The ALC exemption now only covers the one known case: a single unreclaimed Cupertino guest.
  • Reclamation is strict again on Release desktop.
  • Every unloaded ALC is tracked, not just the last one.
  • TODO(uno-private#2469) markers sit at both code sites.
  • The README and the spec are updated.

I'm waiting for this CI run, mainly the Linux hosting smoke, before I update the PR description and reply to the individual review threads.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

2 similar comments
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants