Repository navigation
[4.151.x] Backport Arcade release infrastructure - #4863
Merged
Merged
Conversation
Contributor
📦 Try the packages from this PRWarning 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 -- 4863PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4863"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4863/packages --name skiasharp-pr-4863More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4863 |
Contributor
📦 Artifact size reportPackages from this PR (build Total Packages
+28 package(s) unchanged (< 50.0 KB). Per-file changes
|
| File | Size |
|---|---|
ref/net48/SkiaSharp.dll |
470.0 KB → 380.5 KB (🟢 −89.5 KB) |
ref/net462/SkiaSharp.dll |
470.0 KB → 385.0 KB (🟢 −85.0 KB) |
lib/net462/SkiaSharp.dll |
862.0 KB → 809.0 KB (🟢 −53.0 KB) |
lib/net48/SkiaSharp.dll |
862.0 KB → 809.0 KB (🟢 −53.0 KB) |
ref/netstandard2.0/SkiaSharp.dll |
303.5 KB → 253.5 KB (🟢 −50.0 KB) |
ref/netstandard2.1/SkiaSharp.dll |
301.0 KB → 251.0 KB (🟢 −50.0 KB) |
ref/net6.0/SkiaSharp.dll |
296.0 KB → 246.5 KB (🟢 −49.5 KB) |
lib/net10.0-ios26.0/SkiaSharp.dll |
536.0 KB → 503.5 KB (🟢 −32.5 KB) |
lib/net10.0-macos26.0/SkiaSharp.dll |
536.0 KB → 503.5 KB (🟢 −32.5 KB) |
lib/net10.0-tizen10.0/SkiaSharp.dll |
553.5 KB → 521.0 KB (🟢 −32.5 KB) |
lib/net10.0-tvos26.0/SkiaSharp.dll |
536.0 KB → 503.5 KB (🟢 −32.5 KB) |
lib/net10.0-windows10.0.19041/SkiaSharp.dll |
538.5 KB → 506.0 KB (🟢 −32.5 KB) |
lib/net10.0/SkiaSharp.dll |
537.5 KB → 505.0 KB (🟢 −32.5 KB) |
lib/net6.0-tizen8.0/SkiaSharp.dll |
527.0 KB → 494.5 KB (🟢 −32.5 KB) |
lib/net6.0/SkiaSharp.dll |
510.0 KB → 477.5 KB (🟢 −32.5 KB) |
lib/netstandard2.0/SkiaSharp.dll |
518.0 KB → 485.5 KB (🟢 −32.5 KB) |
lib/net10.0-android36.0/SkiaSharp.dll |
533.5 KB → 501.5 KB (🟢 −32.0 KB) |
lib/net10.0-maccatalyst26.0/SkiaSharp.dll |
536.0 KB → 504.0 KB (🟢 −32.0 KB) |
lib/net9.0-android35.0/SkiaSharp.dll |
533.5 KB → 501.5 KB (🟢 −32.0 KB) |
lib/net9.0-ios18.0/SkiaSharp.dll |
536.0 KB → 504.0 KB (🟢 −32.0 KB) |
lib/net9.0-maccatalyst18.0/SkiaSharp.dll |
536.0 KB → 504.0 KB (🟢 −32.0 KB) |
lib/net9.0-macos15.0/SkiaSharp.dll |
536.0 KB → 504.0 KB (🟢 −32.0 KB) |
lib/net9.0-tizen8.0/SkiaSharp.dll |
553.5 KB → 521.5 KB (🟢 −32.0 KB) |
lib/net9.0-tvos18.0/SkiaSharp.dll |
536.0 KB → 504.0 KB (🟢 −32.0 KB) |
lib/net9.0-windows10.0.19041/SkiaSharp.dll |
538.5 KB → 506.5 KB (🟢 −32.0 KB) |
| +44 more file(s) |
SkiaSharp.NativeAssets.Android
| File | Size |
|---|---|
🧬 android-x64 (runtimes/android-x64/native/libSkiaSharp.so) |
10.6 MB → 9.7 MB (🟢 −831.6 KB) |
🧬 android-arm64 (runtimes/android-arm64/native/libSkiaSharp.so) |
9.8 MB → 9.0 MB (🟢 −814.1 KB) |
🧬 android-arm (runtimes/android-arm/native/libSkiaSharp.so) |
6.6 MB → 6.0 MB (🟢 −570.2 KB) |
🧬 android-x86 (runtimes/android-x86/native/libSkiaSharp.so) |
11.0 MB → 10.9 MB (🟢 −178.3 KB) |
README.md |
1.9 KB → 219 B (🟢 −1.7 KB) |
SkiaSharp.NativeAssets.Linux
| File | Size |
|---|---|
🧬 linux-x86 (runtimes/linux-x86/native/libSkiaSharp.so) |
13.3 MB → 12.1 MB (🟢 −1.2 MB) |
🧬 linux-bionic-arm64 (runtimes/linux-bionic-arm64/native/libSkiaSharp.so) |
12.5 MB → 11.3 MB (🟢 −1.1 MB) |
🧬 linux-arm64 (runtimes/linux-arm64/native/libSkiaSharp.so) |
12.2 MB → 11.1 MB (🟢 −1.1 MB) |
🧬 linux-musl-arm64 (runtimes/linux-musl-arm64/native/libSkiaSharp.so) |
12.3 MB → 11.2 MB (🟢 −1.1 MB) |
🧬 linux-riscv64 (runtimes/linux-riscv64/native/libSkiaSharp.so) |
11.2 MB → 10.1 MB (🟢 −1.1 MB) |
🧬 linux-musl-riscv64 (runtimes/linux-musl-riscv64/native/libSkiaSharp.so) |
11.3 MB → 10.3 MB (🟢 −1.1 MB) |
🧬 linux-x64 (runtimes/linux-x64/native/libSkiaSharp.so) |
12.3 MB → 11.2 MB (🟢 −1.1 MB) |
🧬 linux-musl-x64 (runtimes/linux-musl-x64/native/libSkiaSharp.so) |
12.4 MB → 11.4 MB (🟢 −1.1 MB) |
🧬 linux-bionic-x64 (runtimes/linux-bionic-x64/native/libSkiaSharp.so) |
12.3 MB → 11.3 MB (🟢 −1.1 MB) |
🧬 linux-loongarch64 (runtimes/linux-loongarch64/native/libSkiaSharp.so) |
11.7 MB → 10.6 MB (🟢 −1.1 MB) |
🧬 linux-musl-loongarch64 (runtimes/linux-musl-loongarch64/native/libSkiaSharp.so) |
12.0 MB → 10.9 MB (🟢 −1.1 MB) |
🧬 linux-arm (runtimes/linux-arm/native/libSkiaSharp.so) |
8.8 MB → 7.9 MB (🟢 −857.8 KB) |
🧬 linux-musl-arm (runtimes/linux-musl-arm/native/libSkiaSharp.so) |
8.8 MB → 8.0 MB (🟢 −856.1 KB) |
README.md |
1.9 KB → 219 B (🟢 −1.7 KB) |
SkiaSharp.NativeAssets.Linux.NoDependencies
| File | Size |
|---|---|
🧬 linux-x86 (runtimes/linux-x86/native/libSkiaSharp.so) |
13.3 MB → 12.1 MB (🟢 −1.2 MB) |
🧬 linux-bionic-arm64 (runtimes/linux-bionic-arm64/native/libSkiaSharp.so) |
12.5 MB → 11.3 MB (🟢 −1.1 MB) |
🧬 linux-arm64 (runtimes/linux-arm64/native/libSkiaSharp.so) |
12.2 MB → 11.1 MB (🟢 −1.1 MB) |
🧬 linux-musl-arm64 (runtimes/linux-musl-arm64/native/libSkiaSharp.so) |
12.3 MB → 11.2 MB (🟢 −1.1 MB) |
🧬 linux-riscv64 (runtimes/linux-riscv64/native/libSkiaSharp.so) |
11.1 MB → 10.1 MB (🟢 −1.1 MB) |
🧬 linux-musl-riscv64 (runtimes/linux-musl-riscv64/native/libSkiaSharp.so) |
11.3 MB → 10.2 MB (🟢 −1.1 MB) |
🧬 linux-x64 (runtimes/linux-x64/native/libSkiaSharp.so) |
12.3 MB → 11.2 MB (🟢 −1.1 MB) |
🧬 linux-musl-x64 (runtimes/linux-musl-x64/native/libSkiaSharp.so) |
12.4 MB → 11.3 MB (🟢 −1.1 MB) |
🧬 linux-bionic-x64 (runtimes/linux-bionic-x64/native/libSkiaSharp.so) |
12.3 MB → 11.3 MB (🟢 −1.1 MB) |
🧬 linux-loongarch64 (runtimes/linux-loongarch64/native/libSkiaSharp.so) |
11.6 MB → 10.6 MB (🟢 −1.1 MB) |
🧬 linux-musl-loongarch64 (runtimes/linux-musl-loongarch64/native/libSkiaSharp.so) |
12.0 MB → 10.9 MB (🟢 −1.1 MB) |
🧬 linux-arm (runtimes/linux-arm/native/libSkiaSharp.so) |
8.7 MB → 7.9 MB (🟢 −857.8 KB) |
🧬 linux-musl-arm (runtimes/linux-musl-arm/native/libSkiaSharp.so) |
8.8 MB → 7.9 MB (🟢 −856.1 KB) |
README.md |
2.3 KB → 537 B (🟢 −1.8 KB) |
SkiaSharp.NativeAssets.MacCatalyst
| File | Size |
|---|---|
🧬 maccatalyst (framework) (runtimes/maccatalyst/native/libSkiaSharp.framework.zip) |
6.6 MB → 6.0 MB (🟢 −569.9 KB) |
README.md |
1.9 KB → 219 B (🟢 −1.7 KB) |
SkiaSharp.NativeAssets.NanoServer
| File | Size |
|---|---|
runtimes/win-x64/native/libSkiaSharp.pdb |
77.1 MB → 68.8 MB (🟢 −8.4 MB) |
🧬 win-x64 (runtimes/win-x64/native/libSkiaSharp.dll) |
10.8 MB → 9.6 MB (🟢 −1.3 MB) |
README.md |
2.1 KB → 421 B (🟢 −1.7 KB) |
SkiaSharp.NativeAssets.WebAssembly
| File | Size |
|---|---|
🧬 wasm 5.0.6/st,simd · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/5.0.6/st,simd/libSkiaSharp.a) |
18.2 MB → 15.9 MB (🟢 −2.3 MB) |
🧬 wasm 5.0.6/st · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/5.0.6/st/libSkiaSharp.a) |
18.0 MB → 15.6 MB (🟢 −2.3 MB) |
🧬 wasm 3.1.56/st · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.56/st/libSkiaSharp.a) |
17.8 MB → 15.5 MB (🟢 −2.3 MB) |
🧬 wasm 3.1.56/st,simd · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.56/st,simd/libSkiaSharp.a) |
18.1 MB → 15.7 MB (🟢 −2.3 MB) |
🧬 wasm 5.0.6/mt,simd · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/5.0.6/mt,simd/libSkiaSharp.a) |
18.2 MB → 15.9 MB (🟢 −2.3 MB) |
🧬 wasm 5.0.6/mt · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/5.0.6/mt/libSkiaSharp.a) |
17.9 MB → 15.6 MB (🟢 −2.3 MB) |
🧬 wasm 3.1.56/mt · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.56/mt/libSkiaSharp.a) |
17.8 MB → 15.4 MB (🟢 −2.3 MB) |
🧬 wasm 3.1.56/mt,simd · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.56/mt,simd/libSkiaSharp.a) |
18.0 MB → 15.7 MB (🟢 −2.3 MB) |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu_cpp/include/webgpu/webgpu_cpp.h |
274.7 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/include/webgpu/webgpu.h |
148.3 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/src/library_webgpu.js |
130.3 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/src/webgpu.cpp |
75.5 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu_cpp/include/dawn/webgpu_cpp_print.h |
70.1 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/src/library_webgpu_generated_struct_info.js |
35.1 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/src/library_webgpu_enum_tables.js |
28.5 KB → removed |
🧬 wasm 3.1.34/st,simd · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.34/st,simd/libSkiaSharp.a) |
15.9 MB → 15.9 MB (🟢 −26.1 KB) |
🧬 wasm 3.1.34/st · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.34/st/libSkiaSharp.a) |
15.6 MB → 15.6 MB (🟢 −26.0 KB) |
🧬 wasm 3.1.34/mt,simd · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.34/mt,simd/libSkiaSharp.a) |
15.8 MB → 15.8 MB (🟢 −25.9 KB) |
🧬 wasm 3.1.34/mt · libSkiaSharp.a (buildTransitive/netstandard1.0/libSkiaSharp.a/3.1.34/mt/libSkiaSharp.a) |
15.6 MB → 15.5 MB (🟢 −25.9 KB) |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/src/webgpu-externs.js |
20.2 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/src/library_webgpu_generated_sig_info.js |
12.5 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/emdawnwebgpu.port.py |
9.3 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu_cpp/include/webgpu/webgpu_enum_class_bitmasks.h |
5.9 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/README.md |
5.2 KB → removed |
buildTransitive/netstandard1.0/emdawnwebgpu_pkg/webgpu/include/webgpu/webgpu_glfw.h |
3.3 KB → removed |
| +6 more file(s) |
SkiaSharp.NativeAssets.Win32
| File | Size |
|---|---|
runtimes/win-x86/native/libSkiaSharp.pdb |
97.1 MB → 87.6 MB (🟢 −9.4 MB) |
runtimes/win-x64/native/libSkiaSharp.pdb |
94.3 MB → 85.0 MB (🟢 −9.3 MB) |
runtimes/win-arm64/native/libSkiaSharp.pdb |
91.2 MB → 82.1 MB (🟢 −9.1 MB) |
🧬 win-x64 (runtimes/win-x64/native/libSkiaSharp.dll) |
12.8 MB → 11.7 MB (🟢 −1.1 MB) |
🧬 win-arm64 (runtimes/win-arm64/native/libSkiaSharp.dll) |
11.0 MB → 10.0 MB (🟢 −968.5 KB) |
🧬 win-x86 (runtimes/win-x86/native/libSkiaSharp.dll) |
11.1 MB → 10.2 MB (🟢 −915.5 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 (🟢 −96.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) |
SkiaSharp.NativeAssets.iOS
| File | Size |
|---|---|
🧬 ios (framework) (runtimes/ios/native/libSkiaSharp.framework/libSkiaSharp) |
14.2 MB → 12.9 MB (🟢 −1.2 MB) |
🧬 iossimulator (framework) (runtimes/iossimulator/native/libSkiaSharp.framework/libSkiaSharp) |
14.1 MB → 12.9 MB (🟢 −1.2 MB) |
README.md |
1.9 KB → 219 B (🟢 −1.6 KB) |
SkiaSharp.NativeAssets.macOS
| File | Size |
|---|---|
🧬 osx (runtimes/osx/native/libSkiaSharp.dylib) |
16.5 MB → 15.1 MB (🟢 −1.3 MB) |
README.md |
1.9 KB → 219 B (🟢 −1.7 KB) |
SkiaSharp.NativeAssets.tvOS
| File | Size |
|---|---|
🧬 tvos (framework) (runtimes/tvos/native/libSkiaSharp.framework/libSkiaSharp) |
14.2 MB → 12.9 MB (🟢 −1.2 MB) |
🧬 tvossimulator (framework) (runtimes/tvossimulator/native/libSkiaSharp.framework/libSkiaSharp) |
14.1 MB → 12.9 MB (🟢 −1.2 MB) |
README.md |
1.9 KB → 219 B (🟢 −1.7 KB) |
Informational only — this never blocks the PR. Native binaries are labelled by os/arch.
5 tasks done
mattleibow
changed the base branch from
release/4.151.x
to
mattleibow-release-4-151-arcade-onboarding
August 26, 2026 09:48
mattleibow
force-pushed
the
mattleibow-arcade-backport-4-151
branch
from
August 26, 2026 09:49
41f77c6 to
134f23a
Compare
mattleibow
added a commit
that referenced
this pull request
Aug 26, 2026
[4.151.x] Onboard Arcade infrastructure (#4871) Context: #4802 Follow-up: #4863 The release/4.151.x dnceng migration needs the Arcade and Darc bootstrap already merged into main. Landing that bootstrap together with signing, BAR publishing, package transport, and the other operational changes would make a servicing change harder to review and roll back. Backport the behavior-neutral layer first so the follow-up can build on a known infrastructure baseline. Bring over the pinned Arcade 11.0.0-beta.26414.2 dependency metadata, complete generated eng/common snapshot, isolated NoBuild restore graph, and engineering cache inputs. Preserve the release branch's supported .NET 10.0.108 SDK and its existing Cake build and pipeline entry points. The generated eng/common tree and executable modes match the main change. The only release-specific adaptation retains utils/Utils.sln because this branch predates main's move to Utils.slnx. No public API, product, native, runtime, signing, publishing, or transport behavior changes in this layer. Co-authored-by: Copilot App <[email protected]>
Base automatically changed from
mattleibow-release-4-151-arcade-onboarding
to
release/4.151.x
August 26, 2026 22:08
Onboard the 4.151.x release line to the proven dnceng Arcade/BAR build, signing, transport, API Scan, and exact artifact-selection flow while preserving its 4.151.3 product identity and historical workload topology. Copilot-Session: b815a41d-6246-4c8c-9efa-3d3f91e39a84 Co-authored-by: Copilot App <[email protected]>
Extract implementation and runtime PDBs from signed packages that lack explicit symbol packages while preserving package paths and branch-only transport staging. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
The historical branch still restored nightly packages from the legacy Xamarin feed while the resolver now selects versions from dnceng. Align the nested benchmark source with the authoritative feed so exact nightly versions restore consistently. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Skip every package reorganization step on cache hits so cached artifacts keep their expected layout. Retain the historical native-only pipeline selector while preserving the Arcade build and complete flows. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Move deterministic Shipping, NonShipping, and loose PDB preparation into the NuGet Cake graph, publish the public Arcade asset views directly, and isolate authenticated signing and BAR registration from public packaging. Preserve the 4.151-specific pipeline topology while adopting the authoritative output-path and traversal-safe PDB extraction contracts. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Reset the global native-command exit code after the expected Cake traversal rejection so the focused PowerShell harness reports success to Azure Pipelines while still proving the unsafe package entry is rejected. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Keep Prepare tool-free, validate Arcade asset assembly after Package bootstrap, and emit a single PR-or-branch transport family without commit aliases or download fallback. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Keep the shared --outputPath contract package-specific so historical native Cake entry points retain their existing OUTPUT_PATH globals. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Align the shared package artifact root with the final source naming while preserving --outputPath behavior and historical native OUTPUT_PATH globals. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Keep the upper PR byte-for-byte equivalent to its previously validated tree while taking generated Arcade onboarding from the lower PR. This removes lower-layer tool-manifest newline, gitignore, and duplicate cache-entry churn that the operational backport intentionally excluded. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
mattleibow
force-pushed
the
mattleibow-arcade-backport-4-151
branch
from
August 26, 2026 22:11
134f23a to
ee6158f
Compare
Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Managed Linux now runs on the lean dnceng servicing pool, which does not preinstall the Android SDK. Provision the required platform and build tools on every managed OS and forward AndroidSdkDirectory into Cake. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
Restore base-native ignore rules, tool manifest formatting, and TSA ownership so the backport contains only operational release changes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc6b0e91-496f-43a3-9ca9-bdd773a21a55
mattleibow
marked this pull request as ready for review
August 28, 2026 08:40
This was referenced Aug 28, 2026
mattleibow
added a commit
that referenced
this pull request
Aug 28, 2026
[4.150.x] Backport Arcade release infrastructure (#4865) Context: #4863 Context: 01db053 Context: #4872 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1572924 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1571474 `release/4.150.x` already carries the neutral Arcade onboarding from #4872, but it does not connect that foundation to the build, signing, security, and BAR flow needed for a release. Backport the operational layer proven by merged #4863: repository-owned dnceng pipelines, an Arcade V3 package flow, explicit signing policy, API Scan, and BAR registration. Keep public validation free of protected side effects and reserve signing, scanning, and publication for trusted internal builds. Preserve the branch's exact 4.150.4 and HarfBuzzSharp 14.2.1.4 identities and its WinUI, Xcode, package, and test topology. No product, runtime, managed API, generated binding, Skia submodule, or native source input changes. Families absent from this line stay absent: `SkiaSharp.Vulkan.Silk.NET`, Apple symbol production, preview WASM, and the 4.151-only Emscripten 5.0.6 payloads. This change does not register, promote, or publish the PR build. ~~ Connected dnceng release topology ~~ The internal package definition waited on a separately numbered Native pipeline and exchanged artifacts across runs, obscuring source, package, and test provenance. Give the package root `buildPipelineType: 'build'` so one Build owns Prepare, Native, and Package, trigger it directly on `main` and `release/*` path changes, and make the Tests definition consume the folder-qualified `\dotnet\skiasharp\skiasharp-package` resource. Public validation runs the same repository stage templates through the local 1ES output adapter because dnceng-public cannot reach the private 1ES template repository. Signing, API Scan, and publishing stages expand only for internal non-PR builds, so public and PR expansion cannot acquire protected side effects. Retain the branch's native-only and complete pipeline roots while moving their shared stages to this repository. ~~ dnceng execution policy ~~ The internal root extended the DevDiv MicroBuild 1ES template and loaded shared stages from `DevDiv/Xamarin.yaml-templates`; neither is available to a dnceng-owned pipeline. Move it to the released `v1/1ES.Official.PipelineTemplate.yml` and remove that repository resource. Configure Armory, BinSkim, CredScan, ESLint, PoliCheck, and PSScriptAnalyzer to break the build, and run CodeQL on non-default branches. Keep network isolation in Audit while permanent mirrors and allowlisting are completed. Build and merge the MSVC Win32 artifacts without the old `System.TeamProject == 'devdiv'` condition, which cannot match in dnceng and would drop the `native_msvc` input required by API Scan. ~~ Historical SDK and container compatibility ~~ The repository's 10.0.108 SDK is too old to acquire Arcade packages. Move `global.json` and the checkout-consuming native and docs containers to SDK 10.0.203 with `latestPatch` roll-forward. Pin workload set 10.0.202, the last set supported by this branch's macOS 15 and Xcode 26.3 combination. Visual Studio MSBuild 17.x cannot load a 10.0.2xx SDK, so the C++/WinRT projection would fail. Install the retained 10.0.108 SDK side by side through `additionalDotNetSdks` on the WinUI jobs. Update only Dockerfiles already consumed on 4.150.x; do not import container or toolchain families absent from the line. ~~ Servicing-pool runtime prerequisites ~~ The branch still defaulted to Microsoft-hosted and `Maui-1ESPT` agents, so it did not inherit Arcade's release-aware routing. Import the pool-provider variables and carry `$(DncEngPublicBuildPool)` or `$(DncEngInternalBuildPool)` through the existing agent objects. This selects servicing pools for `release/*` while retaining queue-time overrides and hosted Apple jobs. Correct Linux host objects that were declared `os: windows`. The lean servicing Linux images exposed two assumptions hidden by the general pool. Enable Android SDK installation on Linux, including platform tools, build-tools 35.0.0 and 36.0.0, and the configured API levels, then pass `AndroidSdkDirectory` into Cake. Download the pinned Chrome package for Linux WASM tests, verify its SHA-256, package name, version, and architecture, install it, and export `CHROME_PATH`. Public Build 1572924 completed this topology on merge SHA e0b31a8, producing `4.150.4-pr.4865.26428.4`. ~~ Exact 4.150.4 build identity ~~ Feature names and loosely parsed downstream counters could give producing and consuming runs different identities. Derive the product build number from Arcade's `yyyyMMdd.revision` OfficialBuildId, normalize GitHub and Azure Repos pull request, branch, commit, and repository identity, and let Tests inherit the producing run name. PR builds use `pr.<number>`, schedules use `nightly`, and other builds retain their configured preview label. The `stable` sentinel clears the suffix and sets `DOTNET_FINAL_VERSION_KIND=release`; a run may select it only on an internal `release/*` branch or by inheriting an exact release identity from an upstream run name. Cake rejects any other final-version kind, and incomplete or malformed identities fail instead of producing a plausible version. Require exact Build run IDs when downloading pipeline artifacts and reject mutable `latestFromBranch` selection, tying signing and registration to the run that produced their inputs. Focused tests cover GitHub and Azure Repos PRs, resource-triggered and Tests inheritance, ordinary branches, mixed-case labels, exact releases, forbidden automatic releases, and malformed run names. ~~ One package and transport family ~~ The historical graph packed stable and preview products separately and then produced stable, preview, symbol, branch, and commit transport variants. Pack one coherent product family in the `package_windows` job and create one PR transport family for PR validation or one branch family otherwise, preventing BAR from receiving two versions of the same transport package ID. Shared downloaders remove the commit-alias fallback and resolve transports from the dnceng `skiasharp-transport` feed. Publish raw `nuget` and `nuget_special` artifacts beside the prepared `arcade_shipping`, `arcade_nonshipping`, and `PdbArtifacts` views. Drop `package_normal_windows`, `package_special_windows`, `nuget_preview`, and `nuget_symbols`; the renamed `package_windows` job publishes no artifact of its own. Assembly fails on missing directories, empty package sets, or duplicate package names. Mark the transport project non-shipping and give `_NuGets`, `_NativeAssets`, and `_Dependencies` the Microsoft copyright, MIT expression, and project URL required by Arcade. Documentation, API diff, and generated sample jobs select the build's single family instead of assuming stable and preview packages coexist. Package jobs no longer restore from the shared build cache because package versions and transport families depend on run identity rather than repository inputs alone. Build 1572924 published 46 Shipping packages (40 products plus six explicit symbol packages) and 22 NonShipping transports. Their parents close exactly over three managed chunks and 17 native children, with every product embedded once and no symbol package embedded. Raw `nuget` and `nuget_special` resource hashes match the prepared `arcade_shipping` and `arcade_nonshipping` views. ~~ Real loose PDB artifacts ~~ Arcade V3 requires a `PdbArtifacts` input, but cloning product packages into manufactured symbol packages would create false package identities. Keep explicit symbol packages in Shipping and, for product packages without one, extract implementation and runtime PDBs under their original package, version, TFM, and RID paths. Exclude `ref/**`, reject archive entries that escape the package extraction root, avoid duplicating symbols already owned by explicit packages, and emit `.empty` only when no eligible PDB exists. The Package-stage gate exercises both transport families, explicit-symbol ownership, reference-symbol exclusion, empty output, and traversal rejection. Build 1572924 published 202 loose PDBs across 19 package roots with no missing, unexpected, content-mismatched, or `ref/**` entries. That structure matches canonical 4.151 Build 1571474 apart from expected 4.150 identity, branch-native package and test topology, and absent 4.151-only payloads. ~~ Explicit signing and BAR inputs ~~ Arcade's broad signing defaults do not describe SkiaSharp's mixed first-party, Mac developer, JavaScript, WebGPU, and transport payloads. Replace them with an explicit policy: sign Shipping NuGets, classify first-party binaries as Microsoft400 and Apple dylibs as MacDeveloperVNext, mark source payloads that must retain their bytes as `CertificateName=None`, and skip the third-party copyright check for first-party files without Microsoft metadata. Leave NonShipping transports unsigned and use `DO-NOT-SIGN` and `DO-NOT-UNPACK` exclusions to enforce those boundaries. Sign staged Shipping assets with Arcade and MicroBuild, using ESRP only for real signing. Generate the publishing-v3 manifest from signed Shipping and prepared NonShipping assets and register them through the standard Arcade post-build flow. `main` and `release/*` select real signing and registration; other trusted internal branches test-sign unless forced, and forced registration additionally requires `registerInBar`. Post-build validation keeps `publishAssetsImmediately: false` and requires default channels, so nothing promotes automatically. Retain the `scripts/infra/signing` cache-input category even though that directory does not yet exist, keeping this branch's cache contract aligned with `main`. ~~ Fail-closed API Scan coverage ~~ The legacy scan came from `DevDiv/Xamarin.yaml-templates` and extracted packages without proving its binaries, PDBs, surrogates, or configured targets existed. Add a repository-owned stage that downloads the current `nuget` and `native_msvc` artifacts, activates the dedicated WIF identity, runs API Scan in release mode, publishes its report, uploads TSA bugs, and breaks at Note severity. Preparation extracts packages into `symbols-extracted`, replacing the removed `nuget_symbols` artifact layout, and validates the Win32, HarfBuzzSharp, NanoServer, and WinUI mappings. Clang targets map to matching or API-compatible x64 MSVC binaries, and WinUI ARM64 targets map to x64 package binaries staged from the WinUI symbols package. Missing packages, binaries, PDBs, surrogate files, or target matches fail closed. Run the identity and API Scan suites during Prepare so input drift fails before a protected stage is requested. The focused identity, Arcade asset, and API Scan suites pass; `repo-deps.py validate` reports 4,357 tracked files, 0 uncovered, and 21 jobs; and `eng/NoBuild.proj` builds clean. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
mattleibow
added a commit
that referenced
this pull request
Aug 29, 2026
[CI] Merge Arcade release infrastructure into 4.151.2 (#4892) Context: #4863 Context: 01db053 Context: #4871 Context: 017438e Context: #4835 Context: bbf7e97 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1572562 Changes: bbf7e97...e407e23 SkiaSharp 4.151.2 was cut but never published; NuGet.org's stable 4.151 line still ends at 4.151.1. Its branch was therefore stranded on the legacy split pipelines while the Arcade and dnceng release path was proven one line over on release/4.151.x by #4863 and its #4871 bootstrap. Merge the exact source tip 01db053 into the exact 4.151.2 base bbf7e97 with a real two-parent merge, so the point release becomes buildable through that path without rewriting or losing either branch's ancestry. Keep 4.151.2's identity instead of inheriting the source branch's post-release bump. `scripts/VERSIONS.txt` stays at 4.151.2 and HarfBuzzSharp 14.2.1.102 rather than 4.151.3 and 14.2.1.103; HarfBuzzSharp must stay in the M151 bucket because 14.2.1.2 is already published from M150 (#4835). Alongside it, `scripts/azure-templates-variables.yml` keeps `SKIASHARP_VERSION: 4.151.2` and `PREVIEW_LABEL: stable`, so an ordinary internal build of this branch emits exact 4.151.2 packages. Those two files, plus the SetBuildVariables expectations that assert their values, are the only difference from the source tip. Against 4.151.2 the merge is 207 files, dominated by the generated eng/common Arcade snapshot and repository pipeline templates. It changes no managed API, C API, native source, Skia submodule, or product behavior, and adds no package IDs. It does replace this line's CI contract wholesale, described below. Public Build 1572562 succeeded on 01db053 as `4.151.3-preview.0.26428.3+4.151.x`, which validates the topology but not the `stable` path this branch selects: no stable SkiaSharp has yet been produced through Arcade, and NuGet.org publication remains a separate protected action. ~~ Arcade and Darc bootstrap ~~ The point release lacked the generated Arcade foundation the release flow requires. Import #4871's pinned Microsoft.DotNet.Arcade.Sdk 11.0.0-beta.26414.2 metadata and its complete eng/common snapshot, loaded through an isolated NoBuild restore graph so Arcade does not displace SkiaSharp's existing Cake/MSBuild product build. Treat `eng/**` as a global cache input so engineering changes invalidate product caches; the snapshot stays an upstream-owned unit while future Darc updates remain repository-owned and reproducible. ~~ Connected dnceng topology and execution policy ~~ The legacy Native, Package, and Tests definitions exchanged independently numbered artifacts, obscuring which source produced the packages under test. Make one Build own Prepare, Native, and Package, and connect Tests through the folder-qualified `\dotnet\skiasharp\skiasharp-package` resource so downstream runs inherit the producer's identity. Public validation uses the same stage templates through the local 1ES output adapter, but signing, API Scan, and publishing expand only in trusted internal non-PR builds. The historical native-only and complete entry points are retained because this line still consumes them. The internal root depended on DevDiv templates that cannot resolve in dnceng. Move it to the released 1ES Official template, drop that dependency, and make Armory, BinSkim, CredScan, ESLint, PoliCheck, and PSScriptAnalyzer break the build; keep network isolation in Audit until permanent mirrors and allowlisting are ready. Always build and merge the MSVC Win32 artifacts: the old `System.TeamProject == 'devdiv'` condition can never match here and would strip the `native_msvc` input API Scan requires. ~~ Exact 4.151.2 build identity ~~ Loosely parsed counters and feature labels could assign different identities to producing and consuming runs. Derive package build numbers from Arcade's `yyyyMMdd.revision` OfficialBuildId, normalize GitHub and Azure Repos source identity, and make connected Tests inherit the Build run name. Require exact Build run IDs and reject mutable `latestFromBranch` selection. PR builds use `pr.<number>`, scheduled builds use `nightly`, and ordinary builds keep their configured label. Only an internal `release/*` producer may use the `stable` sentinel, which clears the suffix and sets `DOTNET_FINAL_VERSION_KIND=release`; anywhere else it fails closed. Malformed or incomplete identities fail rather than manufacturing a plausible version. The focused suite exercises PRs from both source providers, downstream inheritance, exact 4.151.2 releases, and malformed input. ~~ One package and transport family ~~ The historical graph packed stable and preview products separately, then created stable, preview, symbol, branch, and commit transport variants. Pack one coherent product family per run and create one PR transport family for PR validation or one branch transport family otherwise; omitting commit aliases prevents BAR from receiving multiple versions of the same transport package ID. This changes the artifact contract for consumers of this branch: `nuget_preview` and `nuget_symbols` are gone, and `arcade_shipping`, `arcade_nonshipping`, and `PdbArtifacts` are published beside the raw `nuget` and `nuget_special` artifacts. Normal and transport packing now run in one job. Mark `_NuGets`, `_NativeAssets`, and `_Dependencies` non-shipping with the metadata Arcade requires, and make documentation and generated samples consume the one family the build produced. ~~ Real loose PDB artifacts ~~ Arcade V3 requires PdbArtifacts, but cloning product packages into synthetic fallback symbol packages would create false package identities. Preserve real explicit symbol packages in Shipping; for product packages without one, extract implementation and runtime PDBs under their original package, version, TFM, and RID paths. Exclude `ref/**`, avoid duplicates when an explicit symbol package owns the symbols, reject archive entries that escape the package root, and emit `.empty` only when no eligible PDB exists. The package gate covers both transport families, explicit-symbol ownership, reference exclusion, empty output, and traversal rejection. ~~ Explicit signing and BAR inputs ~~ Arcade's broad defaults do not describe SkiaSharp's mixed first-party, Mac developer, JavaScript, WebGPU, and transport payloads. Replace them with an explicit repository policy: sign Shipping NuGets and classified first-party contents, preserve Mac developer signing, and retain source payload bytes through `CertificateName=None`. Keep NonShipping transport packages unsigned and out of recursive SignCheck, with `DO-NOT-SIGN` exclusions making unexpected signatures fail validation. Do not add the absent `SkiaSharp.Vulkan.Silk.NET` package or Apple symbol production to this historical line. Generate one Arcade V3 manifest from signed Shipping and prepared NonShipping assets. Release branches select real signing and BAR registration, while public and PR template expansion cannot acquire those side effects. Keep `publishAssetsImmediately: false` and require default channels before promotion; BAR registration is not NuGet.org publication. ~~ Fail-closed API Scan coverage ~~ The legacy inline scan extracted packages without proving that required binaries, PDBs, surrogates, or configured targets existed. Add a repository-owned stage that consumes the current `nuget` and `native_msvc` artifacts, activates the dedicated WIF identity, runs API Scan in release mode, and breaks at Note severity. Prepare checked Win32, NanoServer, and WinUI mappings, using x64 MSVC surrogates for Win32 and HarfBuzzSharp ARM64 targets and staged x64 package binaries for WinUI ARM64 targets. Reject missing packages, binaries, PDBs, surrogate files, or target matches, and run the preparation suite during Prepare so drift fails before the protected stage. ~~ Historical toolchain and servicing-pool compatibility ~~ The branch's 10.0.108 SDK is too old for Arcade package download, while its Apple and WinUI jobs cannot adopt every newer tool. Move repository-owned builds and existing checkout-consuming native containers to SDK 10.0.203 with `latestPatch` roll-forward, and retain workload set 10.0.202 for the macOS 15 and Xcode 26.3 combination. Visual Studio MSBuild 17.x cannot load a 10.0.2xx SDK, so install 10.0.108 side by side for the WinUI and WinUI ANGLE jobs. Update only containers present on 4.151.x. Windows and Linux jobs move to the public or internal dnceng pools, which select servicing images for `release/*` while retaining queue-time overrides and hosted Apple jobs. The lean servicing Linux image lacks assumptions the former pools hid, so provision the Android SDK, platform tools, build-tools 35.0.0 and 36.0.0, and configured API levels, pass `AndroidSdkDirectory` into Cake, and install a SHA-256-verified pinned Chrome for both Linux WASM jobs. Separately, point the nested tracking benchmark's `nuget.config` at the dnceng EAP feed; it still restored from the legacy Xamarin feed and failed before BenchmarkDotNet could run. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
1 of 5 tasks
mattleibow
added a commit
that referenced
this pull request
Aug 29, 2026
[4.150.3] Merge release/4.150.x Arcade release infrastructure (#4893) Context: #4865 Context: c822bde Context: #4872 Context: 9c28ea4 Context: #4863 Context: 01db053 Context: #4821 Context: 838c32f Context: 502c947 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1572924 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1571474 `release/4.150.3` was cut from `47601f58` before the neutral Arcade onboarding (#4872) and operational release layer (#4865) landed on `release/4.150.x`. It carries the servicing product bits but cannot pack, sign, scan, or register packages through the Arcade V3 and BAR path proven on `release/4.151.x` by #4863 and on `release/4.150.x` by #4865. Merge the refreshed `release/4.150.x` tip into the servicing branch so both layers arrive together, while retaining exact SkiaSharp 4.150.3 and HarfBuzzSharp 14.2.1.3 identity. Keep 4.150.3's WinUI, Xcode, package, test, native, and runtime topology: the merge touches only `eng/**`, `scripts/**`, `build.cake`, `global.json`, `nuget.config`, `.config/**`, and `.gitignore`, so no managed API, generated binding, Skia submodule, C API, native source, or product behavior changes are included. ~~ True branch merge over cherry-pick ~~ Merge `c822bde03afa06ff71a0d5ea258bc149dd9dc9ef` into `502c94780825b5e77dadfc11e3bfa6eb6320dcea` instead of cherry-picking or squashing the infrastructure. The merge `c648f255339680b508ca00b310221505692b120c` records both tips as parents, so the complete #4872 and #4865 ancestry, and the two-layer rollback boundary those PRs were split to preserve, survive on the servicing branch. ~~ Exact 4.150.3 servicing identity ~~ The source line also carries #4821's post-release bump to SkiaSharp 4.150.4 and HarfBuzzSharp 14.2.1.4, which must not reach a 4.150.3 servicing branch. Resolve the version conflict toward the target: keep `SKIASHARP_VERSION` at 4.150.3, preserve the existing 4.150.0.0 and 1.0.0.0 assembly versions, retain 4.150.3 and 14.2.1.3 file and NuGet versions in `scripts/VERSIONS.txt`, and keep the branch's `stable` preview label while adopting Arcade's `DOTNET_FINAL_VERSION_KIND` and `ARCADE_OFFICIAL_BUILD_ID` build-number flow. Adapt the focused identity test expectations to 4.150.3 and 14.2.1.3. The merged tree therefore differs from the source tip in exactly three files: `scripts/VERSIONS.txt`, `scripts/azure-templates-variables.yml`, and `scripts/infra/native/shared/tests/SetBuildVariables.Tests.ps1`. ~~ Isolated Arcade bootstrap ~~ This branch had no Arcade foundation, so the merge also delivers #4872's Arcade SDK 11.0.0-beta.26414.2, Darc metadata in `eng/Version.Details.xml`, `eng/Version.Details.props`, and `eng/Versions.props`, and the complete generated `eng/common` snapshot of 154 paths. Restore these behind the isolated `eng/NoBuild.proj` graph so the existing Cake build and pipeline entry points continue working. `global.json` gains the `.dotnet` probe path and Arcade `msbuild-sdks` pin, `nuget.config` declares `disabledPackageSources`, and `.gitignore` un-ignores `eng/common` while ignoring `/.dotnet/` and `/.packages/`. ~~ Engineering cache invalidation ~~ Add `eng/**`, `scripts/infra/milestones/**`, and `scripts/infra/perf/**` to the repository's global cache inputs so Arcade and other engineering edits invalidate product cache keys instead of reusing stale native or managed output. Carry the `signing` job's `scripts/infra/signing/**` category even though that directory does not exist on this branch yet, keeping the cache contract aligned with `main`. ~~ Connected dnceng release topology ~~ The internal package definition waited on a separately numbered `SkiaSharp-Native` pipeline resource and exchanged artifacts across runs, obscuring source, package, and test provenance. Give the package root `buildPipelineType: 'build'` so one Build owns Prepare, Native, and Package, add branch triggers for `main` and `release/*` with documentation-only path exclusions, and point the connected Tests definition at the folder-qualified `\dotnet\skiasharp\skiasharp-package` resource. Public validation runs the same repository stage templates through the local 1ES output adapter because dnceng-public cannot reach the private 1ES template repository. Signing, API Scan, and publishing stages expand only when `System.TeamProject` is `internal`, the reason is not `PullRequest`, and the source branch is not a `refs/pull/*` ref, so public and manually queued PR runs cannot acquire protected release side effects. The branch's native-only and complete pipeline roots remain and continue consuming the shared stages. ~~ dnceng execution policy ~~ The internal package root extended the DevDiv MicroBuild 1ES template and loaded shared stages from `DevDiv/Xamarin.yaml-templates`; neither is available to a dnceng-owned pipeline. Move it to the released `v1/1ES.Official.PipelineTemplate.yml` and drop that repository resource. Set Armory, BinSkim, CredScan, ESLint, PoliCheck, and PSScriptAnalyzer to `break: true`, BinSkim having previously been `break: false`, and enable compiled CodeQL including non-default branches, so release-infrastructure regressions fail the build instead of only being reported. Keep `networkIsolationMode: Audit` until permanent mirrors and allowlisting are ready for Enforce. Build and merge the MSVC Win32 artifacts without the historical `System.TeamProject == 'devdiv'` condition. That predicate cannot match in dnceng and would drop the `native_msvc` input that API Scan requires. ~~ Historical SDK and container compatibility ~~ The branch's 10.0.108 SDK is too old to acquire the Arcade packages. Move `global.json` and the checkout-consuming native, WASM, Tizen, and docs containers to SDK 10.0.203 with `latestPatch` roll-forward. Pin workload set 10.0.202, the last set supported by this branch's `macos-15` image and Xcode 26.3 combination. Visual Studio MSBuild 17.x cannot load a 10.0.2xx SDK, so the C++/WinRT projection would fail. Install the retained 10.0.108 SDK side by side through `additionalDotNetSdks` on the WinUI jobs. Update only the Dockerfiles this release line already consumes, keeping their Emscripten 3.1.34 and 3.1.56 payloads. Do not import `SkiaSharp.Vulkan.Silk.NET`, Apple symbol production, preview WASM families, Emscripten 5.0.6 payloads, or container and toolchain families that 4.150 does not ship. ~~ Servicing-pool runtime prerequisites ~~ The branch still defaulted to Microsoft-hosted and `Maui-1ESPT` agents, so it did not inherit Arcade's release-aware routing. Import the pool-provider variables and carry `$(DncEngPublicBuildPool)` or `$(DncEngInternalBuildPool)` through the existing agent objects, selecting servicing pools for `release/*` while retaining queue-time overrides and hosted Apple jobs. Correct the public complete and Tests host objects that paired an Ubuntu image with `os: windows`; the untouched internal complete root keeps its legacy declaration. The lean servicing Linux images exposed assumptions hidden by the general pool. Install OpenJDK, the Android SDK, platform tools, build-tools 35.0.0 and 36.0.0, and the configured `ANDROID_PLATFORM_VERSIONS` API levels on Linux, then pass `AndroidSdkDirectory` into Cake. For Linux WASM tests, download the pinned Chrome 150.0.7871.186-1 package, verify its SHA-256, package name, version, and architecture before installing it, and export `CHROME_PATH`. ~~ Derived build identity ~~ Feature names and loosely parsed downstream counters could give producing and consuming runs different identities. Derive the product build number from Arcade's `yyyyMMdd.revision` `ARCADE_OFFICIAL_BUILD_ID`, drop `FEATURE_NAME`, and normalize GitHub and Azure Repos pull request, branch, commit, and repository identity so Tests inherit the producing run name. Because this branch's label is already `stable`, an internal `release/4.150.3` run clears the preview suffix and sets `DOTNET_FINAL_VERSION_KIND=release`, producing final 4.150.3 packages directly. Any other run reaches that state only by inheriting an exact release identity from an upstream run name; otherwise `set-build-variables.ps1` throws. Cake rejects any final-version kind other than an empty value or `release`, and malformed upstream run names fail instead of yielding a plausible version. PR validation remains labeled `pr.<number>`. Require exact Build run IDs when downloading pipeline artifacts and reject mutable `latestFromBranch` selection, so packaging, signing, and registration consume the run that produced their inputs. ~~ One package and transport family ~~ The historical graph packed stable and preview products separately and then produced stable, preview, symbol, branch, and commit transport variants. Pack one coherent product family in the renamed `package_windows` job and create one PR transport family for PR validation or one branch family otherwise, so BAR cannot receive two versions of the same transport package ID. Shared downloaders drop the commit-alias fallback and resolve transports from the dnceng `skiasharp-transport` feed instead of the retired `xamarin/public/SkiaSharp-CI` feed. Publish raw `nuget` and `nuget_special` artifacts beside the prepared `arcade_shipping`, `arcade_nonshipping`, and `PdbArtifacts` views, and drop `package_normal_windows`, `package_special_windows`, `nuget_preview`, and `nuget_symbols`; the renamed `package_windows` job publishes no artifact of its own. Assembly fails on missing directories, empty package sets, or duplicate package names. Mark the transport project non-shipping and give `_NuGets`, `_NativeAssets`, and `_Dependencies` the Microsoft copyright, MIT expression, and project URL that Arcade requires. Documentation, API diff, and generated sample jobs select the build's single family instead of assuming stable and preview packages coexist. Package jobs no longer restore from the shared build cache because package versions and transport families depend on run identity rather than repository inputs alone. Source proof build 1572924 (`4.150.4-pr.4865.26428.4`) published 46 Shipping packages, comprising 40 products and six explicit symbol packages, and 22 NonShipping transports whose parents close over three managed chunks and 17 native children. ~~ Real loose PDB artifacts ~~ Arcade V3 requires a `PdbArtifacts` input, but cloning product packages into manufactured symbol packages would create false package identities. Keep explicit symbol packages in Shipping and, for products without one, extract implementation and runtime PDBs under their original package, version, TFM, and RID paths. Exclude `ref/**`, reject archive entries that escape the package extraction root, avoid duplicating symbols already owned by explicit packages, and emit `.empty` only when no eligible PDB exists. The Package-stage gate exercises both transport families, explicit-symbol ownership, reference-symbol exclusion, empty output, and traversal rejection. Build 1572924 published 202 loose PDBs across 19 package roots. That ownership shape matches canonical 4.151 build 1571474 (`4.151.3-pr.4863.26427.5`) apart from release identity, 4.150 native paths, branch-specific package and test topology, and absent 4.151-only payloads. ~~ Explicit signing and BAR inputs ~~ Arcade's broad signing defaults do not describe SkiaSharp's mixed first-party, Mac developer, JavaScript, WebGPU, and transport payloads. Clear them and sign only Shipping NuGets, classifying first-party binaries as Microsoft400, Apple dylibs as MacDeveloperVNext, and payloads that must retain their bytes as `CertificateName=None`. First-party files skip the third-party copyright check because they intentionally carry no Microsoft metadata. Leave NonShipping transports unsigned and enforce that boundary with `DO-NOT-SIGN` and `DO-NOT-UNPACK` SignCheck exclusions. Sign staged Shipping assets with Arcade and MicroBuild, using ESRP only for real signing, then generate the publishing-v3 manifest from signed Shipping and prepared NonShipping assets. Inside the internal non-PR gate, `main` and `release/*` select real signing and BAR registration; other branches test-sign and register only when a forced real-signing run also passes `registerInBar`. Post-build validation keeps `publishAssetsImmediately: false` and `requireDefaultChannels: true`, so this merge cannot promote packages merely by building them. ~~ Fail-closed API Scan coverage ~~ The legacy scan came from `DevDiv/Xamarin.yaml-templates` and extracted packages without proving that its binaries, PDBs, surrogates, or configured targets existed. Add a repository-owned stage that downloads this run's `nuget` and `native_msvc` artifacts, activates the dedicated WIF identity, runs API Scan in release mode, publishes its report, uploads TSA bugs, and breaks at Note severity. Preparation extracts packages into `symbols-extracted`, replacing the removed `nuget_symbols` layout, and validates the Win32, HarfBuzzSharp, NanoServer, and WinUI mappings, including Clang targets mapped to matching or API-compatible x64 MSVC binaries and WinUI ARM64 targets mapped to x64 package binaries staged from the WinUI symbols package. Missing packages, binaries, PDBs, surrogate files, or target matches fail closed. Prepare runs the identity and API Scan suites so input drift fails before a protected stage is requested. The focused build identity, Arcade asset, and API Scan suites pass on the adapted 4.150.3 tree; `scripts/infra/caching/repo-deps.py validate` reports 4,357 tracked files, 0 uncovered, and 22 jobs; `eng/NoBuild.proj` builds with no warnings or errors; and the 95 changed YAML files, four JSON files, XML-family files, and Chrome install script parse cleanly. No separate local native source build was required because the merge changes no Skia/C++ source, submodule, generated binding, or product input. Source build 1572924 validates the pipeline and container changes carried by this backport. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Make the upcoming 4.151.3 release line releasable through dnceng/Arcade/BAR by backporting the dependency-closed operational infrastructure proven by #4802, #4803, #4842, and the historical compatibility contract from #4859.
This keeps the branch's 4.151.3 product identity and existing preview workload, Xcode, pool, WinUI, and test topology. It adds generated Arcade onboarding, aligns repository-owned tooling on SDK 10.0.203 with the supported 10.0.202 workload set and 10.0.108 WinUI side-by-side SDK, consolidates the internal Build and connected Tests flow, and adds standard signing, API Scan, BAR registration, immutable artifact selection, branch-only NonShipping transport staging, and standard
PdbArtifactscontaining real implementation/runtime PDBs extracted from signed packages that do not have explicit symbol packages. It also aligns the historical tracking benchmark's EAP restore URL with the current dnceng feed selected byaka.ms/skiasharp-eap, preserves cached package artifact layout by guarding every reorganization step, and retains the branch's native-only pipeline selector; no benchmark logic or product/runtime behavior changes.No product, runtime, C API, Skia submodule, or native source inputs changed. Apple symbol production, new product packages, release skills, absent container families, unrelated documentation/refactors, obsolete feed tooling, and generated bindings/docs are intentionally excluded.
Related issues
N/A.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None. This is release infrastructure only; there are no public API, rendering, runtime, or native product behavior changes.
Testing
pwsh -NoLogo -NoProfile -File scripts/infra/package/tests/AssembleArcadeAssets.Tests.ps1pwsh -NoLogo -NoProfile -File scripts/infra/native/shared/tests/SetBuildVariables.Tests.ps1pwsh -NoLogo -NoProfile -File scripts/infra/security/tests/PrepareApiScanInputs.Tests.ps1python3 scripts/infra/caching/repo-deps.py validateSkiaSharpandSkiaSharp.NativeAssets.Linux4.152.0-nightly.47throughbenchmarks/SkiaSharp.Benchmarks.Tracking/nuget.configSkiaSharp.Benchmarks.Tracking.csprojagainst exact4.152.0-nightly.47: 0 warnings, 0 errorsDOTNET_FINAL_VERSION_KIND, transport metadata, branch-only BAR staging, real loose PDB extraction, dnceng TSA, branch-before-commit downloads, all four cache-hit reorganization guards, and native-only pipeline compatibility./eng/common/build.sh -restorebootstrapped SDK 10.0.203 and restored Arcade 11.0.0-beta.26414.2 successfullyThe PDB assembly test verifies package/TFM/RID path preservation,
ref/**exclusion, explicit symbol-package retention, removal of managed fallback symbol-package cloning, and branch-only NonShipping transport selection. The assembly script emits.emptyonly when no loose PDBs are found.The authoritative source closure is
e3565f1c30895352ac77689014d380cd82f0aa27, subject to further explicitly relayed operational fixes from the evolving source PR. This PR intentionally remains a draft pending source closure parity, the coordinator-confirmed exact source Build/promotion/default-channel/symbol state, an exact connected Tests run, and this PR's fresh CI.The prior-head Track - Benchmarks run 32862258889 exposed a real historical-branch compatibility blocker: its resolver selected
4.152.0-nightly.47from dnceng throughaka.ms/skiasharp-eap, but the branch's nested benchmarknuget.configstill restored from the legacy Xamarin feed, where that exact version is absent. Ubuntu, macOS, and Windows therefore failed with the sameNU1102before BenchmarkDotNet ran. The one-line feed alignment is byte-identical to RC1/source closuree3565f1, changes no workflow or benchmark logic, and is proven by fully green Track - Benchmarks run 32864620110: all three nightly legs, all three source-benchmark legs, resolver, and released baselines passed. Fresh validation for the current head is running in Track - Benchmarks run 32875017496 and Azure DevOps build 1567222.Target-specific adaptations:
SkiaSharp.Vulkan.Silk.NETout of signing because that package is absent on this line.buildPipelineType: 'native'support because this branch still shipsscripts/azure-pipelines-native.yml.nuget_specialremains publishable.Checklist
Changesabove lists all public API and behavioral changesmono/skiaPR required