Repository navigation
Simplify generic SDK and workload provisioning - #5307
Conversation
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
|
📖 Documentation Preview Add the 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. |
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5307PowerShell / 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-5307More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5307 |
📊 SkiaSharp benchmarks — PR #5307⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 73 slower · 🟢 11 faster
📦 Allocations — 🔴 1 more alloc · 🟢 0 less alloc
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
📦 Allocations (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
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]>
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]>
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
dotnetSdksdescriptors expanded by standardUseDotNet@2tasks. 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 PATHdotnetapplication after resolving its symlink, rather than an inheritedDOTNET_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
binding/)externals/skia/src/c,include/c)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$VALIDATIONbelow. 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.python3 "$VALIDATION/validate-provisioning.py"python3 scripts/infra/caching/repo-deps.py validateSystem.Management.Automation.Language.Parser::ParseFile/ParseInputpwsh -NoLogo -NoProfile -File "$VALIDATION/provision.ps1"wasm-tools,tizeninstall 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 divergentDOTNET_ROOTexercised; both workloads installed under the resolved owned SDK root; inherited root untouched; repositoryglobal.jsonunchanged. Approved feeds only.pwsh -NoLogo -NoProfile -File "$VALIDATION/validate-selection.ps1"global.jsonkeys; missing exact SDK fails explicitly and cleans its temporary context.dotnet tool restoredotnet cake --target=externals-downloaddotnet cake "$VALIDATION/bootstrap-macos.cake"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*'dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0ganesh-gl/DiagonalLinesgolden 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 --checkThe 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
Changesabove lists all public API and behavioral changes (or "None.")///documentation and regenerated bindings when applicablemono/skiaPR linked above and bindings regenerated