Skip to content

refactor(build)!: Re-delete resurrected native WASM test head - #23972

Merged
MartinZikmund merged 2 commits into
feature/breakingchangesfrom
dev/mazi/2097-native-drop-misses
Aug 7, 2026
Merged

MartinZikmund merged 2 commits into
feature/breakingchangesfrom
dev/mazi/2097-native-drop-misses

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: Part of epic unoplatform/uno-private#2049 — 🦋 Drop native targets. Closes unoplatform/uno-private#2097.

PR Type:

🏗️ Build or CI related changes · 📚 Documentation content changes

What changed? 🚀

Addresses the four items left open when unoplatform/uno-private#2097 was reopened by audit.

The resurrected head

src/Uno.UI.RuntimeTests/Uno.UI.RuntimeTests.Wasm.csproj was deleted by c3608f48c4 and came back on this branch through master-sync merge 8d5e55db9f (#23800). Master had modified the file (47bce13e28) while this branch had deleted it, so the merge hit a modify/delete conflict and the sync job staged master's copy.

It is dead residue: no .slnf/.slnx/.sln, .props, .targets or CI .yml references it, and 5 of its ProjectReferences point at projects that no longer exist (Uno.UI.Wasm.csproj, Uno.UI.Toolkit.Wasm.csproj, Uno.UI.FluentTheme.Wasm.csproj, Uno.UI.RemoteControl.Wasm.csproj, Uno.UI.Runtime.WebAssembly.csproj). Deleted again, along with LinkerDefinition.Wasm.xml, whose only consumer was that project.

The root cause of the resurrection — and a guard against it — is handled in the unoplatform/uno-private#2059 PR.

Stale entry points

Uno.UI-Wasm-only.slnf and SamplesApp.Wasm were removed with the native WASM-DOM stack, but four places still pointed at them. The browser target is now Skia, covered by Uno.UI-Skia-only.slnf and SamplesApp.Skia.WebAssembly.Browser.

  • build/gitpod/build-wasm.sh — built the deleted filter; now publishes the browser head (which is what the serve script needs, and what build-skia.sh's plain build does not produce).
  • build/gitpod/serve-sampleapp-wasm.sh — pushded into the deleted SamplesApp.Wasm and served a netstandard2.0/dist path that no longer exists; now serves the head's publish/wwwroot, mirroring build/test-scripts/wasm-run-skia-runtime-tests.sh. Port 8000 still matches .gitpod.yml.
  • AGENTS.md — the solution-filter table listed two deleted filters; replaced with the filters that exist (note Uno.UI-Reference-**O**nly.slnf, capital O). Also repointed the sample-app validation step off SamplesApp.Wasm.
  • src/crosstargeting_override.props.sample — the target/filter table advertised both deleted filters and was still on net9.0/net10.0; regenerated for net10.0/net11.0 with the box-drawing alignment preserved.

Validation

  • Code review: git grep over AGENTS.md, build/, src/*.props.sample for Uno.UI-Wasm-only, Uno.UI-netcore-mobile-only and SamplesApp.Wasm/ returns nothing outside specs/ (historical records, deliberately untouched).
  • Compile: not applicable — the deleted project is in no solution or filter, so nothing compiles it. A full dotnet restore Uno.UI-Skia-only.slnf cannot run locally on this branch (no local .NET 11 SDK; Uno.UI.RemoteControl.TestProcessor is net11-only, so NETSDK1045). CI covers it.
  • Runtime: not applicable — deletions and documentation only. The Gitpod scripts were not executed (see below).

Not in this PR

Called out so nothing here reads as more complete than it is:

  • Gitpod is still pre-net11. build/gitpod/.gitpod.Dockerfile pins DOTNET_VERSION=8.0 and .gitpod.yml also installs 7.0.302. The scripts now name the right projects, but the image cannot build this branch. Worth its own issue.
  • build/test-scripts/ios-uitest-build.sh and local-ios-uitest-run.sh still cd into the deleted SamplesApp.netcoremobile, and local-android-uitest-run.sh points at a stale output path. No CI .yml invokes them. Left alone — repointing them is a behaviour change I cannot validate here.
  • .github/labeler.yml still has glob pairs for four deleted directories.
  • src/Uno.UI/AssemblyInfo.cs carries several dead InternalsVisibleTo entries (Uno.UI.RuntimeTests.Wasm, SamplesApp.Wasm, SamplesApp.macOS, Uno.UI.Maps, …). Removing one of seven would be worse than removing none; a sweep belongs in its own PR.

PR Checklist ✅

This targets feature/breakingchanges: the deleted project head is a breaking change for anyone building it, though nothing in-tree does.

MartinZikmund and others added 2 commits August 5, 2026 14:46
The head was deleted by c3608f4 and re-added by master-sync merge
8d5e55d: master modified it (47bce13) while this branch had
deleted it, and the sync job staged master's copy. It is unreferenced
by any solution, filter or CI leg, and 5 of its ProjectReferences no
longer exist.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01D5wk47a5fYoVKWwn9xbexY
Uno.UI-Wasm-only.slnf and SamplesApp.Wasm were deleted with the native
WASM-DOM stack; the browser target is now Skia and lives in
Uno.UI-Skia-only.slnf / SamplesApp.Skia.WebAssembly.Browser.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01D5wk47a5fYoVKWwn9xbexY
Copilot AI lite review requested due to automatic review settings August 5, 2026 14:54
@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 3m 10s —— View job


Code Review

  • Gather context and understand the PR
  • Review changed files
  • Post inline comments for findings
  • Update summary

Verdict: LGTM with minor suggestions — 2 findings (1 minor, 1 nit), no correctness or correctness-blocking issues.

The deletion of Uno.UI.RuntimeTests.Wasm.csproj and LinkerDefinition.Wasm.xml is clean. git grep confirms no remaining references to those projects in the build graph. The documentation updates (AGENTS.md, crosstargeting_override.props.sample) are accurate and the Reference-Only filter name (Uno.UI-Reference-Only.slnf, capital O) is correct.

Minor (1): build/gitpod/serve-sampleapp-wasm.sh — if build-wasm.sh hasn't run, the ls glob produces an empty WWWROOT with no loud failure. The old script would have failed clearly at pushd. See inline comment for a one-line guard.

Nit (1): build/gitpod/build-wasm.sh — missing /p:UnoTargetFrameworkOverride=net10.0 for consistency with build-skia.sh; harmless today since the browser project is single-TFM, but worth aligning before NetCurrent bumps to net11.0.

No other issues found: no stale net9.0/Uno.UI-Wasm-only.slnf/Uno.UI-netcore-mobile-only.slnf references leak through, Conventional Commits format is respected, and the "not in this PR" callouts accurately scope what was left intentionally.

Comment thread build/gitpod/serve-sampleapp-wasm.sh Resolved
Comment thread build/gitpod/build-wasm.sh Resolved

Copilot AI 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.

Pull request overview

This PR removes a resurrected, no-longer-referenced native WebAssembly runtime-tests project head and updates developer/Gitpod entry points and documentation to point to the Skia WebAssembly browser head and current solution filters.

Changes:

  • Delete Uno.UI.RuntimeTests.Wasm.csproj and its LinkerDefinition.Wasm.xml residue.
  • Update Gitpod build/serve scripts to publish and serve SamplesApp.Skia.WebAssembly.Browser output.
  • Refresh AGENTS.md and crosstargeting_override.props.sample to reflect the current solution filters/TFM guidance.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Uno.UI.RuntimeTests/Uno.UI.RuntimeTests.Wasm.csproj Removes the resurrected native WASM runtime-tests project head.
src/Uno.UI.RuntimeTests/LinkerDefinition.Wasm.xml Removes linker descriptor that was only consumed by the deleted WASM head.
src/crosstargeting_override.props.sample Updates the documented target/framework ↔ solution-filter mapping to current net10/net11 + filters.
build/gitpod/serve-sampleapp-wasm.sh Serves the published Skia WebAssembly browser head instead of the deleted SamplesApp.Wasm.
build/gitpod/build-wasm.sh Publishes SamplesApp.Skia.WebAssembly.Browser to produce a wwwroot suitable for serving.
AGENTS.md Updates solution-filter table and sample-app validation step away from deleted WASM head.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread build/gitpod/serve-sampleapp-wasm.sh Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@MartinZikmund
MartinZikmund enabled auto-merge August 7, 2026 14:09
@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Aug 7, 2026
@MartinZikmund
MartinZikmund merged commit d05c935 into feature/breakingchanges Aug 7, 2026
65 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/2097-native-drop-misses branch August 7, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants