Skip to content

feat(sdk): Bundle Uno.HotTesting.Reactive with MVUX (backport #25095) - #25407

Open
mergify[bot] wants to merge 4 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-25095
Open

mergify[bot] wants to merge 4 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-25095

Conversation

@mergify

@mergify mergify Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: unoplatform/uno.extensions#3211

PR Type:

✨ Feature

What changed? 🚀

Projects using UnoFeatures=MVUX now get an implicit reference to Uno.HotTesting.Reactive (MVUX feed mocks for previews and UI tests) in non-optimized builds only. The package is in the Extensions group, so it follows UnoExtensionsVersion.

  • packages.json: the Extensions group is bumped from 7.3.0-dev.102 to 7.4.0-dev.81, and Uno.HotTesting.Reactive is appended last.
    • 7.4.0-dev.81 is the newest build whose dependencies (Uno.WinUI 6.8, Toolkit 8.4.2, Uno.WinUI.Markup 5.3.12) stay within the current Toolkit and C# Markup pins.
    • Every group package is published at that version.
  • Uno.Extensions.Implicit.Packages.ProjectSystem.targets: in the mvux ItemGroup, the reference is gated on $(Optimize) != 'true' and UnoDisableHotTesting (a new opt-out). It carries:
    • PrivateAssets="all", so the dev-only package doesn't flow to projects that reference yours, nor into the nuspec of a library packed in Debug;
    • AvailableSince="7.4".
  • ImplicitPackagesResolver: honors AvailableSince. It skips the package and logs the new UNOB0028 message (Normal importance) when the resolved group version is any of these:
    • older than 7.4 (numeric comparison);
    • a floating version or a range — these would otherwise fail restore with NU1103, because HotTesting has no stable release;
    • missing from the manifest. The package is skipped instead of being fetched from nuget.org, so this PR and the Uno.Templates manifest PR can merge in either order.
  • Docs:
    • a new "MVUX feed mocks in non-optimized builds" section in using-the-uno-sdk.md;
    • a row in migrating-to-uno-7.md;
    • UNOB0028 in uno-build-error-codes.md;
    • UnoDisableHotTesting in the buildschema.

The package's own follow-ups (generator incrementality, diagnostic severity, mock accessibility) belong to uno.extensions and are tracked on the issue.

Companion PR: unoplatform/uno.templates#2305 adds the package to the manifest the public Uno.Sdk ships.

Validation

  • Compile: Uno.Sdk.csproj builds with analyzers enabled: 0 warnings, 0 errors.
  • SDK resolver probe (locally packed Uno.Sdk.Private, UnoFeatures=MVUX, net10.0-desktop, UnoImplicitPackages target):
    • Debug includes Uno.HotTesting.Reactive 7.4.0-dev.81 with PrivateAssets=all, and the AvailableSince metadata is stripped.
    • Absent for: Release, Optimize=true, UnoDisableHotTesting=true, UnoExtensionsVersion 7.2.3 or 7.3.0-dev.102, 7.*, 7.4.*, [7.4.0-dev.81,8.0), and a manifest without the entry (UNOB0028, no nuget.org call).
    • Included for 7.4, 7.4.0-dev.22 and 8.0.0-dev.72.
  • Real app: a recommended MVUX template app (Uno.Sdk 6.8.0-dev.51), with the package referenced the way this PR does:
    • Debug builds for desktop and Android with 0 warnings.
    • Release has no HotTesting in either restore or output.
    • A Debug restore followed by build -c Release --no-restore fails fast on an app head with the existing UNOB0019.
  • Not run: a full restore through this branch's SDK, because the locally packed SDK pins Uno core to 255.255.255.255. uno's template CI doesn't exercise MVUX yet (run-netcore-mobile-template-tests.ps1 forces UnoFeaturesOverride=Svg).

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample. N/A: SDK/MSBuild change, and Uno.Sdk has no test project. Validated with the probes above.
  • 📚 Docs have been added/updated
  • 🖼️ Validated PR Screenshots Compare Test Run results. N/A
  • ❗ Contains NO breaking changes. The new reference is additive, Debug-only and opt-out-able; pinned older Extensions versions skip it.
  • 👀 Reviewed 2 other open pull requests

🤖 Generated with Claude Code


This is an automatic backport of pull request #25095 done by [Mergify](https://mergify.com).

@mergify mergify Bot added the conflicts Automated merge hit conflicts label Oct 13, 2026
@mergify

mergify Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of fe7d333 has failed:

On branch mergify/bp/servicing/6.8/pr-25095
Your branch is ahead of 'origin/servicing/6.8' by 1 commit.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit fe7d333.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   doc/articles/features/using-the-uno-sdk.md
	modified:   src/Uno.Sdk/Models/PackageReference.cs
	modified:   src/Uno.Sdk/Sdk/Sdk.props.buildschema.json
	modified:   src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs
	modified:   src/Uno.Sdk/targets/Uno.Extensions.Implicit.Packages.ProjectSystem.targets

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   doc/articles/migrating-to-uno-7.md

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@github-actions github-actions Bot added kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Oct 13, 2026
@Xiaoy312 Xiaoy312 self-assigned this Oct 13, 2026
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 239302 has failed on Uno.UI - docs.

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@Xiaoy312

Xiaoy312 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

CI errors, blocked behind #25491
requeue again for failed
if that still doesnt pass, should we cherry-pick the same fix here?

@Xiaoy312 Xiaoy312 removed the conflicts Automated merge hit conflicts label Oct 15, 2026
Xiaoy312 and others added 4 commits October 16, 2026 14:48
Add Uno.HotTesting.Reactive to the Extensions group and reference it
implicitly for the MVUX feature in non-optimized builds only, like
Uno.UI.HotDesign: the feed-mocking package is dev/test-only and must not
reach a published app. Bump the Extensions group to 7.4.0-dev.81, the
latest build that ships the package while staying within the current
Toolkit and C# Markup pins.

Refs unoplatform/uno.extensions#3211

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 4b1a8f4)
- UnoDisableHotTesting suppresses the implicit reference.
- A MinimumVersion item metadata, honored by ImplicitPackagesResolver,
  skips the package when UnoExtensionsVersion pins a build older than
  7.4, instead of floating it past the pinned Extensions packages.
