Skip to content

[4.151.x] Onboard Arcade infrastructure - #4871

Merged
mattleibow merged 4 commits into
release/4.151.xfrom
mattleibow-release-4-151-arcade-onboarding
Aug 26, 2026
Merged

mattleibow merged 4 commits into
release/4.151.xfrom
mattleibow-release-4-151-arcade-onboarding

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Description of Change

Backports the behavior-neutral Arcade and Darc onboarding layer from #4802 to release/4.151.x.

This adds the pinned Arcade dependency metadata, the complete generated eng/common snapshot, and an isolated eng/NoBuild.proj restore graph. Existing Cake product/native/runtime behavior and all existing pipeline roots and templates remain unchanged. This PR does not activate signing, API Scan, BAR publishing, package artifact assembly, transport, PDB processing, dnceng pipelines, or benchmark changes.

This is the intended bottom layer and base for #4863, which will be restacked above this PR after it exists.

Release-branch adaptation: scripts/infra/caching/repo-deps.json retains the branch's utils/Utils.sln identity instead of main's later utils/Utils.slnx. The effective diff remains the same 164 onboarding paths as #4802, and the generated eng/common tree and executable modes exactly match source commit 2de67f74fdd3a8e49afe213d13e428c063e78a34.

Validation:

  • python3 scripts/infra/caching/repo-deps.py validate — all tracked files covered.
  • JSON and XML/MSBuild parsing — 4 JSON and 10 XML/MSBuild files parsed; Arcade 11.0.0-beta.26414.2, Darc SHA, and .NET SDK 10.0.108 metadata agree.
  • dotnet restore eng/NoBuild.proj --verbosity minimal — isolated graph restored successfully.
  • ./eng/common/build.sh --restore --verbosity minimal — succeeded with 0 warnings/errors after materializing the restored Arcade toolset. On a completely empty toolset cache, the generated wrapper first attempts dotnet package download, which SDK 10.0.108 does not expose; the direct restore above is the branch-equivalent first-run validation.
  • Repository-owned git diff --check passes. The full check reports only whitespace carried verbatim by generated eng/common; its diagnostics exactly match source PR build: onboard Arcade infrastructure #4802.

No product tests were run because this layer deliberately does not change product, native, runtime, or active pipeline behavior.

Bugs Fixed

  • N/A

API Changes

None.

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

  • Has tests (isolated Arcade restore and metadata validation; no product behavior changes)
  • Rebased on top of release/4.151.x at c848d683d79f9b232c67f65cc099802aff15dc0a
  • Merged related skia PRs (not applicable)
  • Changes adhere to coding standard
  • Updated documentation (generated Arcade guidance included; no product docs required)

Copilot AI added 4 commits August 26, 2026 11:35
Add the pinned Arcade SDK metadata and exact generated eng/common snapshot behind an isolated restore-only graph. Preserve the existing SkiaSharp SDK, Cake build, pipelines, signing, and publishing behavior.

Copilot-Session: ebd516d2-00c0-49bf-9943-6b7ae61acbb7

Co-authored-by: Copilot App <[email protected]>
(cherry picked from commit a37ee08)
Treat eng/** as a global cache dependency so any Arcade or repository engineering change invalidates every product cache and forces a full rebuild.

Copilot-Session: ebd516d2-00c0-49bf-9943-6b7ae61acbb7

Co-authored-by: Copilot App <[email protected]>
(cherry picked from commit 0ba9998)
Update the Arcade SDK and generated shared infrastructure from .NET Eng - Latest using Darc. Adopt Arcade 11.0.0-beta.26414.2 from build 20260814.2 and its required .NET SDK while preserving the isolated bootstrap graph.

Copilot-Session: ebd516d2-00c0-49bf-9943-6b7ae61acbb7

Co-authored-by: Copilot App <[email protected]>
(cherry picked from commit de3e7a9)
Keep Arcade and Darc on their latest versions while preserving SkiaSharp's 10.0.108 SDK baseline. The .NET 11 preview selected by Darc is unavailable in existing CI agents, containers, and WASM workload feeds.

Copilot-Session: ebd516d2-00c0-49bf-9943-6b7ae61acbb7

Co-authored-by: Copilot App <[email protected]>
(cherry picked from commit 2de67f7)
@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 -- 4871

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

@mattleibow
mattleibow marked this pull request as ready for review August 26, 2026 22:07
@mattleibow
mattleibow merged commit 017438e into release/4.151.x Aug 26, 2026
76 of 84 checks passed
@mattleibow
mattleibow deleted the mattleibow-release-4-151-arcade-onboarding branch August 26, 2026 22:08
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]>
@github-actions github-actions Bot added this to the 4.151.2 milestone Sep 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.

2 participants