Skip to content

Migrate release tooling to dnceng BAR flow - #4859

Closed
mattleibow wants to merge 28 commits into
mainfrom
mattleibow-migrate-release-tooling
Closed

mattleibow wants to merge 28 commits into
mainfrom
mattleibow-migrate-release-tooling

Conversation

@mattleibow

@mattleibow mattleibow commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Update SkiaSharp's repository-owned release tooling to the current dnceng/internal Arcade flow.

Exact base/head: 6386960c2a4fddf0e68a8815856cbb7470deefce → 8f5b950532c224babc0122772cd11327e08de4dd (28 commits, 39 files).

The release workflow pins one exact source commit, Build 1642 run, API Scan stage, connected Tests 1630 run, BAR ID, Shipping/NonShipping versions, and approved .NET Libraries routing. Stable packages use exact X.Y.Z.

Shipping assets must exist only on dotnet-libraries; _NativeAssets and _NuGets must exist only on dotnet-libraries-transport. BAR locations are used when available. When omitted, release status verifies each exact version on the expected feed and proves it is absent from the opposite feed.

Release branches automatically sign and register BAR, but API Scan is separate. Release status requires a successful api_scan stage and instructs the operator to queue with runApiScan=true when absent.

NuGet.org publication is currently manual. The detector emits repository owner mono, repository name SkiaSharp, and the exact tested commit SHA. After manual publication, rerun detection; tag/draft creation remains blocked until both exact public versions are indexed.

Component Governance scans and the new CG portal are in dnceng/internal: https://dev.azure.com/dnceng/internal/_componentGovernance/dotnet-SkiaSharp. TSA work ownership remains DevDiv\.NET MAUI\SkiaSharp.

Related issues

Related to #4803

Required skia PR

None.

Areas affected

  • Managed API
  • Native / C API
  • Generated bindings
  • Native dependency / Skia update
  • Views & integrations
  • Rendering output
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

None — release tooling and CI/documentation only; no public API or rendering behavior changes.

Testing

  • 153 focused behavioral Python tests: release-branch 26, release-status 32, release-testing 34, release-publish 38, release-milestones 23.
  • All 7 skill validators; Python compilation; JSON/XML/HTML parsing; clean diff.
  • SetBuildVariables, API Scan input, Cake Arcade asset/traversal/exit-state, and repo-dependency coverage contracts.
  • Full BAR 328825 audit: 41 Shipping, 22 NonShipping, zero missing/cross-feed assets.
  • Prior exact-head public Build 1569695 and GitHub workflows succeeded; replacement CI is queued after the CG URL-only update.

Scope

Independent Opus reviews reduced the PR from 53 to 39 files by removing rollout history, hard-coded release versions, redundant literal/current-tree tests, optional benchmark migration, obsolete feed-mirror changes, unsupported publisher automation, and the unused latestFromBranch release prerequisite. The downloader cleanup is separate PR #4883.

No release action, NuGet.org publication, merge, or auto-merge was performed.

Checklist

  • Tests added or updated
  • Changes lists all public API/behavioral changes (None)
  • New/changed public API? N/A
  • Native change? N/A

@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 -- 4859

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4859

⭐ 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 — 🔴 36 slower · 🟢 42 faster

  • 🟢 BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) · Windows · 2.33 ms → 926.23 µs (-60%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 256) · macOS · 140.0 ns → 200.4 ns (+43%)
  • 🟢 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Linux · 4.20 µs → 2.57 µs (-39%)
  • 🔴 MatrixMapPointsBenchmark.MapRect(Points: 256) · macOS · 3.25 µs → 4.43 µs (+36%)
  • 🟢 MatrixMapPointsBenchmark.MapPoints(Points: 256) · Linux · 318.3 ns → 214.0 ns (-33%)
  • …and 73 more (see details below)

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

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

