Skip to content

Move public CI to dnceng agents and provision required tools - #4565

Merged
mattleibow merged 18 commits into
mainfrom
mattleibow-investigate-dnceng-agents
Jul 30, 2026
Merged

mattleibow merged 18 commits into
mainfrom
mattleibow-investigate-dnceng-agents

Conversation

@mattleibow

@mattleibow mattleibow commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Move eligible public CI jobs from Microsoft-hosted agents to the dnceng NetCore-Public pool and explicitly provision the tools that lean public images do not include.

Linux jobs now use build.ubuntu.2204.amd64.open, while managed Windows jobs use windows.vs2026.amd64.open. Jobs that require capabilities unavailable on those images remain on approved hosted agents: Android emulator tests need /dev/kvm, native Windows builds need the complete Visual Studio 2022 toolchain with Spectre-mitigated libraries, and native macOS moves to macOS 15 because dnceng has no macOS build-agent image. The generic Linux host metadata is also corrected from windows to linux.

Validation of the new images exposed several implicit hosted-agent dependencies. The shared bootstrapper now provisions Python, Node 20, Android platform/build tools, and Chrome where required; forwards the Android SDK path to MSBuild with the correct property casing; and reuses existing Ninja and 7-Zip installations before installing fallbacks. Direct Chrome and 7-Zip downloads are pinned and SHA-256 verified, with Chrome package identity, version, and architecture checked before installation.

Related issues

None.

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 (libpng, HarfBuzz, FreeType, zlib, milestone bump, …)
  • Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …)
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

None — CI-only, with no public API or application behavior change.

Testing

  • Parsed the updated Azure Pipelines YAML and verified the resulting pool/host matrix.
  • Syntax-checked the touched Bash and PowerShell provisioning scripts.
  • Independently downloaded and verified the pinned Chrome and 7-Zip artifacts and package metadata.
  • Exercised the migrated native, managed, test, sample, and packaging jobs through successive dnceng validations; build 1531914 completed all stages successfully.

No product tests were added because this changes only CI infrastructure and provisioning.

Checklist

  • Tests added or updated (if omitted, explain why above)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? Filed a docs issue in mono/SkiaSharp-API-docs so reference docs can be written later — not applicable
  • Native change? Companion mono/skia PR linked above and bindings regenerated — not applicable

Move the public CI Linux and Windows jobs to NetCore-Public images, update the native macOS host to macOS 15, and correct the generic host OS metadata.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
@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 -- 4565

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

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

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4565

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

  • 🔴 BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) · macOS · 241.65 µs → 375.03 µs (+55%)
  • 🟢 ColorMathBenchmark.UnPreMultiply(Colors: 4096) · Linux · 12.95 µs → 6.82 µs (-47%)
  • 🟢 ColorMathBenchmark.PreMultiply(Colors: 4096) · Linux · 14.49 µs → 7.86 µs (-46%)
  • 🟢 MatrixOpsBenchmark.Invert(Count: 4096) · Linux · 149.99 µs → 89.72 µs (-40%)
  • 🟢 MatrixMapPointsBenchmark.MapPoint(Points: 256) · Linux · 5.08 µs → 3.10 µs (-39%)
  • …and 71 more (see details below)

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

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

Linux

⏱️ Time (vs 🌙 nightly 4.151.0-nightly.109)

