Skip to content

Migrate CI to dnceng with Arcade shipping and transport - #4803

Merged
mattleibow merged 35 commits into
mainfrom
dev/dnceng-pipelines
Aug 26, 2026
Merged

mattleibow merged 35 commits into
mainfrom
dev/dnceng-pipelines

Conversation

@mattleibow

@mattleibow mattleibow commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Internal Build 1642 owns Prepare → Native → Package, real/test signing, API Scan, BAR registration, NuGet/signature validation, and standard Arcade publish_using_darc promotion.
  • Downstream Tests 1630 consumes the exact folder-qualified Build resource (\dotnet\skiasharp\skiasharp-package) so source, package, and test identities stay connected.
  • Public CI 345 remains an unsigned Native+Package+Tests pipeline and cannot expand internal signing, API Scan, BAR, or promotion stages.
  • Product and transport NuGets are produced by one aggregate package job; obsolete split Native/internal-complete YAML entry points and develop triggers are removed.

Package identity and Arcade assets

  • Every run packs one coherent product family: a unique prerelease family for CI, or exact X.Y.Z packages when DotNetFinalVersionKind=release.
  • Product NuGets are signed shipping package assets. _NuGets, _NativeAssets*, and dependency chunks are unsigned non-shipping transport assets in the same BAR.
  • Normal and genuine *.symbols.nupkg packages share the nuget pipeline artifact. Transport packages never receive symbol blobs.
  • Arcade-standard PackageArtifacts, BlobArtifacts, AssetManifests, and ReleaseConfigs remain the BAR/feed/symbol handoff.
  • Arcade V3 classifies *.symbols.nupkg entries as <Blob Category="Symbols">. During promotion it extracts supported payloads, uploads them with symbol.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

  • Main/release builds real-sign shipping packages through Arcade and validate signatures and byte-level payload fidelity.
  • Non-shipping transport packages are excluded from signing through eng/SignCheckExclusionsFile.txt and verified unsigned and byte-identical.
  • Repository-owned API Scan prepares documented Win32/WinUI/NanoServer surrogates and consumes the unified package artifact.
  • Official builds use 1ES templates with network isolation currently in Audit while permanent mirrors/allowlisting are completed.
  • Repository SDK/container and Apple/WinUI toolchain pins are aligned with the supported build environments.

Arcade / Darc / Maestro

  • Arcade V3 registers one manifest containing shipping packages, non-shipping transport packages, and symbol blobs in one BAR.
  • publishAssetsImmediately: false uses standard Darc promotion; requireDefaultChannels: true fails closed when Maestro has no branch mapping.
  • NuGet.org publication remains a separate protected operation; Maestro channel promotion is not a public release.

Azure counterpart: dnceng PR 63954.

Related issues

N/A.

Required skia PR

None.

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update
  • Views & integrations
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

None. There are no public API, rendering, or runtime product behavior changes.

Testing

  • Current stacked head: 9a72f21aff01551ba1a9d1f02b5bc0fc74226036, based directly on Generate Apple native symbol packages during pack #4846 head 6cc1550bed175aa397485f92dab752070d2f3d4b.
  • GitHub and dnceng Azure Repos point to the same commit.
  • Signing/payload, unsigned transport, package staging, API Scan preparation, build identity, Cake graph, and cache coverage regression suites pass.
  • Prior dnceng runs proved real signing, API Scan, BAR registration, standard Darc promotion, General Testing publication, and Android module/DBG retrieval from MSDL and SymWeb. The final exact stacked-head run is the remaining CI gate.

Remaining before merge:

  1. Exact internal Build 1642 must pass with real signing, API Scan, BAR registration, and Darc promotion.
  2. The resulting BAR/promotion logs must show successful Arcade symbol request upload, finalization, and registration.
  3. Exact downstream Tests 1630 must pass against those Build artifacts.
  4. Public CI and human review must pass.

External cutover prerequisites:

  • Provision permanent skiasharp and skiasharp-transport routing for shipping/non-shipping packages and symbol targets.
  • Add default-channel mappings for main and intended release branches.
  • Move network isolation from Audit to Enforce after mirrors/allowlisting.
  • Retire obsolete definition 1641 after the new chain is proven.

Checklist

  • Tests added or updated
  • Changes above lists all public API and behavioral changes
  • New/changed public API? N/A
  • Native change? No Skia/C API change or companion mono/skia PR required

@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4803

PowerShell / 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-4803
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-4803

@github-actions

github-actions Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4803

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 34 slower · 🟢 44 faster

  • 🔴 RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) · Windows · 97.22 µs → 133.89 µs (+38%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 1024) · Windows · 16.07 µs → 20.84 µs (+30%)
  • 🟢 ColorMathBenchmark.ToColor(Colors: 4096) · Linux · 10.66 µs → 7.60 µs (-29%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 64) · Windows · 1.52 µs → 1.93 µs (+27%)
  • 🔴 RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) · macOS · 67.96 µs → 84.42 µs (+24%)
  • …and 73 more (see details below)

📦 Allocations — 🔴 1 more alloc · 🟢 0 less alloc

  • 🔴 RuntimeEffectShaderBenchmark.DrawFrame · Linux · 686 B → 733 B (+7%)
Full per-OS benchmark deltas

Linux

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

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 10.66 µs 7.60 µs 🟢 -29%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 247.18 µs 191.09 µs 🟢 -23%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 329.22 µs 261.21 µs 🟢 -21%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.24 ms 985.23 µs 🟢 -20%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 897.62 µs 715.84 µs 🟢 -20%
MatrixOpsBenchmark.Concat(Count: 4096) 195.06 µs 155.95 µs 🟢 -20%
ColorParseBenchmark.Parse(Iterations: 1000) 59.81 µs 48.28 µs 🟢 -19%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 223.81 µs 181.49 µs 🟢 -19%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 12.73 µs 10.36 µs 🟢 -19%
MatrixMapPointsBenchmark.MapRect(Points: 256) 11.54 µs 9.44 µs 🟢 -18%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 182.92 µs 150.37 µs 🟢 -18%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 641.22 µs 530.79 µs 🟢 -17%
ColorMathBenchmark.PreMultiply(Colors: 4096) 9.27 µs 7.69 µs 🟢 -17%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 199.17 µs 165.26 µs 🟢 -17%
RuntimeEffectShaderBenchmark.DrawFrame 5.02 ms 4.17 ms 🟢 -17%
CanvasDrawBenchmark.Draw(Shapes: 64) 4.67 ms 3.88 ms 🟢 -17%
MatrixMapPointsBenchmark.MapVector(Points: 256) 10.09 µs 8.40 µs 🟢 -17%
CanvasDrawBenchmark.Draw(Shapes: 512) 37.35 ms 31.09 ms 🟢 -17%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.39 ms 2.00 ms 🟢 -16%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 159.58 µs 133.49 µs 🟢 -16%
PathBoundsBenchmark.TightBounds(Points: 64) 892.7 ns 748.2 ns 🟢 -16%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 27.03 ms 22.68 ms 🟢 -16%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 5.79 ms 4.88 ms 🟢 -16%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 8.19 µs 6.90 µs 🟢 -16%
MatrixOpsBenchmark.Invert(Count: 4096) 106.38 µs 89.66 µs 🟢 -16%
…and 8 more

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

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 686 B 733 B 🔴 +7%

Windows

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

Benchmark baseline this PR Δ
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 97.22 µs 133.89 µs 🔴 +38%
PathBoundsBenchmark.TightBounds(Points: 1024) 16.07 µs 20.84 µs 🔴 +30%
PathBoundsBenchmark.TightBounds(Points: 64) 1.52 µs 1.93 µs 🔴 +27%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 244.52 µs 302.56 µs 🔴 +24%
MatrixMapPointsBenchmark.MapVector(Points: 256) 7.55 µs 8.82 µs 🔴 +17%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 9.03 µs 10.51 µs 🔴 +16%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.57 µs 2.23 µs 🟢 -13%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.03 ms 23.73 ms 🔴 +13%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 198.1 ns 172.7 ns 🟢 -13%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.20 µs 8.09 µs 🔴 +12%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.64 ms 2.95 ms 🔴 +12%
ColorParseBenchmark.Parse(Iterations: 1000) 75.87 µs 84.72 µs 🔴 +12%
MatrixOpsBenchmark.Concat(Count: 4096) 235.50 µs 258.12 µs 🔴 +10%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.23 ms 1.34 ms 🔴 +10%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 328.96 µs 359.49 µs 🔴 +9%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 118.52 µs 129.01 µs 🔴 +9%
MatrixOpsBenchmark.Invert(Count: 4096) 129.83 µs 139.66 µs 🔴 +8%
ColorMathBenchmark.ToColor(Colors: 4096) 14.90 µs 15.88 µs 🔴 +7%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 909.51 µs 966.92 µs 🔴 +6%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 131.72 µs 139.73 µs 🔴 +6%

macOS

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

Benchmark baseline this PR Δ
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 67.96 µs 84.42 µs 🔴 +24%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.24 ms 2.46 ms 🟢 -24%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 191.46 µs 230.80 µs 🔴 +21%
CanvasDrawBenchmark.Draw(Shapes: 512) 12.10 ms 14.52 ms 🔴 +20%
MatrixOpsBenchmark.Invert(Count: 4096) 82.67 µs 66.88 µs 🟢 -19%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 7.07 ms 5.78 ms 🟢 -18%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 977.08 µs 801.77 µs 🟢 -18%
PathBoundsBenchmark.TightBounds(Points: 64) 1.14 µs 948.8 ns 🟢 -17%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 260.78 µs 301.17 µs 🔴 +15%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.64 ms 1.87 ms 🔴 +14%
RuntimeEffectShaderBenchmark.DrawFrame 512.67 µs 581.84 µs 🔴 +13%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 162.49 µs 184.12 µs 🔴 +13%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.45 ms 1.63 ms 🔴 +13%
ColorParseBenchmark.Parse(Iterations: 1000) 68.48 µs 76.73 µs 🔴 +12%
ColorMathBenchmark.ToColorF(Colors: 4096) 5.53 µs 6.19 µs 🔴 +12%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 161.0 ns 179.8 ns 🔴 +12%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 54.79 µs 60.70 µs 🔴 +11%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.38 µs 3.67 µs 🔴 +8%
MatrixOpsBenchmark.Concat(Count: 4096) 142.93 µs 130.93 µs 🟢 -8%
ColorMathBenchmark.ToColor(Colors: 4096) 22.40 µs 20.60 µs 🟢 -8%
ColorMathBenchmark.PreMultiply(Colors: 4096) 9.45 µs 10.11 µs 🔴 +7%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 6.78 µs 7.24 µs 🔴 +7%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 5.43 ms 5.75 ms 🔴 +6%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.77 µs 10.13 µs 🟢 -6%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 20.27 µs 19.22 µs 🟢 -5%

📈 Full interactive perf-dashboard & run details →

@github-actions

github-actions Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

📦 Artifact size report

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

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

Packages

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

Package baseline this PR Δ Δ%
SkiaSharp.NativeAssets.WinUI 109.1 MB 108.4 MB 🟢 −649.6 KB -0.6%
SkiaSharp.NativeAssets.WebAssembly 69.7 MB 69.7 MB 🔴 +87.2 KB +0.1%

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

Per-file changes

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.4 MB (🟢 −80.0 KB)

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

Base automatically changed from mattleibow-dev/arcade-bootstrap to main August 18, 2026 12:14
@mattleibow
mattleibow force-pushed the dev/dnceng-pipelines branch from 14e290a to 08fa356 Compare August 18, 2026 12:22
@mattleibow mattleibow changed the title Dev/dnceng pipelines Migrate CI to dnceng with API Scan, signing, and BAR publishing Aug 18, 2026
@mattleibow
mattleibow marked this pull request as ready for review August 18, 2026 12:35
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.props policy.
  • Updates SDK/tooling baseline to .NET SDK 10.0.400 and 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.

Comment thread scripts/infra/caching/repo-deps.json Resolved
Comment thread global.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Permissive policy, 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>

@mattleibow mattleibow mentioned this pull request Aug 21, 2026
7 of 14 tasks
@mattleibow mattleibow changed the title Migrate CI to dnceng with API Scan, signing, and BAR publishing Migrate CI to dnceng with Arcade publishing and Android symbols Aug 21, 2026
@mattleibow mattleibow changed the title Migrate CI to dnceng with Arcade publishing and Android symbols Migrate CI to dnceng with Arcade shipping, transport, and Android symbols Aug 21, 2026
mattleibow added a commit that referenced this pull request Aug 22, 2026
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]>
Copilot AI added 8 commits August 22, 2026 10:59
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
@mattleibow
mattleibow changed the base branch from main to mattleibow-validate-native-symbol-packages August 24, 2026 18:15
Copilot AI added 7 commits August 25, 2026 20:06
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
Base automatically changed from mattleibow-apple-symbol-packaging-7c4 to main August 25, 2026 19:23
Copilot AI added 6 commits August 25, 2026 21:28
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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 52 out of 52 changed files in this pull request and generated 4 comments.

// 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")]
Comment on lines +211 to +215
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.
Comment on lines +347 to +350
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
@mattleibow
mattleibow merged commit 2dd5087 into main Aug 26, 2026
116 checks passed
@mattleibow
mattleibow deleted the dev/dnceng-pipelines branch August 26, 2026 16:01
pull Bot pushed a commit to jnnycn007/SkiaSharp that referenced this pull request Aug 26, 2026
## 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)
mattleibow added a commit that referenced this pull request Aug 26, 2026
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]>
mattleibow added a commit that referenced this pull request Aug 28, 2026
[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]>
mattleibow added a commit that referenced this pull request Sep 1, 2026
[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]>
@github-actions github-actions Bot added this to the 4.152.0-rc.1 milestone Sep 7, 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.

3 participants