Linux

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

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 4.20 µs 2.57 µs 🟢 -39%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 318.3 ns 214.0 ns 🟢 -33%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 9.39 µs 7.89 µs 🟢 -16%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 6.78 ms 5.74 ms 🟢 -15%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 378.54 µs 320.52 µs 🟢 -15%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 31.46 ms 26.67 ms 🟢 -15%
CanvasDrawBenchmark.Draw(Shapes: 64) 5.38 ms 4.56 ms 🟢 -15%
CanvasDrawBenchmark.Draw(Shapes: 512) 42.87 ms 36.47 ms 🟢 -15%
ColorMathBenchmark.PreMultiply(Colors: 4096) 10.55 µs 8.99 µs 🟢 -15%
ColorMathBenchmark.ToColor(Colors: 4096) 12.24 µs 10.45 µs 🟢 -15%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.38 µs 8.86 µs 🟢 -15%
ColorMathBenchmark.ToColorF(Colors: 4096) 14.88 µs 12.72 µs 🟢 -15%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 1.03 ms 883.40 µs 🟢 -15%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 277.27 µs 237.18 µs 🟢 -14%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.42 ms 1.22 ms 🟢 -14%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 8.64 ms 7.40 ms 🟢 -14%
RuntimeEffectShaderBenchmark.DrawFrame 5.77 ms 4.95 ms 🟢 -14%
MatrixOpsBenchmark.Invert(Count: 4096) 124.70 µs 107.33 µs 🟢 -14%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 212.09 µs 183.10 µs 🟢 -14%
PathBoundsBenchmark.TightBounds(Points: 64) 1.03 µs 888.8 ns 🟢 -13%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 253.80 µs 219.61 µs 🟢 -13%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 184.59 µs 159.88 µs 🟢 -13%
MatrixOpsBenchmark.Concat(Count: 4096) 217.63 µs 190.51 µs 🟢 -12%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 230.70 µs 202.07 µs 🟢 -12%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 110.84 µs 97.22 µs 🟢 -12%
…and 7 more

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

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 686 B 730 B 🔴 +6%

Windows

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

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 2.33 ms 926.23 µs 🟢 -60%
PathBoundsBenchmark.TightBounds(Points: 64) 1.50 µs 1.96 µs 🔴 +31%
PathBoundsBenchmark.TightBounds(Points: 1024) 15.71 µs 20.54 µs 🔴 +31%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 100.52 µs 126.70 µs 🔴 +26%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.89 µs 10.31 µs 🔴 +16%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 143.28 µs 166.03 µs 🔴 +16%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 121.09 µs 138.28 µs 🔴 +14%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 252.95 µs 288.83 µs 🔴 +14%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.64 ms 2.97 ms 🔴 +12%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.19 ms 23.61 ms 🔴 +11%
MatrixOpsBenchmark.Concat(Count: 4096) 234.28 µs 259.37 µs 🔴 +11%
ColorParseBenchmark.Parse(Iterations: 1000) 75.81 µs 83.84 µs 🔴 +11%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 117.07 µs 128.38 µs 🔴 +10%
MatrixOpsBenchmark.Invert(Count: 4096) 128.87 µs 141.20 µs 🔴 +10%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.18 µs 8.89 µs 🔴 +9%
ColorMathBenchmark.ToColor(Colors: 4096) 15.56 µs 16.92 µs 🔴 +9%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.23 ms 1.32 ms 🔴 +7%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.54 µs 7.98 µs 🔴 +6%

macOS

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

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 256) 140.0 ns 200.4 ns 🔴 +43%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.25 µs 4.43 µs 🔴 +36%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.95 ms 2.21 ms 🟢 -25%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 166.06 µs 204.08 µs 🔴 +23%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 5.89 ms 7.22 ms 🔴 +23%
MatrixOpsBenchmark.Invert(Count: 4096) 74.16 µs 58.27 µs 🟢 -21%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 720.58 µs 567.21 µs 🟢 -21%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 301.66 µs 237.60 µs 🟢 -21%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 767.23 µs 896.92 µs 🔴 +17%
RuntimeEffectShaderBenchmark.DrawFrame 574.58 µs 669.57 µs 🔴 +17%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 59.44 µs 50.35 µs 🟢 -15%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 80.39 µs 91.39 µs 🔴 +14%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 197.37 µs 222.89 µs 🔴 +13%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.91 µs 2.14 µs 🔴 +12%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.21 µs 1.36 µs 🔴 +12%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.53 ms 1.36 ms 🟢 -11%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.84 µs 3.14 µs 🔴 +10%
ColorMathBenchmark.ToColorF(Colors: 4096) 5.19 µs 5.71 µs 🔴 +10%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 43.62 µs 39.56 µs 🟢 -9%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.35 ms 1.48 ms 🔴 +9%
ColorMathBenchmark.PreMultiply(Colors: 4096) 9.11 µs 9.90 µs 🔴 +9%
ColorMathBenchmark.ToColor(Colors: 4096) 19.84 µs 21.42 µs 🔴 +8%
CanvasDrawBenchmark.Draw(Shapes: 512) 12.74 ms 13.72 ms 🔴 +8%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.54 ms 1.66 ms 🔴 +8%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 7.12 µs 7.67 µs 🔴 +8%
…and 3 more