Benchmark baseline this PR Δ
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 12.95 µs 6.82 µs 🟢 -47%
ColorMathBenchmark.PreMultiply(Colors: 4096) 14.49 µs 7.86 µs 🟢 -46%
MatrixOpsBenchmark.Invert(Count: 4096) 149.99 µs 89.72 µs 🟢 -40%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 5.08 µs 3.10 µs 🟢 -39%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 79.78 µs 49.46 µs 🟢 -38%
RuntimeEffectShaderBenchmark.DrawFrame 3.03 ms 4.17 ms 🔴 +38%
ColorParseBenchmark.Parse(Iterations: 1000) 76.86 µs 49.05 µs 🟢 -36%
MatrixOpsBenchmark.Concat(Count: 4096) 239.47 µs 155.63 µs 🟢 -35%
ColorMathBenchmark.ToColor(Colors: 4096) 11.65 µs 7.57 µs 🟢 -35%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 15.39 µs 10.41 µs 🟢 -32%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 248.02 µs 167.92 µs 🟢 -32%
MatrixMapPointsBenchmark.MapVector(Points: 256) 11.91 µs 8.22 µs 🟢 -31%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 190.16 µs 131.91 µs 🟢 -31%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.42 ms 988.85 µs 🟢 -30%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 376.95 µs 262.99 µs 🟢 -30%
PathBoundsBenchmark.TightBounds(Points: 1024) 11.14 µs 7.81 µs 🟢 -30%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.86 ms 2.02 ms 🟢 -29%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 735.61 µs 531.16 µs 🟢 -28%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 205.74 µs 149.91 µs 🟢 -27%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 262.23 µs 191.99 µs 🟢 -27%
PathBoundsBenchmark.TightBounds(Points: 64) 1.02 µs 744.3 ns 🟢 -27%
MatrixMapPointsBenchmark.MapRect(Points: 256) 12.86 µs 9.47 µs 🟢 -26%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 974.59 µs 724.23 µs 🟢 -26%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 237.04 µs 181.30 µs 🟢 -24%
ColorMathBenchmark.ToColorF(Colors: 4096) 14.02 µs 10.93 µs 🟢 -22%
…and 7 more

📦 Allocations (vs 🌙 nightly 4.151.0-nightly.109)

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 683 B 730 B 🔴 +7%

Windows

⏱️ Time (vs 🌙 nightly 4.151.0-nightly.109)

Benchmark baseline this PR Δ
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 95.87 µs 129.89 µs 🔴 +35%
PathBoundsBenchmark.TightBounds(Points: 1024) 15.39 µs 20.24 µs 🔴 +32%
PathBoundsBenchmark.TightBounds(Points: 64) 1.50 µs 1.89 µs 🔴 +26%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.91 µs 10.42 µs 🔴 +17%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 143.01 µs 167.21 µs 🔴 +17%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 255.35 µs 288.37 µs 🔴 +13%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 166.3 ns 187.2 ns 🔴 +13%
MatrixOpsBenchmark.Concat(Count: 4096) 224.37 µs 251.83 µs 🔴 +12%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.10 µs 2.28 µs 🔴 +9%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.15 µs 8.86 µs 🔴 +9%
ColorMathBenchmark.PreMultiply(Colors: 4096) 13.26 µs 14.25 µs 🔴 +7%
ColorParseBenchmark.Parse(Iterations: 1000) 77.21 µs 82.77 µs 🔴 +7%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 130.28 µs 139.34 µs 🔴 +7%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.39 µs 7.85 µs 🔴 +6%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 9.89 ms 10.43 ms 🔴 +5%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.79 ms 2.92 ms 🔴 +5%

macOS

⏱️ Time (vs 🌙 nightly 4.151.0-nightly.109)

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 241.65 µs 375.03 µs 🔴 +55%
PathBoundsBenchmark.TightBounds(Points: 64) 969.6 ns 1.24 µs 🔴 +28%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 169.05 µs 216.15 µs 🔴 +28%
RuntimeEffectShaderBenchmark.DrawFrame 581.47 µs 728.71 µs 🔴 +25%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 156.4 ns 191.8 ns 🔴 +23%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.19 ms 2.50 ms 🟢 -22%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.79 µs 2.17 µs 🔴 +21%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 78.74 µs 94.88 µs 🔴 +20%
PathBoundsBenchmark.TightBounds(Points: 1024) 8.87 µs 10.45 µs 🔴 +18%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 8.02 µs 9.30 µs 🔴 +16%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 757.58 µs 639.60 µs 🟢 -16%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 626.14 µs 720.25 µs 🔴 +15%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.26 µs 1.45 µs 🔴 +15%
ColorParseBenchmark.Parse(Iterations: 1000) 70.52 µs 80.47 µs 🔴 +14%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 747.24 µs 851.55 µs 🔴 +14%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.74 ms 1.51 ms 🟢 -13%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 52.75 µs 58.87 µs 🔴 +12%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 20.01 µs 21.99 µs 🔴 +10%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.31 µs 3.63 µs 🔴 +10%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.60 ms 5.96 ms 🟢 -10%
ColorMathBenchmark.PreMultiply(Colors: 4096) 9.14 µs 9.94 µs 🔴 +9%
CanvasDrawBenchmark.Draw(Shapes: 512) 12.07 ms 13.02 ms 🔴 +8%
MatrixOpsBenchmark.Invert(Count: 4096) 69.09 µs 74.51 µs 🔴 +8%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 112.61 µs 121.43 µs 🔴 +8%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 42.82 µs 46.03 µs 🔴 +7%
…and 3 more

