Repository navigation
Partition Samples CI by typed execution target - #5339
Conversation
Extract the fixed RunGroup contract independently of consumer SDK changes. Require one valid typed group at compile time, preserve unfiltered local execution, and split existing Samples hosts into eight execution-target jobs without changing their toolchain policy. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0ff22fb7-8e03-4207-9f85-86bfe337c491
|
📖 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 -- 5339PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5339"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5339/packages --name skiasharp-pr-5339More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5339 |
Remove the standalone compiler regression project and its solution, Cake and documentation wiring at maintainer request. Keep the Samples-only required RunGroup analyzer and existing execution partitions. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0ff22fb7-8e03-4207-9f85-86bfe337c491
📊 SkiaSharp benchmarks — PR #5339⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 37 slower · 🟢 35 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
Disable successful whole-output publication on every Samples host and declare diagnostic logs through the shared publishArtifacts mechanism. Remove the direct artifact task and Windows-only package deletion; retain the existing failed-run diagnostic snapshot. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0ff22fb7-8e03-4207-9f85-86bfe337c491
Document actionable group selection, CI coverage and test annotations. Remove artifact-refactor commentary, future routing discussion and change-history phrasing from the developer guide. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0ff22fb7-8e03-4207-9f85-86bfe337c491
Update the PR with the merged caller-configured test templates while preserving the independent RunGroup changes and existing execution policies. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0ff22fb7-8e03-4207-9f85-86bfe337c491
Description
Extract the RunGroup foundation independently of the consumer-SDK changes in #5314.
RunGroupdescribes execution target, not sample family: Build, Host, Docker, Android, Ios, Mac, Windows. A Samples-only compiler analyzer requires exactly one valid effective typed group and rejects missing, multiple, invalid, or raw RunGroup traits. Fact/Theory detection is semantic, including derived attributes, inherited tests/overrides and default-interface tests. The dedicated compiler regression project is deferred at maintainer request; no discovery/reconciliation guard is included.Samples CI runs eight jobs: Build/Host/Docker on Windows and Linux, Build/Host on macOS. Names, result paths/titles and log artifacts are unique; Samples execution retries are zero. Existing SDK/workload/Tizen pins, agents, Xcode, prerequisites, provisioning/download retries, native/NuGet acquisition and Docker image pins remain unchanged. Reserved device groups have no empty jobs. Omitted local selection remains unfiltered.
Artifact publication follows existing test jobs: unconditional
shouldPublish: false, explicit TRX results and sharedpublishArtifactslogs withalways: true. No direct artifact task or Windows-only input deletion. Successful runs do not republish downloaded inputs; the shared failed-run whole-output snapshot remains unchanged. The developer guide covers setup, commands, group coverage, test annotations and troubleshooting, not implementation discussions.Based directly on main
d41f3583b8b43e9d4ea9b1e55257a498147bcb40, using immutable RunGroup source8f25d525d2ed42a9e73d5d5fb78c2af93f53e818. Main's Console Fact is preserved. No SDK11 rows, consumer pinning/retarget helpers, SDK descriptors, installer changes or macOS host fixes. The other test-family template extraction is reviewed separately in #5341.Related issues
Related to #5314 (separate review scope; does not close it).
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None — no shipping public API or rendering change. Existing Samples tests receive required execution-group traits; CI partitions them by execution target. Optional
--runGroupselection is case-sensitive, rejects unknown groups and remains unfiltered when omitted. Artifact publication is aligned with the other test jobs.Testing
previewRun:truePOST tohttps://dev.azure.com/dnceng-public/public/_apis/pipelines/345/runs?api-version=7.1, with self ref/version pinned separately to maind41f3583b8b43e9d4ea9b1e55257a498147bcb40and current headcf92d81522b2752c2d2c6faed865ffb3f6cebfdb— passed. Exactly eight unique Samples jobs, correct selectors/results, execution retry 0, shared success/failure log artifacts, no successful whole-output upload or input deletion. Toolchain/provisioning/download policy unchanged; all non-Samples expansion identical. Preview only; no manual queue.shouldPublish/publishArtifacts/TRX mechanism.git diff --check origin/main..HEAD— passed. Latest commit changes only developer documentation; no runtime/template behavior change.dotnet build tests/SkiaSharp.Tests.Samples.Analyzers/SkiaSharp.Tests.Samples.Analyzers.csproj -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 --no-restore --verbosity=quiet— passed, zero warnings/errors, on the same managed sources.dotnet cake scripts/infra/samples/samples.cake --target=samples --dryrun --verbosity=quiet— passed; same command with--runGroup=Build --sampleRunId=macos_build— passed.dotnet build tests/SkiaSharp.Tests.Samples/SkiaSharp.Tests.Samples.csproj -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 --no-restore --verbosity=quiet— blocked by the requiredoutput/nugetscohort check in this fresh checkout. Full Samples and mandatory unfiltered core solution gate were not run locally: no producing native/NuGet inputs and local device/desktop/heavy consumer runs are paused. No fake artifacts, device runs, shared-cache/workload cleanup or heavy restores.Automatic producing CI run 1632894 is running for current source head
cf92d81522b2752c2d2c6faed865ffb3f6cebfdb(merge1afc8560b12778fc16fd8d7eb23c6cc1b1966118). Current-head CI and review remain required before landing. Previous-head runs are not final-head proof.Checklist
Changesabove lists all public API and behavioral changes (or "None.")///documentation and regenerated bindings when applicablemono/skiaPR linked above and bindings regenerated