Skip to content

Simplify generic SDK and workload provisioning - #5307

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow-sdk-provisioning-extraction
Oct 8, 2026
Merged

mattleibow merged 1 commit into
mainfrom
mattleibow-sdk-provisioning-extraction

Conversation

@mattleibow

@mattleibow mattleibow commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

Extract generic SDK/workload provisioning from #5291 into an independently mergeable, main-based PR. Pinned source: 6dd2c81f2373b763165bdc2e1d4e8ffb35b4c5de; recorded and current main: 0342cd645aac8ea5c13ee06e90fc4a605d643eae.

Replace provisioning switches with dotnetSdks descriptors expanded by standard UseDotNet@2 tasks. SDK acquisition, workload installation, and optional whole-job SDK selection are separate. The helper installs an exact Microsoft workload set using repository-approved feeds and registers pinned Samsung manifests against the first PATH dotnet application after resolving its symlink, rather than an inherited DOTNET_ROOT. The helper and steps template are byte-identical extractions from the pinned source.

Migrate all existing callers, including main's retained Samples and MSBuild package-test stages, native/container opt-outs, and SDK-only WinUI/ANGLE jobs. Preserve the 180-minute limit, stable and current-preview pins, full stable host workload lists, existing stages/test projects/Cake entry points, and remove unused legacy installers after checking callers.

Per the user's follow-up, the website side build remains unchanged: dotnet workload install wasm-tools. No sample runner/profile changes, Integration/MSBuild migration, RC1 pin bump, Emscripten changes, native changes or public APIs are included. This PR does not depend on the other extraction; #5291 remains open and is not superseded.

Related issues

Related to #5291.

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; no public API or application behavior change.

Testing

macOS arm64, fresh owned SDK 10.0.401, isolated CLI/NuGet directories; shared SDKs/workloads/caches and global Xcode selection were untouched. Xcode 26.6 was selected only with process-local DEVELOPER_DIR.

Session-only validation artifacts are in /Users/matthew/.copilot/session-state/d16e5c4d-1352-4f2f-952a-c9f2a5c1667f/files/sdk-provisioning-validation/, abbreviated as $VALIDATION below. No runtime tests were changed: this is a script-only extraction, verified with focused real provisioning and session-local assertions rather than a committed mock harness.

Command/check Result
python3 "$VALIDATION/validate-provisioning.py" Passed: 53 Azure/GitHub YAML files parsed; 47 bootstrapper callers checked; original job orchestration, MSBuild/Cake entry points, stable/preview pins, Emscripten files, SDK-only/opt-out declarations and full stable workload lists verified.
python3 scripts/infra/caching/repo-deps.py validate Passed: 0 uncovered files, including the new tracked steps template.
PowerShell System.Management.Automation.Language.Parser::ParseFile / ParseInput Passed: helper and inline provisioning script syntax.
pwsh -NoLogo -NoProfile -File "$VALIDATION/provision.ps1" Passed: real wasm-tools,tizen install under SDK 10.0.401 / set 10.0.202 / Samsung band 10.0.100, version 10.0.123. First-PATH symlink, multiple application matches and divergent DOTNET_ROOT exercised; both workloads installed under the resolved owned SDK root; inherited root untouched; repository global.json unchanged. Approved feeds only.
pwsh -NoLogo -NoProfile -File "$VALIDATION/validate-selection.ps1" Passed: exact job SDK activation preserves non-SDK global.json keys; missing exact SDK fails explicitly and cleans its temporary context.
dotnet tool restore Passed, after initial bootstrap reported missing local tools.
dotnet cake --target=externals-download Not completed: all-platform download stopped after Linux/Android assets to avoid unrelated large downloads.
dotnet cake "$VALIDATION/bootstrap-macos.cake" Passed: session-only adapter to existing DownloadPackageAsync, downloading _nativeassets.osx; no repository target added.
dotnet test tests/SkiaSharp.Tests.Console/SkiaSharp.Tests.Console.csproj -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 -- --filter-method '*StreamIsCollectedEvenWhenNotProperlyDisposed*' Passed, 2/2, diagnosing two stream-collection failures in the first unfiltered run; both subsequently passed in the final unfiltered rerun.
dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 Failed on the known pre-existing macOS-arm64 ganesh-gl / DiagonalLines golden mismatch. Final unfiltered run: core 6,339 passed / 1 failed / 23 declared skips; Gallery 50 passed; SingletonInit 1 passed; Direct3D 2 passed / 3 declared skips; Vulkan 4 passed / 21 declared skips. Aggregate: 6,396 passed / 1 failed / 47 declared skips. No skips, golden changes or unrelated fixes added.
git diff --cached --check Passed before commit.

