Skip to content

Fix docs/Pages deployment for the existing Uno 7 WASM layout - #5788

Merged
mattleibow merged 3 commits into
mainfrom
mattleibow-uno-site-deployment-fix
Nov 17, 2026
Merged

mattleibow merged 3 commits into
mainfrom
mattleibow-uno-site-deployment-fix

Conversation

@mattleibow

@mattleibow mattleibow commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Split the docs/Pages deployment fix from #5775 so it can land independently of the stable Uno package updates. This PR preserves Ramez Ragaa's original deployment commit 4511522811d5f4d80fe872682f25a485333eaef1, unchanged, and excludes the version-only commit. Stable Uno version updates remain in #5775; that PR and its branch are untouched.

Uno 7 emits uno-config.js at the publish root, not inside package_*. Update both smoke scripts for that layout and serve the apps under /smoke-prefix/ so deployment-prefix errors are exercised. Set WasmShellWebAppBasePath=./ in Gallery and SkiaFiddle, make the Gallery manifest relative, and replace incomplete post-publish rewriting with an asset-path check in the workflow. Exempt the bootstrapper's handled cache-miss probe alongside the existing exemptions.

Also pin the app-validation jobs to ubuntu-24.04: the first run confirmed both Linux publishes work with the original versions, but the existing pinned Playwright cannot install Chromium on Ubuntu 26.04, now selected by ubuntu-latest. This addresses that deployment-validation blocker without upgrading dependencies.

No dependency versions or feeds change: Uno.Sdk stays 7.0.0-dev.79, Uno.WinUI stays 7.0.0-dev.2333, and Uno.Monaco.Editor stays 7.0.0-dev.3; scripts/VERSIONS.txt, the Basic sample, and the Uno views project match main exactly.

Related issues

Fixes #5771

Required skia PR

None.

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update (libpng, HarfBuzz, FreeType, zlib, milestone bump, …)
  • Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …)
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

No public API or dependency changes. Gallery and SkiaFiddle emit relative WASM paths so the same output works under production and staging prefixes. Smoke tests validate the Uno 7 publish layout and boot from a sub-path.

Testing

Validated locally on macOS ARM64, .NET SDK 10.0.404, with the original dev versions and unchanged repository feeds. Stable-version validation from #5775 is not used as evidence here. Resolved assets confirm Uno.WinUI 7.0.0-dev.2333, Uno.Wasm.Bootstrap 10.1.0-dev.282, and Uno.Monaco.Editor 7.0.0-dev.3.

Exact command Result
dotnet cake --target=externals-download Passed; downloaded current-milestone natives, including WASM and its WebGPU glue. No native changes in this PR.
dotnet docfx documentation/docfx/docfx.json Passed; 34 invalid-link warnings, zero errors.
dotnet publish samples/Gallery/Uno/SkiaSharpSample.Uno.csproj -c Release -o output/gallery-uno-publish -p:PlatformTargetFrameworks="" -p:BuildFooter="Deployment-only validation" -f net10.0-browserwasm -p:WasmEnableSIMD=false Passed after native bootstrap completed; initial overlapping attempt failed because the WebGPU glue had not yet downloaded.
dotnet restore samples/SkiaFiddle/SkiaFiddle.csproj -p:PlatformTargetFrameworks="" Passed with original Uno/Monaco dev packages.
dotnet publish samples/SkiaFiddle/SkiaFiddle.csproj -c Release -o output/fiddle-publish -p:PlatformTargetFrameworks="" -p:BuildFooter="Deployment-only validation" -f net10.0-browserwasm -p:WasmEnableSIMD=false Passed.
bash samples/Gallery/Uno/scripts/smoke.sh output/gallery-uno-publish/wwwroot --screenshot output/gallery-uno-smoke.png Passed under /smoke-prefix/: loader dismissed, canvas rendered, no unignored console/page errors. Screenshot shows Gallery catalog and icons.
bash samples/SkiaFiddle/scripts/smoke.sh output/fiddle-publish/wwwroot --screenshot output/fiddle-smoke.png Passed under /smoke-prefix/: loader dismissed, canvas rendered, no unignored console/page errors. Screenshot shows Monaco and Roslyn's running animated sample.
dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 Passed unfiltered: 6,613 passed, 48 skipped by existing platform/capability policy, zero failures across all five hosts. No skip policy changed.
bash -n samples/Gallery/Uno/scripts/smoke.sh samples/SkiaFiddle/scripts/smoke.sh Passed.
node --check samples/Gallery/Uno/scripts/smoke-driver.mjs Passed.
node --check samples/SkiaFiddle/scripts/smoke-driver.mjs Passed.
actionlint -shellcheck= .github/workflows/build-site.yml Passed, including the Ubuntu 24.04 runner pin.
actionlint .github/workflows/build-site.yml Reports pre-existing SC2086/SC2129/SC2046 diagnostics; baseline git show origin/main:.github/workflows/build-site.yml | actionlint -stdin-filename .github/workflows/build-site.yml - reproduces the same diagnostic types. No unrelated lint changes included.
git diff --check origin/main...HEAD Passed.
git diff --exit-code origin/main -- nuget.config scripts/VERSIONS.txt samples/Basic/UnoPlatform/SkiaSharpSample/SkiaSharpSample.csproj source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.WinUI/SkiaSharp.Views.Uno.WinUI.csproj Passed: these files are identical to main. Gallery/SkiaFiddle project diffs contain only the base-path property/comment, no SDK or package version edits.

The workflow's asset-path pattern was also run against both real publish outputs; both passed:

for dir in output/gallery-uno-publish/wwwroot output/fiddle-publish/wwwroot; do
  pattern="[\"']/([A-Za-z0-9_.-][^\"']*)?[\"']"
  hits=$(grep -HnoE "$pattern" "$dir/index.html" "$dir/uno-config.js" "$dir/service-worker.js" || true)
  if [ -n "$hits" ]; then printf '%s\n' "$hits"; exit 1; fi
  printf '%s: relative-path check passed\n' "$dir"
done

Regression evidence: running the origin/main Gallery smoke script against the same published Gallery output fails with expected path missing: output/gallery-uno-publish/wwwroot/package_*/uno-config.js; the updated script passes against that identical output.

CI: Initial Pages run passed Docs, WASM natives, both Uno publish steps, Blazor, and site assembly. Both Uno smoke steps failed before browser launch with Playwright does not support chromium on ubuntu26.04-x64. The follow-up commit pins only the app jobs to supported Ubuntu 24.04. Updated Pages run is in progress; Linux browser-smoke confirmation for that runner change is not yet available.

Not run: a real published staging/production preview, Windows validation, and the Basic Uno sample publish (unchanged). No staging label was applied and no deployment was requested. This is a deployment-path change, not a graphics-rendering change; golden images are unchanged.

Checklist

  • Tests added or updated (if omitted, explain why above)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? Added or updated accurate source /// documentation and regenerated bindings when applicable
  • Native change? Companion mono/skia PR linked above and bindings regenerated

Uno.Sdk 7 ships Uno.Wasm.Bootstrap 10, which writes uno-config.js at the
wwwroot root instead of package_<hash>/, adds root-absolute references to it
in index.html and service-worker.js, and sets WEBAPP_PATH = '/' in the
service worker. The smoke scripts still required package_*/uno-config.js, so
every Pages - Deploy run on main has failed since #5377, and the
Assemble site rewrite no longer covered the new absolute paths.

Publish the Gallery and SkiaFiddle with WasmShellWebAppBasePath=./ so every
bootstrapper-generated path is relative, and make the Gallery manifest's
start_url and scope relative. The copies then work at /gallery-uno/,
/fiddle/ and the staging prefixes without post-publish rewriting, so drop the sed rewrite from Assemble site.
Each Uno app job instead checks that no root-absolute reference reappears;
a violation fails that app, which the site then omits like any other
failed app, so docs still publish.

Update both smoke scripts to check the Uno 7 layout and to serve the app
from a sub-path, so a root-absolute reference fails the smoke test instead
of only breaking the deployed site. Exempt the bootstrapper's handled
only-if-cached probe (net::ERR_CACHE_MISS) in both drivers, matching the
existing exemption in BrowserRunningApp.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

Every PR builds and smoke-tests the site. Add the automation/staging label to also publish a documentation preview for this PR.

Removing the label removes the preview. While the label is present, each new commit updates it.


This comment is automatically updated by the documentation staging workflow.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5788

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5788"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-5788/packages --name skiasharp-pr-5788
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-5788

The existing smoke-test Playwright version cannot install Chromium on ubuntu-latest now that it resolves to Ubuntu 26.04. Keep the existing dependencies and run the Pages app jobs on Ubuntu 24.04 instead.

