Repository navigation
Migrate CI to dnceng with Arcade shipping and transport - #4803
Conversation
📦 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 -- 4803PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4803"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4803/packages --name skiasharp-pr-4803More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4803 |
📊 SkiaSharp benchmarks — PR #4803⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 34 slower · 🟢 44 faster
📦 Allocations — 🔴 1 more alloc · 🟢 0 less alloc
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
📦 Allocations (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
📦 Artifact size reportPackages from this PR (build Total Packages
+39 package(s) unchanged (< 50.0 KB). Per-file changes
|
| 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.4 MB (🟢 −80.0 KB) |
Informational only — this never blocks the PR. Native binaries are labelled by os/arch.
14e290a to
08fa356
Compare
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
08fa356 to
9dd8812
Compare
There was a problem hiding this comment.
Pull request overview
Migrates SkiaSharp’s CI from the legacy DevDiv chain to repository-owned dnceng/internal pipelines, adding first-class stage templates for signing, API Scan, and BAR publish/validation while keeping public CI unsigned and excluding internal compliance/publishing.
Changes:
- Introduces dedicated stage templates for internal signing (
signing), API Scan (api_scan), and BAR publishing/validation (publish_build_assets+ post-build validation), composed via a single shared stages template. - Adds PowerShell tooling + tests for (a) deterministic build identity/version derivation and (b) signed-NuGet payload fidelity verification aligned with
eng/Signing.propspolicy. - Updates SDK/tooling baseline to .NET SDK
10.0.400and adjusts packaging/version-suffix behavior for exact-release vs prerelease builds.
Reviewed changes
Copilot reviewed 38 out of 38 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/infra/signing/verify-signed-packages.ps1 | New verifier to compare unsigned vs signed NuGet payloads and enforce signing policy expectations. |
| scripts/infra/signing/tests/Signing.Tests.ps1 | New local regression tests for signing policy classification, exclusions, and payload fidelity checks. |
| scripts/infra/signing/README.md | Documentation for signing stage architecture, policy, artifact flow, and local checks. |
| scripts/infra/signing/NuGetPayload.psm1 | New module to inventory nested NuGet/zip payloads and derive signing policy assignments. |
| scripts/infra/shared/shared.cake | Updates version-suffix computation (Arcade final version kind) and removes feature-preview suffix logic. |
| scripts/infra/security/APIScanSurrogates.in.xml | Expands surrogate mappings to cover additional ARM64 scenarios and WinUI surrogate binaries. |
| scripts/infra/package/tests/StagePrereleasePackages.Tests.ps1 | New tests validating prerelease package selection/staging rules for BAR preview publishing. |
| scripts/infra/package/stage-prerelease-packages.ps1 | New script to stage only allowed prerelease packages (rejects exact stable and unsupported labels). |
| scripts/infra/package/SignList.xml | Removes legacy signing input list (superseded by Arcade signing policy in eng/Signing.props). |
| scripts/infra/package/nuget.cake | Ensures a single coherent package family per build and forwards VersionSuffix consistently. |
| scripts/infra/native/wasm/docker/Dockerfile | Adjusts dotnet-install usage for the WASM build container and pins default SDK version. |
| scripts/infra/native/shared/tests/SetBuildVariables.Tests.ps1 | New tests for build identity normalization (PR/main/release/resource-trigger) and pipeline wiring invariants. |
| scripts/infra/native/shared/set-build-variables.ps1 | Rewrites build identity logic around Arcade OfficialBuildId + normalized PR/branch/commit handling. |
| scripts/infra/caching/repo-deps.json | Updates caching dependency coverage and adds a signing job cache scope. |
| scripts/azure-templates-variables.yml | Moves BUILD_NUMBER derivation to runtime and adds Arcade OfficialBuildId + final version kind variables. |
| scripts/azure-templates-stages.yml | Refactors stage composition for build/test/complete roles and adds internal-only signing/API scan/BAR stages. |
| scripts/azure-templates-stages-test.yml | Updates split-pipeline logic to use buildPipelineType instead of isSplitPipeline. |
| scripts/azure-templates-stages-signing.yml | New internal signing stage using Arcade official job template + payload verification + manifest generation. |
| scripts/azure-templates-stages-publish.yml | New BAR registration + validation stages (Arcade V3 publishing). |
| scripts/azure-templates-stages-prepare.yml | Adds pipeline-time execution of the new identity + prerelease staging tests and cache config validation. |
| scripts/azure-templates-stages-package.yml | Removes split-pipeline native reupload/signing blocks; forwards --dotNetFinalVersionKind and stages preview artifacts via script. |
| scripts/azure-templates-stages-native-windows.yml | Makes Win32 MSVC native builds unconditional (no longer gated by legacy DevDiv project checks). |
| scripts/azure-templates-stages-native-merge.yml | Makes MSVC native artifact merge unconditional. |
| scripts/azure-templates-stages-native-linux.yml | Minor cleanup (trailing whitespace removal). |
| scripts/azure-templates-stages-apiscan.yml | New standalone API Scan stage that consumes pipeline artifacts and runs APIScan/TSA/PostAnalysis. |
| scripts/azure-template-fake-1es.yml | Improves public-template adapter comment and refactors job property expansion for templateContext outputs. |
| scripts/azure-pipelines-tests.yml | Repoints tests pipeline resource to the new package pipeline and fixes host pool OS metadata. |
| scripts/azure-pipelines-package.yml | Converts to dnceng 1ES official template with enforced SDL breaks, network isolation, and new stage composition parameters. |
| scripts/azure-pipelines-native.yml | Removes legacy native-only pipeline definition (replaced by new build pipeline). |
| scripts/azure-pipelines-complete-internal.yml | Removes legacy internal complete pipeline (replaced by new build/test split plus public complete). |
| global.json | Bumps repo SDK/tooling to .NET SDK 10.0.400. |
| eng/Signing.props | New Arcade signing policy source of truth (explicit basenames, NoSignJS enabled). |
| eng/SignCheckExclusionsFile.txt | New SignCheck DO-NOT-SIGN exclusions matching JS payload policy. |
| eng/Publishing.props | New Arcade publishing policy separating preview vs exact-release package views. |
| documentation/dev/versioning.md | Updates versioning guidance to Arcade identity and exact-release sentinel behavior. |
| documentation/dev/updating-dotnet-version.md | Updates SDK bump checklist to include tools.dotnet parity requirement. |
| documentation/dev/releasing.md | Updates release documentation for BAR/Arcade V3 flow and new pipeline IDs/feeds. |
| documentation/dev/building-samples.md | Updates sample build/version examples to Arcade-derived short-date.revision build number. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 39 out of 39 changed files in this pull request and generated 1 comment.
Suppressed comments (3)
scripts/azure-pipelines-package.yml:118
- This strict-isolation configuration still includes the
Permissivepolicy, which the PR description itself lists as a remaining gate to remove. That leaves the migrated build/signing path with broader network access than the stated fail-closed posture; complete the endpoint audit and remove this policy before merging.
networkIsolationPolicy: Permissive, CFSClean, CFSClean2
documentation/dev/releasing.md:187
- This command still invokes a status script that is hard-coded to the legacy DevDiv chain and feed (
.agents/skills/release-status/scripts/pipeline-status.py:18-45, IDs 26493/10789/15756). It cannot report the new dnceng Build 1642, Tests 1630, or BAR identity promised here, so the documented release-status workflow is broken until the script and skill metadata are migrated.
```bash
python3 .agents/skills/release-status/scripts/pipeline-status.py release/{version}
**documentation/dev/releasing.md:118**
* The PR says a protected release-by-BAR pipeline is future work, but this table documents it as an available pipeline. The current release-publish tooling still queues legacy DevDiv pipeline 25298 and selects a managed run (`.agents/skills/release-publish/scripts/push-release-packages.py:17-45`), not a BAR ID. Keep this entry marked as future/out of scope or implement and migrate the protected publisher before presenting this as the release procedure.
| NuGet.org Publish | Gathers one exact BAR build and publishes it after protected human approval. |
</details>
Align .NET SDK, workload, and container pins (#4842) Context: #4803 Context: c4d7f7e Context: d47c91c Context: 7b00dbf This isolates the SDK and container alignment from the broader dnceng migration so it can land without adopting Arcade identity, publishing, signing, or pipeline topology changes. It aligns repository build environments while preserving the compatibility exceptions required by Apple and WinUI jobs. ~~ Repository SDK and Apple workload compatibility ~~ The repository selected SDK 10.0.108 while managed Apple jobs already ran on macOS 15 with Xcode 26.3. Move `global.json`, its `tools.dotnet` selector, and `DOTNET_VERSION` to 10.0.203, and restrict roll-forward to servicing patches with `latestPatch`. Keep `DOTNET_WORKLOAD_VERSION` at 10.0.202 because that workload set remains compatible with the existing Xcode 26.3 environment. Preview SDK and workload values remain unchanged. The upgrade guide records that workload versions can lag the SDK patch when Apple toolchain support requires it. ~~ WinUI's MSBuild 17.x SDK ceiling ~~ Native WinUI C++/WinRT generation still runs through Visual Studio MSBuild 17.x, which cannot load .NET 10.0.2xx or newer. Keep `native/winui/global.json` at 10.0.108 and add an `additionalDotNetSdks` bootstrapper input so the WinUI and WinUI ANGLE jobs for x86, x64, and arm64 install the final 10.0.1xx SDK beside the repository SDK. This preserves the modern SDK for Cake and managed work without forcing an unsupported SDK into C++/WinRT. ~~ Repository-bound and consumer container roles ~~ Containers that mount or build the checkout must satisfy root `global.json` and should not silently move to another servicing SDK. Pin the docs image, native Android, Linux, Tizen, and WASM SDK installs, CI container-test images, and the repository-level Linux test image to 10.0.203 while retaining each distro or OS suffix. The WASM installer now uses `--version` instead of treating an exact patch as a channel. Isolated sample images and the generated Linux package-consumer test remain unpinned: their contexts exclude root `global.json`, and the moving `10.0` tag intentionally tests the latest .NET 10 servicing SDK. The upgrade guide now documents this boundary and the manifest checks needed for future updates. Manifest checks confirmed the generic, Noble, Alpine 3.23, Azure Linux 3.0, and Nano Server LTSC 2022 SDK images, plus the Linux x64 and arm64 SDK archives used by `dotnet-install.sh`. Repository dependency-cache validation and the managed binding build also completed successfully. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
Generate stable Apple symbols packages from the normal Cake NuGet flow, validate archive UUIDs, and add post-promotion retrieval checks for MSDL and SymWeb. Co-authored-by: Copilot App <[email protected]>
Use shared MSBuild packaging targets to emit complete Apple dSYM symbol packages directly from dotnet pack, preserving normal runtime packages and Catalyst framework handling. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 28a5c16a-00b3-4742-ba7f-abc43845afbc
Declare each dSYM bundle once and let the shared MSBuild target expand its contents and completeness checks. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 28a5c16a-00b3-4742-ba7f-abc43845afbc
Derive runtime packing, symbol-only content, and completeness validation from one declaration per physical Apple artifact. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 28a5c16a-00b3-4742-ba7f-abc43845afbc
Derive symbol packaging from native artifact items, emit stable and preview symbols uniformly, and use the repository's existing relative native paths. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 28a5c16a-00b3-4742-ba7f-abc43845afbc
Keep existing runtime PackageFile declarations and use one generic PackageSymbolFile item for second-pass symbol package content. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 28a5c16a-00b3-4742-ba7f-abc43845afbc
Move native symbol validation out of the production change and clean package output directories before each complete repack. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 28a5c16a-00b3-4742-ba7f-abc43845afbc
Require each Xcode archive dSYM to match its runtime UUID and verify the final universal runtime has exactly the staged per-architecture UUID set. Fail official Windows packaging unless all stable and preview Apple symbol packages contain the expected runtime modules and dSYM payloads, while leaving partial package builds unchanged. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 28a5c16a-00b3-4742-ba7f-abc43845afbc
Move deterministic Shipping, NonShipping, and PDB preparation into the Cake NuGet graph so public builds publish release-ready inputs. Keep signing limited to the Shipping artifact and leave only authenticated BAR registration, validation, and promotion in internal stages. Remove the unused package_windows artifact and production PowerShell assembly helper. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Package versions and transport families depend on build identity, not only repository inputs. Prevent Cache@2 from reusing stale NuGets, prepared Arcade views, or PDB artifacts across reruns and PR/branch contexts. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Inline deterministic Arcade asset preparation directly in the Cake task and rename it to nuget-assemble-arcade-assets so the complete package task family follows one naming convention. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
The standalone Prepare stage does not run through the bootstrapper, so install the repository SDK before restoring local tools and executing the Cake-based artifact tests. Guard the required ordering in the pipeline contract test. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Make the shared output path overridable for isolated tests, derive all Arcade package paths and transport selection from existing build state, and materialize normal packages before PDB ownership checks. Retain the approved Cake formatting while preserving package metadata strings. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Construct and normalize extraction targets with Cake DirectoryPath and FilePath APIs, use Cake's file system abstraction for writes, and prove traversal rejection with an escaping ZIP-entry test. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Clear LASTEXITCODE after the traversal test intentionally invokes a failing Cake task so the PowerShell validation process reports success once rejection is verified. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77 # Conflicts: # scripts/infra/package/nuget.cake
Run only executable build-identity and API Scan preparation checks in Prepare. Move the Cake-based Arcade artifact behavior test into the Package job after its existing SDK/tool bootstrap, and remove brittle YAML string-contract assertions. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Create PR transport versions for PR validation and branch versions for all other builds. Remove commit wrapper generation and its unavailable anonymous-feed fallback, copy the single family directly into Arcade NonShipping, and document public versus protected pipeline responsibilities. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Clarify the single PR-or-branch NonShipping artifact contract and update developer guides to the current .agents skill locations after a full relative-link and anchor audit. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Name the shared package root PACKAGE_OUTPUT_PATH so native Cake entry points can retain their historical OUTPUT_PATH globals while all package outputs still derive from the same --outputPath override. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
Rename the shared artifact root to ROOT_OUTPUT_PATH because it owns NuGets, prepared Arcade views, and PDB artifacts, while preserving the --outputPath override and avoiding native-local OUTPUT_PATH collisions. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4b716c9b-78fe-4fd9-a242-31e192b5aa77
| // NuGets and Symbols: bin-pack all nupkgs into ~200 MB numbered chunks | ||
| if (GetFiles ($"{ROOT_PATH}/output/nugets/*.nupkg").Count > 0) { | ||
| // Bin-pack the build's normal NuGets into ~200 MB chunks | ||
| if (GetFiles($"{ROOT_PATH}/output/nugets/*.nupkg").Count > 0) { |
| param( | ||
| [Parameter(Mandatory = $true)] | ||
| [ValidateSet("skiasharp", "skiasharp-ci")] | ||
| [ValidateSet("skiasharp", "skiasharp-transport")] |
| The JSON report links the combined Build run to its downstream Tests run, | ||
| provides immutable source/run metadata, and carries the exact Build, Tests, and | ||
| BAR IDs together with the signed package versions. Release testing starts only | ||
| after the connected Tests run succeeds unless the release manager records an | ||
| explicit override. |
| The release-publish detector is also the recovery entry point: it reconstructs | ||
| the immutable source, pipeline, BAR, package, and test pins. The protected | ||
| publisher accepts the BAR build ID rather than a mutable branch or latest-build | ||
| selector. Successful publication with delayed NuGet indexing remains a |
## Description Synchronizes `dnceng/internal` repository `dotnet-SkiaSharp` with the exact latest `mono/SkiaSharp` GitHub `main` commit fetched on 2026-08-26. - GitHub `main` source SHA: `2dd508790e44e115467bf38fb543ab69eebb4584` - dnceng `main` target SHA: `28c861a1509326d34e18bdedbfc72ccfc7320722` - Shared GitHub base SHA: `46ea7244b6ab7e021432dda16451c93e5c7a1117` - Range: 16 GitHub commits / 1 target-only commit (the previous AzDO sync merge) - Source construction: the AzDO source branch points directly at GitHub `main`; no commits were rebased, squashed, cherry-picked, or rewritten. **Completion requirement: use Merge (no fast-forward). Do not squash or rebase.** This preserves every GitHub commit and records this synchronization as a merge commit on AzDO `main`. **Related issues** Related to mono#4803 **Required skia PR** None — this transports already-merged GitHub commits unchanged. **Areas affected** The synchronized GitHub range spans the repository; all content is inherited unchanged from GitHub `main`. - [x] Managed API (`binding/`) - [x] Native / C API (`externals/skia/src/c`, `include/c`) - [x] Generated P/Invoke bindings - [x] Native dependency or Skia update (libpng, HarfBuzz, FreeType, zlib, milestone bump, …) - [x] Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …) - [ ] Rendering output / visual behavior - [x] Performance - [x] Tests - [x] Build, packaging, or CI - [x] Documentation or samples ## Changes None — transport-only synchronization; no sync-specific public API or behavioral changes. ## Testing Repository tests were not rerun for this transport-only sync. Integrity validation performed: - fetched both remote `main` refs immediately before branch creation; - confirmed the merge base is the previous GitHub sync tip; - confirmed the source branch SHA exactly equals the fetched GitHub `main` SHA; - confirmed the range contains 16 GitHub commits and only the prior AzDO merge commit on the target side; - confirmed no commits were rewritten and no working-tree content was modified. ## Checklist - [x] Tests added or updated (not applicable: exact transport of already-tested, merged GitHub commits; see Testing) - [x] `Changes` above lists all sync-specific public API and behavioral changes (`None`) - [x] New/changed public API docs issue (not applicable to this synchronization PR) - [x] Native companion PR and regenerated bindings (already handled by the transported GitHub commits)
Merge main into release/4.152.0-rc.1 (#4875) Context: d93f0fa Changes: c7bcb4a...d93f0fa Context: #4803 Context: #4842 Context: #4846 Merge main through `d93f0fa` into the RC1 release branch, including the dnceng/Arcade migration, toolchain alignment, Apple symbol packaging, and the intervening main commits. Preserve `PREVIEW_LABEL: 'rc.1'`; the merged tree otherwise matches main. The normal merge retains the original commits and their authors. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
[CI] Backport Arcade release infrastructure to 4.151.x (#4863) Context: #4802 Context: 46ea724 Context: #4842 Context: 398bcdd Context: #4803 Context: 2dd5087 Context: #4846 Context: #4877 Context: 6386960 Context: #4859 Context: #4889 Context: #4883 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1571474 Context: https://github.com/mono/SkiaSharp/actions/runs/32862258889 Context: https://github.com/mono/SkiaSharp/actions/runs/33122720179 Complete the 4.151.x release line's move from its legacy split pipelines to repository-owned dnceng pipelines and a standard Arcade V3 package flow. Keep public validation free of protected side effects while giving trusted internal release builds the signing, API Scan, BAR registration, and promotion inputs needed to produce 4.151.3. Preserve the branch's product, runtime, managed API, C API, native source, Skia submodule, preview-workload, Xcode, and test topology. Do not add the Apple symbol production from #4846, `SkiaSharp.Vulkan.Silk.NET`, new product or container families, generated bindings or documentation, or unrelated release automation. #4859 supplied historical compatibility constraints, but its manual release-skill design is superseded by #4889 and is not backported. This change does not register, promote, publish, or otherwise release the PR build. ~~ Connected dnceng release topology ~~ The old Native, Package, and Tests definitions exchanged independently numbered artifacts, which obscured source, package, and test provenance. Make the package root use `buildPipelineType: 'build'` so one Build owns Prepare, Native, and Package, and make the connected Tests definition consume the folder-qualified `\dotnet\skiasharp\skiasharp-package` resource. Use the same repository stage templates in public validation through the local 1ES output adapter. Expand signing, API Scan, and publishing stages only for non-PR builds in the internal project, so public and PR template expansion cannot acquire protected release side effects. Retain the branch's native-only pipeline role rather than importing the newer main-only topology wholesale. Trigger the Build directly for `main` and `release/*` path changes instead of waiting for a separate Native pipeline to finish. Keep the branch's `azure-pipelines-complete-internal.yml` and native-only root compatible with the shared stages because other historical entry points still consume them. ~~ dnceng execution policy ~~ The internal root still extended the DevDiv MicroBuild 1ES template and loaded shared stages from `DevDiv/Xamarin.yaml-templates`, neither of which is available to a dnceng-owned pipeline. Move it to the released `v1/1ES.Official.PipelineTemplate.yml` and remove that repository dependency. 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; the policy is intentionally not presented as fully enforced. Build and merge the MSVC Win32 artifacts without the old `System.TeamProject == 'devdiv'` condition. That predicate cannot match in dnceng, and retaining it would remove the `native_msvc` input required by API Scan. ~~ Exact 4.151.3 build identity ~~ Feature names and loosely parsed downstream counters could assign different identities to producing and consuming runs. Derive the product build number from Arcade's `yyyyMMdd.revision` OfficialBuildId, normalize GitHub and Azure Repos source identity, and make Tests inherit the Build run name. PR builds use `pr.<number>`, schedules use `nightly`, and ordinary builds keep their configured preview label. Only an internal `release/*` producer may use the `stable` sentinel to clear the suffix and emit exact 4.151.3 packages. Emit `DOTNET_FINAL_VERSION_KIND=release` for that case and reject malformed or incomplete source identities instead of manufacturing a plausible version. Require exact Build run IDs when downloading pipeline artifacts and reject the mutable `latestFromBranch` mode. Shared package downloaders use the branch transport alias and no longer fall back to a commit alias, matching the one transport version registered for each package ID. Keep this historical branch fail-closed on its existing downloader shape rather than taking the broader dead-code removal still under review in #4883. The Prepare gate exercises GitHub and Azure Repos PRs, downstream run-name inheritance, exact releases, and malformed identities. Build 1571474 used the resulting `4.151.3-pr.4863.26427.5` identity. ~~ One package and transport family ~~ The historical graph packed stable and preview products separately and then created stable, preview, symbol, branch, and commit transport variants. Pack one coherent product family and create one PR transport family for PR validation or one branch transport family otherwise. Keep commit aliases out of NonShipping so BAR cannot receive multiple versions of the same transport package ID. Run normal and transport packing in one `package_windows` job. Publish the raw `nuget` and `nuget_special` artifacts beside deterministic `arcade_shipping`, `arcade_nonshipping`, and `PdbArtifacts` views. Remove the separate `nuget_preview` and `nuget_symbols` pipeline artifacts. Mark transport projects non-shipping and give `_NuGets`, `_NativeAssets`, and `_Dependencies` the Microsoft copyright, MIT expression, and project URL required by Arcade. Documentation and generated sample jobs now select the build's single package family instead of assuming stable and preview packages coexist. Package jobs no longer restore from the shared build cache because package versions and the transport family depend on run identity rather than repository inputs alone. Shared consumers resolve transport packages from the dnceng transport feed. ~~ Real loose PDB artifacts ~~ Arcade V3 requires a `PdbArtifacts` input, but cloning customer packages into manufactured fallback symbol packages would create false package identities. Keep existing explicit symbol packages in Shipping. For product packages without one, extract implementation and runtime PDBs under their original package, version, TFM, and RID paths. Skip `ref/**`, reject archive entries that escape the package extraction root, and avoid loose-PDB duplication when an explicit symbol package owns the symbols. Emit `.empty` only when no eligible PDB exists. A Package-stage gate exercises both transport families, explicit-symbol ownership, reference-symbol exclusion, empty output, and traversal rejection. Build 1571474 published byte-identical raw and prepared package sets and a path-safe `PdbArtifacts` payload containing only the intended loose PDBs. ~~ Explicit signing and BAR inputs ~~ Arcade's broad signing defaults do not describe SkiaSharp's mixed first-party, Mac developer, generated JavaScript, WebGPU, and transport payloads. Replace them with an explicit repository policy. Sign Shipping NuGets and their classified first-party contents, preserve Mac developer signing, and classify source payloads that must retain their existing bytes as `CertificateName=None`. Keep NonShipping transport packages unsigned and prevent SignCheck from unpacking them. `DO-NOT-SIGN` exclusions make validation fail if a transport or listed source payload is unexpectedly signed. Do not add `SkiaSharp.Vulkan.Silk.NET` to the policy because that package is absent from 4.151.x, and do not manufacture or consume the Apple symbol packages added by #4846. Retain the source contract's `scripts/infra/signing` cache-input category even though no such helper directory exists yet, so the cache configuration stays aligned with main without importing additional tooling. Generate the Arcade V3 manifest from signed Shipping and prepared NonShipping assets. Main and release branches select real signing and BAR publication; other trusted branches test-sign unless explicitly forced, and forced BAR side effects additionally require `registerInBar`. Post-build validation keeps `publishAssetsImmediately: false` and requires default channels before promotion. ~~ Fail-closed API Scan coverage ~~ The legacy inline scan extracted packages without proving that 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, and reports at Note severity. Prepare checked Win32, NanoServer, and WinUI mappings. Use x64 MSVC surrogates for Win32 and HarfBuzzSharp ARM64 targets, and staged x64 package binaries for WinUI ARM64 targets. Fail when packages, binaries, PDBs, surrogate files, or target matches are absent, and make PostAnalysis fail at Note severity. Run the focused preparation suite during Prepare so input drift fails before a protected scan stage is requested. ~~ Historical SDK and pipeline compatibility ~~ The repository's 10.0.108 SDK was too old for Arcade package download, while the branch's Apple and WinUI jobs could not simply adopt every newer tool. Move repository-owned builds and the existing checkout-consuming native containers to SDK 10.0.203 with `latestPatch` roll-forward. Pin workload set 10.0.202 for the branch's macOS 15 and Xcode 26.3 combination. Visual Studio MSBuild 17.x cannot load the 10.0.2xx SDK used by Cake and managed builds. Install the retained 10.0.108 SDK side by side for the WinUI and WinUI ANGLE jobs. Update only Dockerfiles already present and consumed on 4.151.x; do not import absent container families or main's later product and toolchain changes. ~~ Servicing-pool runtime prerequisites ~~ The branch still used Microsoft-hosted and `Maui-1ESPT` defaults, so it did not inherit Arcade's release-aware dnceng routing. Move the Windows and Linux defaults to `DncEngPublicBuildPool` or `DncEngInternalBuildPool`, which select servicing pools for `release/*`, while retaining queue-time object overrides and hosted Apple jobs. The lean public servicing Linux image exposed two assumptions hidden by the general pool. Managed Linux builds Android libraries but did not install the Android SDK because the bootstrapper installed it only on non-Linux agents. Provision the SDK, platform tools, build-tools 35.0.0 and 36.0.0, and configured API levels for every Android-installing agent, then pass `AndroidSdkDirectory` into Cake. Both Linux WASM jobs also assumed Chrome was preinstalled. Download the pinned Chrome package, verify its SHA-256, package name, version, and architecture, install it, and export `CHROME_PATH` before running product tests. Build 1571474 completed the public release topology on the final head, including managed Android and the WASM product-test paths. The artifact and test outputs demonstrated that the servicing images now provide the tools these branch-native jobs require. ~~ Tracking benchmark feed compatibility ~~ The nightly resolver selects versions from the dnceng EAP feed, but the nested tracking benchmark configuration still restored from the legacy Xamarin feed. The nightly benchmark paths in run 32862258889 therefore failed package restore before BenchmarkDotNet could run. Align the nested benchmark source with dnceng; do not change benchmark logic or product code. Current-head run 33122720179 confirmed that the selected nightly packages restore and the existing benchmark workflows run without changing benchmark or product behavior. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
[infra] Align release ecosystem references with dnceng (#4910) Context: #4803 Context: #4889 Context: #4907 Context: 086f728 Context: https://github.com/mono/SkiaSharp/actions/runs/33565525986 Build on #4907's merged BAR-specific approval implementation with the current dnceng observer and shared-feed model. Keep the shared channel destinations for ordinary CI and nightly consumers distinct from the selected BAR asset's GUID-backed per-build feed; NuGet.org remains a later team publication step. The dnceng observer state and the versioning, shared.cake, and building-samples feed URLs were extracted from #4889 before that merged PR dropped these paths. The pinned commit above is that stack's last state before the drop; its tree still holds those files at this revision, apart from three building-samples naming lines refreshed here. Its own diff covers unrelated release-notes work. The README, benchmark/perf, writing-docs, and repository release-framing updates are new here. ~~ dnceng pipeline observers ~~ Since #4803 moved release builds to dnceng, the DevDiv Native -> Managed -> Tests definitions no longer describe them and ci-status reported a chain that no longer runs. Query the `mono-SkiaSharp` validation definition 345 in `dnceng-public/public` alongside skiasharp-package 1642 and skiasharp-tests 1630 in `dnceng/internal`. The cascade model becomes Build -> Tests: because 1642 owns native and managed work in one run, treat a red Tests run as a cascade only when the exact Build run it consumed also failed, rather than inferring the relationship from position in a three-stage chain. Query Component Governance from skiasharp-package alone because that combined Build owns native and managed assets, signing, API Scan, and BAR registration. Drop the now-meaningless `--pipeline native|managed|both` selector, reject an explicit security-audit build whose definition is not 1642, and point report examples and the viewer at the dnceng/internal CG registration and Build. With #4889 removing release-status, route build-progress and chain-tracing questions to ci-status, and package-readiness checks to a release-publish dry run. Skill metadata, representative report validators, Python compilation, and JSON/XML parsing passed. Build-cache dependency validation covered 4,800 tracked files with none uncovered. * `SkiaSharp-Tests` in `scripts/infra/tests/tests-apple.cake` remains a simulator instance name, not a stale pipeline reference. ~~ Shared channels and BAR-specific approval ~~ The old skiasharp-transport service index returns HTTP 404, while the `aka.ms/skiasharp-eap` alias resolves to the old skiasharp feed and does not expose current nightlies. Point wrapper downloads and documentation at dotnet-libraries-transport, document both shared destinations in versioning, and point README, benchmark, and size-tracking sources at dotnet-libraries. The merged #4907 implementation asks Maestro which BAR produced the selected version, then resolves that BAR asset's GUID-backed V3 and flat-container feed through Darc. Its planner downloads SkiaSharp, SkiaSharp.HarfBuzz, and the derived HarfBuzzSharp dependency from that exact feed, requires matching source branch and commit, and pins the same feed in every runner command, with dependencies from dotnet-public. Keep #4907's integration root, project, and generated-config propagation inherited from main and outside this PR's direct diff. In `documentation/dev/releasing.md` record that Arcade routes `IsShipping=true` packages to dotnet-libraries and `IsShipping=false` build inputs to dotnet-libraries-transport, then draw the shared-channel versus per-build BAR feed boundary. Because #4907 merged only implementation and integration files, this layer renders the complete operator flow in `documentation/dev/releasing.md`. It also replaces the three stale public-smoke references in `AGENTS.md` and the release skill descriptions in the AI index with pre-publication BAR package approval guidance. The guide records that release-testing physically smoke-tests the exact selected CI artifacts on the approved host/device targets and excludes NuGet.org from planner and runner sources, while the AI index explains that repository-owned workflows and PowerShell scripts perform release mutations and the skills remain thin guidance and observation layers. The release-testing contract inherited from #4907 governs the gate: failed required coverage blocks human release approval, but release-testing never publishes packages or changes BAR state, and only after approval does the team publish the selected BAR to NuGet.org. The live planner resolved SkiaSharp 4.150.3 through BAR 329644 to GUID feed 8bf0dc6d-5564-4f8e-8ff2-8167b63c6306 and matched all three anchors to source commit f8a404f. Both shared feed indexes returned HTTP 200, all 38 Python tests and the guarded PowerShell suite passed, and GUID-feed restore passed all three SmokeTests with HarfBuzzSharp 14.2.1.3. End-to-end transport validation also passed. Externals-download fetched 18 wrappers and produced 462 native files (3.2 GB); docs-download-output fetched four wrappers and produced 41 NuGet packages (570 MB). The linked benchmark run completed successfully with all 20 jobs passing on this exact head. * `scripts/infra/package/manage-nuget-feed.ps1` retains the dedicated skiasharp and skiasharp-transport destinations. It exists to migrate historical xamarin feeds and is run manually for that purpose; repointing it at shared feeds would change the migration's meaning. * #4907's checked-in fallback config retains the old skiasharp feed name, but approval runs override restore sources and generated configs with the resolved GUID feed. Those files are inherited from main and remain outside this PR. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
Description
Migrate SkiaSharp from the legacy DevDiv Native → Managed → Tests chain to repository-owned dnceng pipelines and standard Arcade V3 publishing.
This is the top PR in native stack #4858:
Pipeline topology
1642owns Prepare → Native → Package, real/test signing, API Scan, BAR registration, NuGet/signature validation, and standard Arcadepublish_using_darcpromotion.1630consumes the exact folder-qualified Build resource (\dotnet\skiasharp\skiasharp-package) so source, package, and test identities stay connected.345remains an unsigned Native+Package+Tests pipeline and cannot expand internal signing, API Scan, BAR, or promotion stages.developtriggers are removed.Package identity and Arcade assets
X.Y.Zpackages whenDotNetFinalVersionKind=release._NuGets,_NativeAssets*, and dependency chunks are unsigned non-shipping transport assets in the same BAR.*.symbols.nupkgpackages share thenugetpipeline artifact. Transport packages never receive symbol blobs.PackageArtifacts,BlobArtifacts,AssetManifests, andReleaseConfigsremain the BAR/feed/symbol handoff.*.symbols.nupkgentries as<Blob Category="Symbols">. During promotion it extracts supported payloads, uploads them withsymbol.exe, finalizes the symbol request, and registers it for the configured MSDL/SymWeb visibility. A nonzero upload, finalize, or registration result fails promotion; this PR deliberately adds no parallel custom symbol validator.Signing, security, and platform alignment
eng/SignCheckExclusionsFile.txtand verified unsigned and byte-identical.Arcade / Darc / Maestro
publishAssetsImmediately: falseuses standard Darc promotion;requireDefaultChannels: truefails closed when Maestro has no branch mapping.Azure counterpart: dnceng PR 63954.
Related issues
N/A.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None. There are no public API, rendering, or runtime product behavior changes.
Testing
9a72f21aff01551ba1a9d1f02b5bc0fc74226036, based directly on Generate Apple native symbol packages during pack #4846 head6cc1550bed175aa397485f92dab752070d2f3d4b.Remaining before merge:
1642must pass with real signing, API Scan, BAR registration, and Darc promotion.1630must pass against those Build artifacts.External cutover prerequisites:
skiasharpandskiasharp-transportrouting for shipping/non-shipping packages and symbol targets.mainand intended release branches.1641after the new chain is proven.Checklist
Changesabove lists all public API and behavioral changesmono/skiaPR required