Skip to content

[4.152 RC1] Backport Arcade BAR release flow - #4864

Closed
mattleibow wants to merge 9 commits into
release/4.152.0-rc.1from
mattleibow-arcade-4-152-rc1-bar
Closed

mattleibow wants to merge 9 commits into
release/4.152.0-rc.1from
mattleibow-arcade-4-152-rc1-bar

Conversation

@mattleibow

@mattleibow mattleibow commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Backports the dependency-closed operational release flow needed to make release/4.152.0-rc.1 releasable through dnceng/Arcade/BAR. This reuses the RC1 branch's existing Arcade onboarding and adds only the required SDK/bootstrap alignment, package and Tests pipeline composition, Arcade publishing/signing/API Scan integration, exact build identity and artifact selection, one-family NuGet transport, real loose-PDB assembly from signed packages, and dnceng TSA configuration.

The backport preserves PREVIEW_LABEL: rc.1, the branch-native WinUI/Xcode/pool/preview-workload topology, and all RC1 package/test behavior. Loose PDB assembly preserves package/TFM/RID paths, excludes ref/**, retains explicit symbol packages, and emits .empty only when no loose PDBs exist. No product, runtime, C API, Skia submodule, or native source inputs changed. It intentionally excludes Apple symbol production, new product packages, release skills, unrelated documentation/refactors, obsolete feed tooling, and generated outputs.

Final readiness: draft remains pending final-polish Build 3056960. Source Build 1642 run 3056753 and its exact connected Tests 1630 run 3056959 passed.

Related issues

None.

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

None — CI/build-only; no public API, product/runtime behavior, rendering, or native input changes.

Testing

  • AssembleArcadeAssets.Tests.ps1 — passed; verifies path-preserving loose-PDB extraction, ref/** exclusion, explicit symbol-package retention, no fallback symbol-package clones, and branch-only BAR NonShipping transport.
  • SetBuildVariables.Tests.ps1 — passed.
  • PrepareApiScanInputs.Tests.ps1 — passed.
  • python3 scripts/infra/caching/repo-deps.py validate — passed with 0 uncovered files after the new scripts were tracked.
  • Static release-contract checks passed for the build package role, exact Tests resource, rc.1 identity, fail-closed mutable artifact selection, DOTNET_FINAL_VERSION_KIND, branch-before-commit aliases, branch-only BAR NonShipping transport packages, loose/empty PdbArtifacts, transport nuspec metadata, and the RC1 Silk.NET signing entry.
  • Unfiltered SkiaSharp.Tests.Console.slnx run: 6100 passed, 23 skipped, 1 failed in the main host; SingletonInit, Vulkan, and Direct3D hosts passed. The sole failure is the macOS ganesh-gl/DiagonalLines visual golden mismatch (1832/65536 outliers versus 1310 allowed).
  • The identical focused visual test was run against untouched release/4.152.0-rc.1@4bef32e1e494e8ef4c4a70b7b2092d268b077a8a with the same SDK and native binaries. Base and head produced identical metrics and byte-identical actual, diff, and golden PNG hashes, proving the failure is target-branch baseline rather than introduced here.
  • No native source build was run because no native/product inputs changed; local managed validation used the RC1 prebuilt native artifacts.

Checklist

  • Tests added or updated (focused release-tooling tests passed; target-branch visual baseline documented above)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? N/A — no public API changes
  • Native change? N/A — no native changes or companion mono/skia PR required

@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 -- 4864

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4864/packages --name skiasharp-pr-4864
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-4864

@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4864

⭐ 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 — 🔴 43 slower · 🟢 19 faster

  • 🔴 RuntimeEffectShaderBenchmark.DrawFrame · Linux · 3.02 ms → 4.58 ms (+51%)
  • 🔴 RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) · Windows · 95.36 µs → 133.87 µs (+40%)
  • 🔴 SceneRenderBenchmark.RenderFrame(Complexity: 1) · Linux · 4.10 ms → 5.64 ms (+38%)
  • 🔴 SceneRenderBenchmark.RenderFrame(Complexity: 4) · Linux · 19.00 ms → 26.03 ms (+37%)
  • 🟢 LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) · macOS · 3.38 ms → 2.35 ms (-30%)
  • …and 57 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.152.0-nightly.47)

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 3.02 ms 4.58 ms 🔴 +51%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 4.10 ms 5.64 ms 🔴 +38%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 19.00 ms 26.03 ms 🔴 +37%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 231.93 µs 295.97 µs 🔴 +28%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.51 µs 3.15 µs 🔴 +26%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 98.04 µs 122.00 µs 🔴 +24%
MatrixOpsBenchmark.Invert(Count: 4096) 149.75 µs 117.08 µs 🟢 -22%
ColorMathBenchmark.ToColorF(Colors: 4096) 14.02 µs 17.02 µs 🔴 +21%
PathBoundsBenchmark.TightBounds(Points: 1024) 11.18 µs 13.33 µs 🔴 +19%
PathBoundsBenchmark.TightBounds(Points: 64) 1.02 µs 1.16 µs 🔴 +14%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 15.30 µs 13.42 µs 🟢 -12%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 244.39 µs 214.66 µs 🟢 -12%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 12.84 µs 11.30 µs 🟢 -12%
CanvasDrawBenchmark.Draw(Shapes: 64) 4.37 ms 4.88 ms 🔴 +12%
CanvasDrawBenchmark.Draw(Shapes: 512) 35.01 ms 38.99 ms 🔴 +11%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 189.20 µs 172.34 µs 🟢 -9%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 79.84 µs 72.82 µs 🟢 -9%
MatrixOpsBenchmark.Concat(Count: 4096) 239.62 µs 218.54 µs 🟢 -9%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 4.99 µs 4.57 µs 🟢 -8%
MatrixMapPointsBenchmark.MapVector(Points: 256) 11.80 µs 10.82 µs 🟢 -8%
ColorMathBenchmark.PreMultiply(Colors: 4096) 14.49 µs 13.37 µs 🟢 -8%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 2.06 ms 2.19 ms 🔴 +6%

📦 Allocations (vs 🌙 nightly 4.152.0-nightly.47)

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

Windows

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.47)

Benchmark baseline this PR Δ
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 95.36 µs 133.87 µs 🔴 +40%
PathBoundsBenchmark.TightBounds(Points: 64) 1.51 µs 1.87 µs 🔴 +24%
PathBoundsBenchmark.TightBounds(Points: 1024) 16.31 µs 20.01 µs 🔴 +23%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 144.28 µs 164.19 µs 🔴 +14%
ColorMathBenchmark.ToColor(Colors: 4096) 15.64 µs 17.80 µs 🔴 +14%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.51 µs 2.16 µs 🟢 -14%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 9.10 µs 10.34 µs 🔴 +14%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.27 µs 8.25 µs 🔴 +13%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.65 ms 3.00 ms 🔴 +13%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.25 ms 23.97 ms 🔴 +13%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 254.26 µs 284.86 µs 🔴 +12%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 124.84 µs 139.36 µs 🔴 +12%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.12 µs 8.93 µs 🔴 +10%
ColorParseBenchmark.Parse(Iterations: 1000) 75.85 µs 83.11 µs 🔴 +10%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 161.7 ns 177.2 ns 🔴 +10%
ColorMathBenchmark.PreMultiply(Colors: 4096) 13.28 µs 14.50 µs 🔴 +9%
MatrixOpsBenchmark.Invert(Count: 4096) 129.46 µs 136.06 µs 🔴 +5%
MatrixOpsBenchmark.Concat(Count: 4096) 234.92 µs 246.74 µs 🔴 +5%

macOS

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.47)

Benchmark baseline this PR Δ
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.38 ms 2.35 ms 🟢 -30%
ColorParseBenchmark.Parse(Iterations: 1000) 73.77 µs 92.13 µs 🔴 +25%
ColorMathBenchmark.ToColor(Colors: 4096) 24.09 µs 18.27 µs 🟢 -24%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.81 ms 1.39 ms 🟢 -23%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.71 µs 2.04 µs 🔴 +19%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 9.04 µs 10.77 µs 🔴 +19%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 205.93 µs 238.27 µs 🔴 +16%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.63 ms 5.74 ms 🟢 -13%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 720.25 µs 625.18 µs 🟢 -13%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 152.0 ns 171.6 ns 🔴 +13%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 40.09 µs 44.96 µs 🔴 +12%
RuntimeEffectShaderBenchmark.DrawFrame 551.99 µs 614.57 µs 🔴 +11%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 75.27 µs 82.47 µs 🔴 +10%
ColorMathBenchmark.PreMultiply(Colors: 4096) 11.22 µs 10.17 µs 🟢 -9%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.58 µs 2.81 µs 🔴 +9%
MatrixOpsBenchmark.Invert(Count: 4096) 69.50 µs 63.36 µs 🟢 -9%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 777.79 µs 718.91 µs 🟢 -8%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.50 ms 1.61 ms 🔴 +7%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 19.29 µs 20.70 µs 🔴 +7%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.22 µs 1.30 µs 🔴 +7%
ColorMathBenchmark.ToColorF(Colors: 4096) 5.24 µs 5.58 µs 🔴 +6%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 589.06 µs 620.51 µs 🔴 +5%

📈 Full interactive perf-dashboard & run details →

Copilot AI added 2 commits August 25, 2026 18:58
Prevent cached package outputs from being moved into nested directories or leaving the transport artifact path unavailable when the bootstrapper skips its build steps.

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

Copilot-Session: 3272dbf6-4fd4-4cd9-a017-0d283902257c
Move deterministic Shipping, NonShipping, and loose-PDB assembly into the Cake NuGet graph so public artifacts are ready before internal signing. Sign only the prepared Shipping view and register the signed Shipping plus prepared NonShipping views through a separate authenticated stage.\n\nInstall the pinned repository SDK before running Prepare's Cake contract tests and keep package outputs uncached and directly published.

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

Copilot-Session: 3272dbf6-4fd4-4cd9-a017-0d283902257c
@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

📦 Artifact size report

Packages from this PR (build 1568152) vs the latest nightly baseline 4.152.0-nightly.47 (observed 2026-08-26).

Total .nupkg size: 569.6 MB → 569.2 MB (−446.9 KB, -0.1%)

Packages

⚠️ marks growth over 500.0 KB or 2%. Changes under 50.0 KB are treated as noise.

Package baseline this PR Δ Δ%
SkiaSharp.NativeAssets.WinUI 109.1 MB 108.4 MB 🟢 −680.1 KB -0.6%
SkiaSharp.NativeAssets.Android 17.9 MB 18.1 MB 🔴 +256.4 KB +1.4%
SkiaSharp.Vulkan.Silk.NET 129.1 KB removed −129.1 KB -100.0%

+38 package(s) unchanged (< 50.0 KB).

Per-file changes

SkiaSharp.NativeAssets.Android

File Size
🧬 android-x86 (runtimes/android-x86/native/libSkiaSharp.so) 11.0 MB → 11.8 MB (🔴 +802.1 KB)
README.md 1.9 KB → 219 B (🟢 −1.7 KB)

SkiaSharp.NativeAssets.WinUI

File Size
runtimes/win-x64/native/libGLESv2.pdb 66.6 MB → 66.5 MB (🟢 −112.0 KB)
runtimes/win-x86/native/libGLESv2.pdb 67.3 MB → 67.2 MB (🟢 −96.0 KB)
runtimes/win-arm64/native/libGLESv2.pdb 64.5 MB → 64.5 MB (🟢 −64.0 KB)
README.md 1.9 KB → 219 B (🟢 −1.7 KB)

Informational only — this never blocks the PR. Native binaries are labelled by os/arch.

Copilot AI added 5 commits August 25, 2026 21:01
Use the shared Cake output root, derive transport selection from the preview label, and reject PDB archive entries that escape their package extraction root.\n\nCo-authored-by: Copilot App <[email protected]>\nCopilot-Session: 3272dbf6-4fd4-4cd9-a017-0d283902257c
Clear the process exit code after proving that an escaping PDB entry is rejected so the successful harness does not fail its Azure task.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 3272dbf6-4fd4-4cd9-a017-0d283902257c
Move Arcade asset behavior validation to the built Package output, keep Prepare tool-free, and emit only the PR or branch transport family consumed by Arcade NonShipping.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 3272dbf6-4fd4-4cd9-a017-0d283902257c
Name the newly backported package output root independently so historical native entry points can retain their existing OUTPUT_PATH globals while continuing to honor --outputPath.

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

Copilot-Session: 3272dbf6-4fd4-4cd9-a017-0d283902257c
Align the shared package output root with the authoritative ROOT_OUTPUT_PATH name while preserving --outputPath and the historical native-local OUTPUT_PATH globals.

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

Copilot-Session: 3272dbf6-4fd4-4cd9-a017-0d283902257c
@mattleibow mattleibow closed this Aug 26, 2026
@mattleibow
mattleibow deleted the mattleibow-arcade-4-152-rc1-bar branch August 26, 2026 21:12
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.

2 participants