Repository navigation
Fix GTK4 tests and internal CI build failures - #5302
Conversation
Remove the nuget.org source rejected by the internal Secure Supply Chain Analysis task (CFS0013). Keep the existing dotnet-public and dotnet-eng feeds and leave the supply-chain policy enabled. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 545b3a8e-8a03-49a5-9f83-ee4f979f532c
📦 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 -- 5302PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5302"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5302/packages --name skiasharp-pr-5302More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5302 |
|
📖 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. |
Keep the GTK4-native suite on Linux as requested, without installing libepoxy on Windows or macOS or changing core GPU coverage. Serialize GTK access and assert the properties set by SKGLArea instead of calling an API absent from Ubuntu 22.04 GTK 4.6. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 545b3a8e-8a03-49a5-9f83-ee4f979f532c
📊 SkiaSharp benchmarks — PR #5302⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 26 slower · 🟢 55 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
Internal Linux x64 validation failed when the pinned fontconfig download was reset by its peer. Retry transfer errors up to three times with bounded connection and transfer deadlines, and explicitly abort on exhausted downloads before misleading missing-file checksum failures. Keep package versions, hashes, extraction, and security policy unchanged in both matching glibc image definitions. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 545b3a8e-8a03-49a5-9f83-ee4f979f532c
Co-authored-by: Copilot App <[email protected]>
Integrate main at 0342cd6, including the landed #5302 recovery. Preserve the unified Samples documentation and existing GTK4 policy without restoring the retired MSBuild runner. Co-authored-by: Copilot App <[email protected]>
Description
Fix three test-host and build-setup failures that left public and internal CI red:
nuget.orgsource so restores use the approved repository feeds and pass internal feed-policy checks.Related issues
None.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None — CI/test infrastructure only. Public APIs, rendering, core GPU coverage, and native dependency versions are unchanged.
Testing
GTK4: 32 passed. Unfiltered Linux solution: 6,406 passed, with 38 existing platform/capability skips. Approved-feed MAUI restore and download retry/failure checks passed. The known local macOS golden mismatch is unchanged; no goldens were regenerated.
Latest public CI, internal packaging, and its connected internal tests passed on the same head.
Validation commands and results
Managed checks used exact native artifacts from public build 1623952. Linux ran on Ubuntu 22.04 ARM64 with GTK 4.6.9 and software OpenGL/Vulkan; no GPU opt-outs were added. The final commit passed the full public pipeline and internal package/test chain. Internal Tests 3098935 consumed package build 3098733 on
c45a0a60e631543957033356cc65127a94244f7d; its macOS desktop test job passed in 24m 9s.dotnet restore samples/Gallery/Maui/SkiaSharpSample.Maui.csproj -p:TargetFramework=net10.0-maccatalyst -p:TargetFrameworks=net10.0-maccatalyst --packages /Users/matthew/.copilot/session-state/545b3a8e-8a03-49a5-9f83-ee4f979f532c/files/maui-approved-feed-cache --verbosity minimal— passed with a fresh cache and only approved feeds.xvfb-run -a dotnet test tests/SkiaSharp.Views.Gtk4.Tests/SkiaSharp.Views.Gtk4.Tests.csproj --artifacts-path /tmp/gtk4-recovery -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 -p:SkiaSharpNativePlatform=bionic --verbosity minimal -- --report-trx --results-directory /tmp/gtk4-results— passed: 32/32. These dispatcher/widget-state tests do not invoke Skia's native library.xvfb-run -a dotnet test tests/SkiaSharp.Tests.Console.slnx --artifacts-path /tmp/core-recovery -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 -p:SkiaSharpNativePlatform=linux -p:HarfBuzzSharpNativePlatform=linux --verbosity minimal -- --report-trx --results-directory /results/final --hangdump --hangdump-timeout 15m --hangdump-type Mini— passed: 6,406 across all five hosts; 38 existing skips.dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0 --verbosity minimal -- --report-trx --results-directory /Users/matthew/.copilot/session-state/545b3a8e-8a03-49a5-9f83-ee4f979f532c/files/core-test-results— failed only on the known local macOS ARM64ganesh-gl/DiagonalLinesmismatch. The public macOS job subsequently passed; no local golden update was made.curl -fSL --retry 3 --retry-all-errors --connect-timeout 30 --max-time 300 -o "${pkg}.deb" "$url" || exit 1— passed reset/partial-response recovery and persistent-failure fault injection. Persistent errors stop after four attempts, before extraction; existing package pins are unchanged.git diff --check— passed.Checklist
Changesabove lists all public API and behavioral changes (or "None.")///documentation and regenerated bindings when applicablemono/skiaPR linked above and bindings regenerated