📈 Full interactive perf-dashboard & run details →

NetCore-Public Windows images do not expose python3 on PATH by default. Activate the requested Python toolchain before cached jobs invoke repo-deps.py.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
NetCore-Public Ubuntu build agents do not expose /dev/kvm, so retain the hosted Ubuntu 24.04 agent required by the Android emulator.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

📦 Artifact size report

Packages from this PR (build 1532203) vs the latest nightly baseline 4.151.0-nightly.109 (observed 2026-07-29).

Total .nupkg size: 569.3 MB → 569.0 MB (−322.0 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.0 MB 108.6 MB 🟢 −444.7 KB -0.4%
SkiaSharp.NativeAssets.WebAssembly 69.6 MB 69.7 MB 🔴 +81.0 KB +0.1%

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

Per-file changes

SkiaSharp.NativeAssets.WinUI

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

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

NetCore-Public Ubuntu build images do not include a browser. Install Chrome and expose CHROME_PATH before the stable and preview browser-based WASM test jobs.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Activate Python before every job, install Android tooling when requested on Linux, and invoke the WASM Chrome provisioner through Bash. These prerequisites were previously supplied by Microsoft-hosted images.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Azure Pipelines normalizes task variables when exporting them on Linux. Pass the installed SDK paths explicitly so MSBuild receives the case-sensitive AndroidSdkDirectory property.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
The VS 2026 dnceng image includes Ninja but not Chocolatey. Avoid invoking the package manager when Ninja is already available on PATH.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Reuse 7-Zip from its standard installation path when available and update the removed 21.07 fallback package to the current official 26.02 release.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Pass the selected Visual Studio installation into Cake and install Windows SDK 19041 for native Windows jobs. The VS 2026 public image does not expose either prerequisite in the same way as hosted Windows 2022.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
The VS 2026 public image does not include the Spectre-mitigated libraries required by SkiaSharp's native Windows builds. Keep managed Windows on VS 2026 while using the compatible NetCore-Public VS 2022 image for native assets.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
SkiaSharp native Windows builds require the optional Spectre libraries that the lean VS 2022 and VS 2026 images omit. Use the NetCore-Public approved Windows 2022 hosted image for native assets while keeping managed jobs on VS 2026.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Install Node 20 for Windows managed and packaging jobs, and pass the Linux Android SDK root directly to MSBuild as AndroidSdkDirectory instead of relying on environment-name casing.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Xamarin.Android rejects an SDK root that contains only command-line tools and platform packages. Install platform-tools so managed Linux builds receive a complete, valid Android SDK.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Managed Android targets require aapt/aapt2 from the SDK Build-Tools packages. Install the matching Android 35 and 36 build tools alongside platform-tools and platform APIs.

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

Copilot-Session: f7862765-7850-4c1b-97ed-b69a5947e3fa
Use simctl directly and wait for CoreSimulator to confirm the device is booted. This lets the existing task retry recover from transient boot failures instead of hanging until the three-hour job timeout.

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

Copilot-Session: 47852a12-8636-48a0-8c9c-f3f9b3db8a60

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

This PR updates SkiaSharp’s public Azure DevOps CI to use dnceng NetCore-Public build agents for Linux and Windows legs (and moves macOS to macOS-15 on hosted agents), along with a few supporting bootstrap/provisioning tweaks needed for the new images.

Changes:

  • Migrate Linux/Windows jobs to NetCore-Public with ImageOverride demands, and correct the generic host agent os metadata to linux.
  • Improve provisioning robustness across the new agent images (early Python selection, ensure Ninja availability, ensure Android SDK path is passed through).
  • Add Chrome installation for Linux WASM test legs and adjust iOS simulator boot sequence to use xcrun simctl.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/azure-pipelines-complete.yml Switches public CI pools to NetCore-Public (Linux/Windows), updates macOS image to macos-15, fixes host os metadata.
scripts/azure-templates-jobs-bootstrapper.yml Moves Python selection earlier, adds Node install on Windows managed legs, expands Android SDK provisioning, and propagates Android env vars into Cake runs.
scripts/azure-templates-stages-test.yml Adds a pre-build step to install Chrome for WASM test legs on Linux.
scripts/infra/managed/install-chrome.sh New helper to install Google Chrome on Linux agents and expose its path.
scripts/infra/shared/shared.cake Plumbs ANDROID_SDK_ROOT into MSBuild properties via AndroidSdkDirectory.
scripts/infra/native/shared/install-ninja.ps1 Skips installing Ninja when it’s already available (prints version and exits).
scripts/infra/native/windows/install-7zip.ps1 Updates 7-Zip detection/install flow and download source/version for Windows agents.
scripts/infra/tests/tests-apple.cake Boots iOS simulators via xcrun simctl and explicitly waits for boot completion.

Pin Chrome to an immutable repository artifact and verify its SHA-256, package identity, version, and architecture before installation. Verify the pinned 7-Zip MSI against the digest published with its GitHub release, and remove redundant same-name Android environment mappings while preserving the case-sensitive MSBuild property.

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

Copilot-Session: 47852a12-8636-48a0-8c9c-f3f9b3db8a60
Restore the pinned dotnet-apple 0.8.10 simulator boot command so CI can determine whether the prior false-success boot failure is reproducible before reporting it upstream.

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

Copilot-Session: 47852a12-8636-48a0-8c9c-f3f9b3db8a60
Limit Get-Command to applications and select the first executable so duplicate PATH entries cannot turn the resolved path into an array.

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

Copilot-Session: 47852a12-8636-48a0-8c9c-f3f9b3db8a60
@mattleibow mattleibow changed the title Use dnceng public build agents for public CI Move public CI to dnceng agents and provision required tools Jul 29, 2026
@mattleibow
mattleibow requested a review from Copilot July 29, 2026 21:33

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 7 out of 7 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (2)

scripts/azure-templates-jobs-bootstrapper.yml:374

  • Typo in comment: "verions" → "versions".
                # There seems to be a bug in some verions of mspdbcmf.exe. This looks to be fixed in a VS preview.

scripts/infra/native/shared/install-ninja.ps1:6

  • Get-Command ninja will also succeed for PowerShell functions/aliases named ninja. In that case this branch will run, but ninja --version may not invoke the actual executable (or may fail), and the script will exit without attempting to install Ninja. Prefer resolving the application path explicitly (as done in the 7-Zip script) and invoke that path.
if (Get-Command ninja -ErrorAction SilentlyContinue) {
    ninja --version
    exit $LASTEXITCODE
} elseif ($IsMacOS) {

@mattleibow
mattleibow merged commit 2224654 into main Jul 30, 2026
114 of 117 checks passed
@mattleibow
mattleibow deleted the mattleibow-investigate-dnceng-agents branch July 30, 2026 00:17
mattleibow added a commit that referenced this pull request Aug 4, 2026
[CI] Move public builds to dnceng agents (#4565)

Context: #4565

Move eligible Linux and managed Windows jobs from Microsoft-hosted
agents to the dnceng NetCore-Public pool. Keep workloads requiring
capabilities absent from the lean images on approved hosted agents:
Android emulator tests need KVM, native Windows builds need the complete
VS 2022 toolchain with Spectre libraries, and native macOS uses macOS 15.

The hosted images previously supplied several undeclared prerequisites.
Provision Python, Node 20, Android platform and build tools, and Chrome
where required; pass AndroidSdkDirectory explicitly to MSBuild; and
reuse existing Ninja and 7-Zip installations before installing
fallbacks.

Pin direct Chrome and 7-Zip downloads and verify their SHA-256 digests
before installation. Also validate Chrome package identity, version,
and architecture so compromised or unexpectedly changed artifacts fail
before execution.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Matt Mitchell <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@mattleibow mattleibow added this to the 4.152.0-preview.1 milestone Aug 8, 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