📈 Full interactive perf-dashboard & run details →

@mattleibow
mattleibow force-pushed the mattleibow-migrate-release-tooling branch from 5a69720 to d321657 Compare August 25, 2026 03:04
@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.

@mattleibow
mattleibow force-pushed the mattleibow-migrate-release-tooling branch 2 times, most recently from 7c5dc8c to c41ad76 Compare August 25, 2026 12:18
@mattleibow
mattleibow force-pushed the mattleibow-migrate-release-tooling branch 8 times, most recently from 46b3feb to 347aa62 Compare August 25, 2026 20:52
@mattleibow mattleibow mentioned this pull request Aug 26, 2026
5 tasks done
mattleibow added a commit that referenced this pull request Aug 26, 2026
Migrate CI to dnceng with Arcade shipping and transport (#4803)

Context: #4775
Context: #4800
Context: #4801
Context: #4802
Context: #4838
Context: #4842
Context: #4846
Context: #4859
Context: https://dev.azure.com/dnceng/internal/_git/dotnet-SkiaSharp/pullrequest/63954
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3057398

Replace the legacy DevDiv Native -> Managed -> Tests chain with repository-owned
dnceng pipelines and a standard Arcade V3 package flow. Keep public validation
unsigned, reserve protected identities for internal signing, scanning, BAR
registration, and promotion, and leave the binding, native, and runtime product
surface unchanged.

~~ Connected dnceng topology ~~

The split Native and Package definitions handed artifacts across independently
numbered runs, which made source, package, and test provenance harder to keep
connected. Make internal definition 1642 own Prepare, Native, and Package in one
Build run, and make Tests 1630 consume the folder-qualified
`\dotnet\skiasharp\skiasharp-package` resource. Trigger 1642 directly for
`main` and `release/*` path changes, plus a daily main schedule, instead of
waiting for completion of a separate Native pipeline.

Remove the obsolete native-only and internal-complete YAML roots, and derive
managed, test, and sample dependencies from the shared build/test pipeline role.
Public definition 345 and downstream Tests 1630 keep those shared stages through
the local output adapter; for public CI this avoids the inaccessible private 1ES
template repository. Expansion guards require the internal project, a non-PR
reason, and a non-PR ref before signing, compliance, or publishing stages can
exist.

~~ dnceng execution policy ~~

Move the internal root from the DevDiv MicroBuild 1ES template to the released
v1 1ES Official template, and move its Windows and Linux agents to
NetCore1ESPool-Internal. Apple jobs remain on Microsoft-hosted macOS images.
Armory, BinSkim, CredScan, ESLint, PoliCheck, and PSScriptAnalyzer are
configured to break; CodeQL also runs on non-default branches. Network
isolation remains in Audit while permanent mirrors and allowlisting are
completed.

The combined root carries forward the managed Apple macOS 15/Xcode 26.3 and
native Apple macOS 14/Xcode 16.2 split. The repository remains on SDK 10.0.203
and workload set 10.0.202, but Visual Studio MSBuild 17.x cannot load .NET
10.0.2xx. Install `DOTNET_VERSION_WINUI` (10.0.108) side by side on the three
WinUI C++/WinRT jobs. Build and merge the MSVC Win32 artifacts unconditionally,
dropping the former `System.TeamProject == 'devdiv'` gate.

~~ Provider-neutral build identity ~~

Replace feature-name and loosely parsed downstream counters with Arcade's
`yyyyMMdd.revision` OfficialBuildId, converted to the existing
`short-date.revision` package suffix. Normalize GitHub and Azure Repos PR
numbers, source commits, source branches, and repository URLs before packing;
fail when required identity is absent or an inherited Build run name is
malformed.

PR builds use `pr.<number>`, scheduled builds use `nightly`, and ordinary builds
retain their source-controlled label. A producing pipeline may select the
`stable` sentinel only on an internal `release/*` branch; it clears the suffix
to produce exact `X.Y.Z` packages. Downstream Tests inherit the selected Build
run name, including an exact-release identity, rather than generating a second
identity.

Each run creates one transport alias family as well: PR aliases for PR
validation and branch aliases otherwise. Remove commit aliases so one BAR cannot
receive multiple versions of the same transport package ID. Package outputs are
not cached because their versions and transport family depend on run identity,
not only repository inputs.

~~ Deterministic Arcade package inputs ~~

Replace the separate normal and special packaging jobs, and the stable, preview,
and symbol transport variants they produced, with one Cake graph in a single
`package_windows` job. It publishes raw `nuget` and `nuget_special` artifacts
plus prepared `arcade_shipping`, `arcade_nonshipping`, and `PdbArtifacts`
inputs. Shipping contains product and explicit symbol packages; NonShipping
contains the run's single `_NuGets`/`_NativeAssets*` transport family.
`_NuGets` uses numbered dependency packages to keep each payload chunk near
200 MB.

Arcade V3 expects `PdbArtifacts`, so provide real loose symbols rather than a
permanent placeholder or manufactured fallback packages. For product packages
without an explicit symbol package, extract implementation and runtime PDBs
under package/version/TFM/RID paths. Exclude `ref/**`, reject ZIP paths that
escape the package root, avoid loose-PDB duplication for packages with explicit
symbols, and emit `.empty` only when no eligible PDB exists. Consume the Apple
symbol packages introduced by #4846 instead of manufacturing fallback copies.

The public PR downloaders now query definition 345 by exact PR merge ref,
consume the canonical `nuget` artifact, exclude `.symbols.nupkg`, and use
isolated temp directories. Documentation and sample generation select the
single package family instead of assuming stable and preview packages coexist.

The exact 3057398 artifact audit matched raw and prepared package payloads,
contained 209 path-safe loose PDBs, and confirmed that the Package stage emitted
only the five contract artifacts, with no `package_windows` artifact.

~~ Self-verifying build logic ~~

Build identity, API Scan input preparation, and Arcade asset assembly encode
release constraints that would otherwise fail only in later or protected
stages. Add dedicated suites for each and run them as pipeline gates rather than
relying on YAML string checks or post-release inspection.

Prepare runs `SetBuildVariables.Tests.ps1` and
`PrepareApiScanInputs.Tests.ps1` before product stages, so identity failures and
API Scan input drift are caught even when API Scan does not expand. Package runs
`AssembleArcadeAssets.Tests.ps1` after packing against real ZIP fixtures,
proving PDB extraction, `ref/**` exclusion, traversal rejection,
explicit-symbol ownership, PR/branch transport selection, and `.empty` fallback
on each run.

~~ Shipping-only signing ~~

Replace the legacy SignList and Arcade defaults with the explicit policy in
`eng/Signing.props`. Any new signable payload must be added to one of its
first-party, Mac developer, third-party, or skipped classifications for signing
validation to succeed. First-party binaries use the repository's certificate
mappings and skip the third-party copyright check because they intentionally
lack Microsoft copyright metadata.

Only prepared Shipping NuGets enter Arcade signing; product and explicit symbol
packages are signed together. `eng/SignCheckExclusionsFile.txt` marks
NonShipping transport `DO-NOT-SIGN, DO-NOT-UNPACK` and marks JavaScript and
generated WebGPU payloads `DO-NOT-SIGN`; those payloads use
`CertificateName=None` and remain authenticated by their signed NuGet container.
`DO-NOT-SIGN` is fail-closed, so SignCheck fails if a listed file is ever
signed.

Main and release branches select real signing automatically. Other trusted
internal branches test-sign unless `forceRealSigning` is requested, and forced
BAR side effects additionally require `registerInBar`. Use standard Arcade
SignTool and SignCheck validation rather than retaining the migration
prototype's duplicate recursive verifier.

~~ API Scan input coverage ~~

Move API Scan into a repository-owned internal stage that downloads the current
`nuget` and `native_msvc` artifacts, authenticates through the dedicated WIF
connection, and runs in release mode. Package extraction preserves symbols and
builds checked surrogates for Win32, NanoServer, and WinUI, including shipped
ARM64 binaries that require API-compatible x64 MSVC inputs. Use the same HTTPS
SymWeb symbol path in the scan task and generated surrogate configuration.

Input preparation fails when packages, binaries, PDBs, surrogate files, or
configured target matches are absent. Reporting, TSA upload, and PostAnalysis
use Note-level API Scan policy; raw logs are published for audit. The stage runs
when explicitly requested and on scheduled main builds, independently of BAR
registration.

~~ BAR registration and promotion ~~

Generate one Arcade V3 manifest from signed Shipping and prepared NonShipping
artifacts, with explicit symbol blobs and the standard PDB artifact alongside
it. Protected registration is structurally limited to non-PR internal builds.
Main and release branches register automatically; a forced feature-branch run
must opt into both real signing and BAR registration.

Use standard post-build validation with `publishAssetsImmediately: false` and
`requireDefaultChannels: true`, so a missing Maestro mapping fails closed and
Darc performs configured channel promotion only after asset publication
finishes. NuGet.org publication remains a separate protected operation; #4859
carries the release-tooling adaptation to this BAR model.

Exact Build 3057398 completed real signing, Note-level API Scan, BAR
registration, asset validation, and Darc promotion. BAR 328638 reached General
Testing with 41 shipping package assets, 22 non-shipping transport assets, 14
symbol blobs, and one manifest, with no recorded incoherencies or staleness.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Base automatically changed from dev/dnceng-pipelines to main August 26, 2026 16:00
@mattleibow
mattleibow force-pushed the mattleibow-migrate-release-tooling branch from 347aa62 to d232071 Compare August 26, 2026 17:20
Copilot AI added 9 commits August 27, 2026 00:16
Replace DevDiv pipeline selectors with the combined dnceng Build and connected Tests topology, carry immutable BAR identities and asset locations through testing and publication, enforce exact stable versions, and fail closed until a protected NuGet.org publisher is configured.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Treat standard default-channel promotion as upstream pipeline behavior and gate release readiness on immutable BAR asset locations rather than a hardcoded channel name or manual promotion command.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Classify historical maintenance and exact release branches, verify the minimum backport surface from target commits, require default-channel and signed-feed BAR evidence, and preserve immutable RC/stable publication handoffs without assuming main-only features.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Treat the historical artifact helper's fail-closed latestFromBranch rejection as part of the minimum Arcade release backport before selecting any Build, Tests, or BAR identity.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Target the immediate untagged 4.150.3 and 4.151.2 snapshots, require branch-only NonShipping transport staging, and reject BAR or publication handoffs that expose duplicate transport package identities.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Fail historical release prerequisites when download.cake prefers commit aliases over the branch identity promoted as the unique NonShipping BAR asset.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Document 4.150.x and 4.151.x as migration inputs that cut exact 4.150.4 and 4.151.3 children, while 4.152 RC1 remains an exact release target.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Update the historical migration prerequisite to verify branch-only NonShipping transport staging in the tested assemble-arcade-assets script introduced by the real PDB publishing flow.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Copilot AI added 12 commits August 27, 2026 00:16
Require historical asset assemblers to preserve explicit symbol ownership, extract safe package-path loose PDBs, exclude reference symbols, and emit the PdbArtifacts sentinel only when empty.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Replace retired PowerShell assembler prerequisites with the uncached aggregate Cake/public artifact graph and signed-only internal publish_assets BAR flow.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Require the nuget-assemble-arcade-assets task and repository SDK setup before Prepare restores Cake tools and validates public artifact assembly.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Fail historical prerequisites when PDB assembly uses System.IO.Path or lacks collapsed Cake paths, relative containment, and an escaping-entry failure contract.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Treat the public traversal rejection contract as incomplete unless it resets global LASTEXITCODE after proving the escaping archive entry fails safely.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Require focused tool-free Prepare validation, Package post-build Cake behavior tests, and exactly one PR-or-branch transport family without commit aliases or fallback filtering.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Accept PACKAGE_OUTPUT_PATH on release lines with native Cake globals while requiring the same outputPath argument and derived package directory contract used by source/main.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Classify legacy package-root spellings as migration-required and require ROOT_OUTPUT_PATH to own outputPath and every derived package directory across source and release lines.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Accept Azure's short-name-plus-folder and full folder-qualified runtime resource representations while still requiring the exact skiasharp-package path, run, and build number.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Require the .NET Libraries product channel and asset-class feed routing, validate newly queued publisher runs before approval, and remove remaining operational EAP/feed assumptions. Add fail-closed routing, migration-marker, and TSA regressions across release tooling and package consumers.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Keep .NET Libraries as the Maestro product channel while retaining the populated skiasharp feed for signed/nightly packages and the repository's skiasharp-transport contract. This restores benchmark role resolution and keeps historical migration markers independent of Apple symbols.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Require .NET Libraries channel 1648 with BAR-recorded dotnet-libraries Shipping and dotnet-libraries-transport NonShipping locations. Keep the legacy product feed isolated to a primary-first nightly telemetry bridge, align benchmark source downloads with the shared transport feed, and require dnceng/internal TSA ownership on historical release lines.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

📦 Artifact size report

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

Total .nupkg size: 569.6 MB → 569.2 MB (−503.9 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.5 MB 🟢 −614.3 KB -0.5%
SkiaSharp.NativeAssets.WebAssembly 69.7 MB 69.7 MB 🔴 +63.2 KB +0.1%

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

Per-file changes

SkiaSharp.NativeAssets.WinUI

File Size
runtimes/win-arm64/native/libGLESv2.pdb 64.5 MB → 64.4 MB (🟢 −128.0 KB)
runtimes/win-x64/native/libGLESv2.pdb 66.6 MB → 66.5 MB (🟢 −128.0 KB)
runtimes/win-x86/native/libGLESv2.pdb 67.3 MB → 67.2 MB (🟢 −96.0 KB)

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

Record that release branches inherit Arcade servicing pools through provider variables, and add a repository contract proving release automation does not mutate or override pipeline pool selection.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
@mattleibow
mattleibow force-pushed the mattleibow-migrate-release-tooling branch from bf0fec4 to d82d374 Compare August 26, 2026 22:21
Copilot AI added 6 commits August 27, 2026 01:53
Keep TSA work ownership in DevDiv, remove redundant benchmark feed contracts, and make release readiness use BAR locations when available or exact approved-feed package probes when Darc build records omit them. Verify both Shipping and NonShipping assets fail closed.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Remove investigation-specific prose, redundant literal tests, optional benchmark migration, and obsolete feed-mirror changes. Restore the DevDiv CG portal as the alert surface, retain dnceng Build as scan source, and enforce strict product/transport feed separation for BAR assets.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Remove migration-era terminology and unsupported publisher pipeline automation. Emit only the manual publisher owner, repository, and tested commit SHA, and proceed to tag/draft creation only after both exact NuGet.org versions are indexed.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Release branches sign and register BAR automatically, but API Scan still requires runApiScan=true. Surface missing, failed, running, and unreadable scan states so release testing cannot start without successful API Scan evidence.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
The dnceng pipelines use the current Build ID or exact Tests pipeline resource and no caller supplies sourceBuildId=latest. Keep the active artifact downloader unchanged and remove this dead historical selector from release readiness.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
Point security-audit documentation and the viewer at the new dnceng/internal dotnet-SkiaSharp registration, removing obsolete DevDiv registration and alert IDs.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0e78b2a-a022-4064-8ebd-b3d417dde84e
@mattleibow

Copy link
Copy Markdown
Contributor Author

Superseded by #4889, which ports the retained behavior onto a fresh main-based branch and replaces the manual release-skill chain with the reviewed Prepare/Finish workflow system. This PR will not be merged.

@mattleibow mattleibow closed this Aug 28, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants