Repository navigation
[4.151.x] Onboard Arcade infrastructure - #4871
Merged
mattleibow merged 4 commits intoAug 26, 2026
Merged
Conversation
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)
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 -- 4871PowerShell / 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-4871More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4871 |
mattleibow
marked this pull request as ready for review
August 26, 2026 22:07
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]>
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 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/commonsnapshot, and an isolatedeng/NoBuild.projrestore 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.jsonretains the branch'sutils/Utils.slnidentity instead of main's laterutils/Utils.slnx. The effective diff remains the same 164 onboarding paths as #4802, and the generatedeng/commontree and executable modes exactly match source commit2de67f74fdd3a8e49afe213d13e428c063e78a34.Validation:
python3 scripts/infra/caching/repo-deps.py validate— all tracked files covered.11.0.0-beta.26414.2, Darc SHA, and .NET SDK10.0.108metadata 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 attemptsdotnet package download, which SDK 10.0.108 does not expose; the direct restore above is the branch-equivalent first-run validation.git diff --checkpasses. The full check reports only whitespace carried verbatim by generatedeng/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
API Changes
None.
Behavioral Changes
None.
Required skia PR
None.
PR Checklist
release/4.151.xatc848d683d79f9b232c67f65cc099802aff15dc0a