Co-authored-by: Copilot App <[email protected]>
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5788

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 53 slower · 🟢 20 faster

  • 🔴 RuntimeEffectShaderBenchmark.DrawFrame · Linux · 2.35 ms → 4.57 ms (+94%)
  • 🔴 SceneRenderBenchmark.RenderFrame(Complexity: 4) · Linux · 14.88 ms → 25.85 ms (+74%)
  • 🔴 SceneRenderBenchmark.RenderFrame(Complexity: 1) · Linux · 3.23 ms → 5.59 ms (+73%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Linux · 2.03 µs → 3.50 µs (+72%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 256) · Linux · 174.9 ns → 298.8 ns (+71%)
  • …and 68 more (see details below)

📦 Allocations — 🔴 1 more alloc · 🟢 0 less alloc

  • 🔴 RuntimeEffectShaderBenchmark.DrawFrame · Linux · 683 B → 730 B (+7%)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 2.35 ms 4.57 ms 🔴 +94%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 14.88 ms 25.85 ms 🔴 +74%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 3.23 ms 5.59 ms 🔴 +73%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.03 µs 3.50 µs 🔴 +72%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 174.9 ns 298.8 ns 🔴 +71%
ColorMathBenchmark.ToColorF(Colors: 4096) 11.01 µs 17.09 µs 🔴 +55%
PathBoundsBenchmark.TightBounds(Points: 64) 758.3 ns 1.18 µs 🔴 +55%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 74.87 µs 115.57 µs 🔴 +54%
PathBoundsBenchmark.TightBounds(Points: 1024) 8.54 µs 12.93 µs 🔴 +51%
CanvasDrawBenchmark.Draw(Shapes: 512) 26.98 ms 39.33 ms 🔴 +46%
CanvasDrawBenchmark.Draw(Shapes: 64) 3.38 ms 4.92 ms 🔴 +45%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.32 ms 8.85 ms 🔴 +40%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 573.45 µs 802.21 µs 🔴 +40%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 194.61 µs 271.74 µs 🔴 +40%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.62 ms 2.22 ms 🔴 +37%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.24 ms 3.04 ms 🔴 +36%
ColorMathBenchmark.ToColor(Colors: 4096) 8.97 µs 11.90 µs 🔴 +33%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 767.01 µs 984.84 µs 🔴 +28%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.08 ms 1.36 ms 🔴 +26%
ColorParseBenchmark.Parse(Iterations: 1000) 58.96 µs 74.09 µs 🔴 +26%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 208.87 µs 260.67 µs 🔴 +25%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 291.05 µs 359.12 µs 🔴 +23%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 160.78 µs 197.16 µs 🔴 +23%
MatrixMapPointsBenchmark.MapRect(Points: 256) 10.05 µs 12.28 µs 🔴 +22%
ColorMathBenchmark.PreMultiply(Colors: 4096) 11.30 µs 13.38 µs 🔴 +18%
…and 7 more

📦 Allocations (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 683 B 730 B 🔴 +7%

Windows

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
PathBoundsBenchmark.TightBounds(Points: 1024) 15.65 µs 20.43 µs 🔴 +31%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.53 µs 11.06 µs 🔴 +30%
PathBoundsBenchmark.TightBounds(Points: 64) 1.54 µs 1.98 µs 🔴 +29%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 101.66 µs 126.76 µs 🔴 +25%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 142.38 µs 165.35 µs 🔴 +16%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 122.64 µs 141.15 µs 🔴 +15%
MatrixMapPointsBenchmark.MapVector(Points: 256) 7.62 µs 8.75 µs 🔴 +15%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.74 ms 3.06 ms 🔴 +12%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.50 µs 2.20 µs 🟢 -12%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 260.72 µs 286.47 µs 🔴 +10%
ColorParseBenchmark.Parse(Iterations: 1000) 75.86 µs 83.17 µs 🔴 +10%
MatrixOpsBenchmark.Concat(Count: 4096) 217.51 µs 238.15 µs 🔴 +9%
ColorMathBenchmark.ToColor(Colors: 4096) 14.39 µs 15.72 µs 🔴 +9%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.25 ms 23.15 ms 🔴 +9%
ColorMathBenchmark.PreMultiply(Colors: 4096) 13.04 µs 14.18 µs 🔴 +9%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 812.34 µs 745.35 µs 🟢 -8%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.35 µs 12.20 µs 🔴 +8%
MatrixOpsBenchmark.Invert(Count: 4096) 128.39 µs 135.07 µs 🔴 +5%

macOS

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 946.99 µs 658.49 µs 🟢 -30%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.05 ms 858.12 µs 🟢 -18%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.97 µs 2.51 µs 🟢 -15%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 7.33 ms 6.23 ms 🟢 -15%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 47.90 µs 41.17 µs 🟢 -14%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 6.54 ms 7.44 ms 🔴 +14%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 22.57 µs 19.76 µs 🟢 -12%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 882.48 µs 773.67 µs 🟢 -12%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.16 µs 1.90 µs 🟢 -12%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 193.7 ns 170.5 ns 🟢 -12%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.95 ms 1.72 ms 🟢 -12%
MatrixOpsBenchmark.Concat(Count: 4096) 140.73 µs 124.18 µs 🟢 -12%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 213.60 µs 189.91 µs 🟢 -11%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.78 ms 1.59 ms 🟢 -10%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.37 ms 3.03 ms 🟢 -10%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 7.52 µs 6.77 µs 🟢 -10%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.74 µs 3.37 µs 🟢 -10%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 8.95 µs 9.79 µs 🔴 +9%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 58.35 µs 53.26 µs 🟢 -9%
MatrixOpsBenchmark.Invert(Count: 4096) 84.76 µs 91.03 µs 🔴 +7%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.38 µs 1.29 µs 🟢 -7%
ColorMathBenchmark.ToColorF(Colors: 4096) 5.97 µs 6.36 µs 🔴 +7%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 226.83 µs 238.52 µs 🔴 +5%

📈 Full interactive perf-dashboard & run details →

@mattleibow
mattleibow marked this pull request as ready for review November 17, 2026 15:27
@mattleibow
mattleibow merged commit 2285940 into main Nov 17, 2026
83 of 90 checks passed
@mattleibow
mattleibow deleted the mattleibow-uno-site-deployment-fix branch November 17, 2026 16:57
@github-actions github-actions Bot added this to the 4.159.0-rc.1 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Pages - Deploy fails on main since Uno 7 migration: Uno smoke test expects removed package_*/uno-config.js

3 participants