The full local test gate is not green. Azure template expansion and cross-platform execution still need CI; no success is claimed for those. At publication, existing GitHub benchmarking checks were queued, helper/CLA checks passed, website build/deploy were skipped, and no Azure commit-status context had appeared.

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? Added or updated accurate source /// documentation and regenerated bindings when applicable
  • Native change? Companion mono/skia PR linked above and bindings regenerated

Extract generic provisioning from #5291 without changing its sample runner or preview pins. Preserve main's Samples and MSBuild stages, make SDK selection explicit, and register pinned Tizen manifests against the first resolved PATH dotnet installation.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: d16e5c4d-1352-4f2f-952a-c9f2a5c1667f
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

Add the automation/staging label to build and publish a documentation preview for this PR.

Removing the label removes the preview. While the label is present, each new commit updates it.


This comment is automatically updated by the documentation staging workflow.

@github-actions

github-actions Bot commented Oct 8, 2026

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 -- 5307

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5307

⭐ 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 — 🔴 73 slower · 🟢 11 faster

  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Linux · 1.42 µs → 4.33 µs (+205%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 256) · Linux · 125.9 ns → 327.3 ns (+160%)
  • 🔴 ColorMathBenchmark.ToColor(Colors: 4096) · Windows · 5.27 µs → 12.67 µs (+141%)
  • 🔴 ColorMathBenchmark.ToColor(Colors: 4096) · Linux · 5.54 µs → 10.81 µs (+95%)
  • 🔴 SceneRenderBenchmark.RenderFrame(Complexity: 4) · Linux · 15.99 ms → 30.67 ms (+92%)
  • …and 79 more (see details below)

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

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

Linux

⏱️ Time (vs 🌙 nightly 4.155.0-nightly.26480.5)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.42 µs 4.33 µs 🔴 +205%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 125.9 ns 327.3 ns 🔴 +160%
ColorMathBenchmark.ToColor(Colors: 4096) 5.54 µs 10.81 µs 🔴 +95%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 15.99 ms 30.67 ms 🔴 +92%
RuntimeEffectShaderBenchmark.DrawFrame 2.99 ms 5.64 ms 🔴 +89%
ColorMathBenchmark.ToColorF(Colors: 4096) 7.88 µs 14.75 µs 🔴 +87%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 60.76 µs 112.63 µs 🔴 +85%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 3.57 ms 6.59 ms 🔴 +85%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 572.50 µs 1.02 ms 🔴 +78%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 155.14 µs 272.77 µs 🔴 +76%
CanvasDrawBenchmark.Draw(Shapes: 64) 3.05 ms 5.32 ms 🔴 +75%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 154.78 µs 263.37 µs 🔴 +70%
CanvasDrawBenchmark.Draw(Shapes: 512) 25.03 ms 42.55 ms 🔴 +70%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 4.90 ms 8.30 ms 🔴 +70%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.27 ms 2.13 ms 🔴 +69%
PathBoundsBenchmark.TightBounds(Points: 64) 607.4 ns 1.02 µs 🔴 +67%
ColorParseBenchmark.Parse(Iterations: 1000) 42.49 µs 68.01 µs 🔴 +60%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 1.71 ms 2.71 ms 🔴 +59%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 884.51 µs 1.40 ms 🔴 +58%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 236.67 µs 372.27 µs 🔴 +57%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 452.76 µs 711.02 µs 🔴 +57%
PathBoundsBenchmark.TightBounds(Points: 1024) 6.50 µs 10.17 µs 🔴 +56%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 122.01 µs 184.68 µs 🔴 +51%
MatrixMapPointsBenchmark.MapRect(Points: 256) 8.64 µs 12.94 µs 🔴 +50%
MatrixOpsBenchmark.Concat(Count: 4096) 143.53 µs 214.23 µs 🔴 +49%
…and 9 more

📦 Allocations (vs 🌙 nightly 4.155.0-nightly.26480.5)

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