- PrivateAssets="all" keeps the dev-only package out of consumers and
  out of the nuspec of a library packed in Debug.
- Document the behavior, the Release constraint and the lock-file split.

Refs unoplatform/uno.extensions#3211

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit fe7d333)

# Conflicts:
#	doc/articles/migrating-to-uno-7.md
Replace the MinimumVersion floor with AvailableSince, checked before
the nuget.org fallback:
- compare numeric parts only, so the floor doesn't rely on how
  NuGetVersion orders a prerelease against its stable release;
- treat floating versions and ranges as unavailable (they restored
  with NU1103, as no stable HotTesting exists);
- skip, rather than fetch the latest from nuget.org, when the shipped
  manifest has no version for the package, which removes the ordering
  dependency on the Uno.Templates manifest.
Report each skip as UNOB0028 and document it, the --no-restore caveat
and the test-project version rule.

Refs unoplatform/uno.extensions#3211

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit bf2e86f)
The cherry-pick of #25095 hit a modify/delete conflict on
migrating-to-uno-7.md, which doesn't exist on servicing/6.8, and
resolved it by adding the whole 7.0 guide. Its "Retarget" word also
fails the cspell check. The HotTesting change stays documented in
using-the-uno-sdk.md and uno-build-error-codes.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Xiaoy312
Xiaoy312 force-pushed the mergify/bp/servicing/6.8/pr-25095 branch from d4b8e5b to f0b9406 Compare October 16, 2026 18:48
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

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

@mergify

mergify Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

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

Labels

area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants