Skip to content

Fix GTK4 tests and internal CI build failures - #5302

Merged
mattleibow merged 3 commits into
mainfrom
mattleibow-main-ci-recovery-02b
Oct 8, 2026
Merged

mattleibow merged 3 commits into
mainfrom
mattleibow-main-ci-recovery-02b

Conversation

@mattleibow

@mattleibow mattleibow commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fix three test-host and build-setup failures that left public and internal CI red:

  • Run GTK4-native tests only on provisioned Linux hosts. Serialize GTK access and use assertions supported by Ubuntu 22.04's GTK 4.6.
  • Remove the MAUI gallery's nuget.org source so restores use the approved repository feeds and pass internal feed-policy checks.
  • Retry interrupted fontconfig downloads with bounded timeouts. Stop on exhausted downloads before checksum verification; retain the pinned versions and hashes.

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/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 ARM64 ganesh-gl/DiagonalLines mismatch. 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

  • 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

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
@github-actions

github-actions Bot commented Oct 7, 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 -- 5302

PowerShell / 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-5302
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-5302

@github-actions

github-actions Bot commented Oct 7, 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.

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
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5302

⭐ 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 — 🔴 26 slower · 🟢 55 faster

  • 🟢 RuntimeEffectShaderBenchmark.DrawFrame · Linux · 5.85 ms → 2.87 ms (-51%)
  • 🟢 SceneRenderBenchmark.RenderFrame(Complexity: 4) · Linux · 31.70 ms → 18.29 ms (-42%)
  • 🟢 SceneRenderBenchmark.RenderFrame(Complexity: 1) · Linux · 6.82 ms → 4.01 ms (-41%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · macOS · 2.12 µs → 2.91 µs (+37%)
  • 🟢 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Linux · 4.37 µs → 2.83 µs (-35%)
  • …and 76 more (see details below)
Full per-OS benchmark deltas

Linux

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

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 5.85 ms 2.87 ms 🟢 -51%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 31.70 ms 18.29 ms 🟢 -42%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 6.82 ms 4.01 ms 🟢 -41%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 4.37 µs 2.83 µs 🟢 -35%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 317.6 ns 225.2 ns 🟢 -29%
CanvasDrawBenchmark.Draw(Shapes: 512) 43.97 ms 33.28 ms 🟢 -24%
CanvasDrawBenchmark.Draw(Shapes: 64) 5.51 ms 4.18 ms 🟢 -24%
ColorMathBenchmark.PreMultiply(Colors: 4096) 10.82 µs 13.07 µs 🔴 +21%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 9.61 µs 11.39 µs 🔴 +19%
MatrixMapPointsBenchmark.MapRect(Points: 256) 13.29 µs 11.04 µs 🟢 -17%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 210.50 µs 177.03 µs 🟢 -16%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 8.88 ms 7.63 ms 🟢 -14%
ColorMathBenchmark.ToColorF(Colors: 4096) 15.23 µs 13.14 µs 🟢 -14%
ColorMathBenchmark.ToColor(Colors: 4096) 12.54 µs 14.26 µs 🔴 +14%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 2.23 ms 1.96 ms 🟢 -12%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 65.96 µs 73.86 µs 🔴 +12%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 4.12 µs 4.61 µs 🔴 +12%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 284.29 µs 250.78 µs 🟢 -12%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 1.05 ms 943.32 µs 🟢 -10%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.88 ms 2.63 ms 🟢 -8%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 385.85 µs 353.90 µs 🟢 -8%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.45 ms 1.33 ms 🟢 -8%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 739.63 µs 684.24 µs 🟢 -7%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 14.60 µs 13.63 µs 🟢 -7%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 233.04 µs 217.67 µs 🟢 -7%
…and 4 more

Windows

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

Benchmark baseline this PR Δ
PathBoundsBenchmark.TightBounds(Points: 1024) 15.67 µs 20.50 µs 🔴 +31%
PathBoundsBenchmark.TightBounds(Points: 64) 1.56 µs 1.95 µs 🔴 +25%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 103.39 µs 129.36 µs 🔴 +25%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.41 µs 9.26 µs 🔴 +25%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 136.84 µs 166.94 µs 🔴 +22%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.58 µs 10.33 µs 🔴 +20%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.55 µs 2.20 µs 🟢 -14%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 254.67 µs 287.73 µs 🔴 +13%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 209.8 ns 185.2 ns 🟢 -12%
ColorParseBenchmark.Parse(Iterations: 1000) 74.72 µs 82.30 µs 🔴 +10%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.10 µs 8.91 µs 🔴 +10%
CanvasDrawBenchmark.Draw(Shapes: 512) 20.91 ms 23.00 ms 🔴 +10%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.63 ms 2.89 ms 🔴 +10%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.30 µs 12.30 µs 🔴 +9%
MatrixOpsBenchmark.Concat(Count: 4096) 230.75 µs 247.90 µs 🔴 +7%
ColorMathBenchmark.PreMultiply(Colors: 4096) 13.28 µs 14.20 µs 🔴 +7%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.17 ms 2.95 ms 🟢 -7%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 131.61 µs 140.14 µs 🔴 +6%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 121.62 µs 128.67 µs 🔴 +6%

macOS

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

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.12 µs 2.91 µs 🔴 +37%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 181.0 ns 221.6 ns 🔴 +22%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 10.40 µs 8.23 µs 🟢 -21%
ColorParseBenchmark.Parse(Iterations: 1000) 89.97 µs 72.12 µs 🟢 -20%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 840.59 µs 676.24 µs 🟢 -20%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.55 ms 1.28 ms 🟢 -17%
MatrixOpsBenchmark.Concat(Count: 4096) 143.45 µs 119.22 µs 🟢 -17%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 878.24 µs 732.57 µs 🟢 -17%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 23.82 µs 19.89 µs 🟢 -17%
MatrixOpsBenchmark.Invert(Count: 4096) 86.16 µs 72.01 µs 🟢 -16%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 7.51 ms 6.29 ms 🟢 -16%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.82 µs 9.11 µs 🟢 -16%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 130.26 µs 109.89 µs 🟢 -16%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.94 µs 3.33 µs 🟢 -15%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 193.42 µs 163.79 µs 🟢 -15%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.12 µs 6.89 µs 🟢 -15%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 7.05 ms 5.98 ms 🟢 -15%
ColorMathBenchmark.ToColor(Colors: 4096) 25.92 µs 22.00 µs 🟢 -15%
PathBoundsBenchmark.TightBounds(Points: 64) 1.18 µs 1.00 µs 🟢 -15%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.50 µs 1.27 µs 🟢 -15%
RuntimeEffectShaderBenchmark.DrawFrame 673.71 µs 574.14 µs 🟢 -15%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 44.61 µs 38.02 µs 🟢 -15%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.80 ms 1.53 ms 🟢 -15%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.89 ms 1.62 ms 🟢 -15%
CanvasDrawBenchmark.Draw(Shapes: 512) 14.34 ms 12.27 ms 🟢 -14%
…and 8 more

📈 Full interactive perf-dashboard & run details →

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
@mattleibow mattleibow changed the title Restore main CI across public and internal builds Fix GTK4 tests and internal CI build failures Oct 7, 2026
@mattleibow
mattleibow marked this pull request as ready for review October 8, 2026 01:26
mattleibow pushed a commit that referenced this pull request Oct 8, 2026
@mattleibow
mattleibow merged commit 0342cd6 into main Oct 8, 2026
138 of 140 checks passed
@mattleibow
mattleibow deleted the mattleibow-main-ci-recovery-02b branch October 8, 2026 17:07
mattleibow pushed a commit that referenced this pull request Oct 8, 2026
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]>
@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