Windows

⏱️ Time (vs 🌙 nightly 4.155.0-nightly.26480.5)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 5.27 µs 12.67 µs 🔴 +141%
PathBoundsBenchmark.TightBounds(Points: 1024) 9.31 µs 17.61 µs 🔴 +89%
PathBoundsBenchmark.TightBounds(Points: 64) 935.8 ns 1.56 µs 🔴 +67%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 691.12 µs 1.10 ms 🔴 +60%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 180.42 µs 287.39 µs 🔴 +59%
RuntimeEffectShaderBenchmark.DrawFrame 629.20 µs 989.00 µs 🔴 +57%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 138.02 µs 216.19 µs 🔴 +57%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.46 ms 2.24 ms 🔴 +54%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 5.89 µs 8.98 µs 🔴 +52%
CanvasDrawBenchmark.Draw(Shapes: 512) 11.70 ms 17.82 ms 🔴 +52%
ColorMathBenchmark.PreMultiply(Colors: 4096) 7.49 µs 11.34 µs 🔴 +51%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 524.56 µs 793.50 µs 🔴 +51%
ColorParseBenchmark.Parse(Iterations: 1000) 44.91 µs 67.14 µs 🔴 +49%
MatrixOpsBenchmark.Concat(Count: 4096) 149.33 µs 223.02 µs 🔴 +49%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 91.7 ns 136.1 ns 🔴 +48%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 96.42 µs 139.55 µs 🔴 +45%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.14 µs 1.66 µs 🔴 +45%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 7.18 µs 10.20 µs 🔴 +42%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 82.97 µs 117.41 µs 🔴 +42%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 70.11 µs 99.21 µs 🔴 +41%
MatrixMapPointsBenchmark.MapVector(Points: 256) 5.17 µs 7.29 µs 🔴 +41%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 173.74 µs 241.97 µs 🔴 +39%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.28 ms 1.74 ms 🔴 +36%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 3.19 µs 4.31 µs 🔴 +35%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.50 ms 8.74 ms 🔴 +34%
…and 9 more

macOS

⏱️ Time (vs 🌙 nightly 4.155.0-nightly.26480.5)

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 287.71 µs 177.59 µs 🟢 -38%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 276.83 µs 214.36 µs 🟢 -23%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 825.63 µs 655.22 µs 🟢 -21%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 974.88 µs 825.91 µs 🟢 -15%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.79 ms 1.57 ms 🟢 -12%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 187.44 µs 166.67 µs 🟢 -11%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 184.4 ns 166.8 ns 🟢 -10%
ColorParseBenchmark.Parse(Iterations: 1000) 72.94 µs 67.38 µs 🟢 -8%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.07 µs 9.32 µs 🟢 -7%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 43.19 µs 40.02 µs 🟢 -7%
ColorMathBenchmark.ToColor(Colors: 4096) 21.19 µs 22.60 µs 🔴 +7%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.86 µs 1.96 µs 🔴 +6%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.25 µs 3.44 µs 🔴 +6%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.56 ms 1.65 ms 🔴 +5%
MatrixOpsBenchmark.Concat(Count: 4096) 119.08 µs 125.47 µs 🔴 +5%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 6.43 ms 6.09 ms 🟢 -5%

📈 Full interactive perf-dashboard & run details →

mattleibow pushed a commit that referenced this pull request Oct 8, 2026
Synchronize PR #5307 at e54a67c. Preserve its full Linux/Tizen workload declarations and exact-SDK helper while retaining the consolidated sample lanes, RC1 pins, and equivalent tests in this branch.

Co-authored-by: Copilot App <[email protected]>
@mattleibow
mattleibow marked this pull request as ready for review October 8, 2026 22:36
@mattleibow
mattleibow merged commit a38df39 into main Oct 8, 2026
117 of 119 checks passed
@mattleibow
mattleibow deleted the mattleibow-sdk-provisioning-extraction branch October 8, 2026 22:37
mattleibow pushed a commit that referenced this pull request Oct 8, 2026
Merge PR #5306 head 7dd7eb0, including main a38df39 and landed #5307. Preserve the equivalent consolidated sample lanes and tests without restoring retired MSBuild orchestration. The resulting tree is unchanged.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added this to the 4.156.0-preview.1 milestone Oct 15, 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.

1 participant