Skip to content

[release/4.158.x] Pin Linux x86 Docker base images to last working digests - #5791

Merged
mattleibow merged 1 commit into
release/4.158.xfrom
mattleibow-dev/pin-linux-x86-docker-4-158
Nov 17, 2026
Merged

mattleibow merged 1 commit into
release/4.158.xfrom
mattleibow-dev/pin-linux-x86-docker-4-158

Conversation

@mattleibow

Copy link
Copy Markdown
Collaborator

Description

On 2026-11-17T06:06:41Z, Microsoft published a new mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-crossdeps-builder-amd64 image (sha256:90efe6c2c8e53dc62be2e24bd1beae2e1961c85dd124f5e550957f33bd8c5e79) that picked up dotnet/arcade#17770 (e8e75e6d34, "Delete linux-x86 infra"). That removed the x86) case from /scripts/eng/common/cross/build-rootfs.sh, causing scripts/infra/native/linux/docker/glibc-x86/Dockerfile to silently download an armhf sysroot instead of i386 and fail during the libcxx;compiler-rt CMake build (ld.lld: error: cannot open Scrt1.o: No such file or directory).

While #5784 drops linux-x86 on main, this PR pins the builder and final stage base images in scripts/infra/native/linux/docker/glibc-x86/Dockerfile to the last known working SHA-256 digests from the last green AzDO run (1684824 at 2026-11-17T03:46:23Z) to immediately unblock release/4.158.x:

  • Builder image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-crossdeps-builder-amd64@sha256:b875f195e0560a0001a663ca4dc47ece0edd0af861d9625a0d7598093395a84b
  • Final stage base image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-crossdeps-llvm-amd64@sha256:e32d03fed9d719629a0e57bce0584a924fc1dbe124a8ad825063af6138d5c013

Related issues

Related to #5784

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/Docker build image pin only, no public API or behavior change.

Testing

  • Verified both pinned image digests (sha256:b875f195e0560a0001a663ca4dc47ece0edd0af861d9625a0d7598093395a84b and sha256:e32d03fed9d719629a0e57bce0584a924fc1dbe124a8ad825063af6138d5c013) match the last green AzDO run (1684824) and are pullable on mcr.microsoft.com.
  • Full Linux x86 Docker container build is validated by the CI pipeline; local macOS test suite was not run as this only touches the Linux x86 cross-build Dockerfile.

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

@github-actions

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

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

@mattleibow
mattleibow merged commit dc342ff into release/4.158.x Nov 17, 2026
77 of 82 checks passed
@mattleibow
mattleibow deleted the mattleibow-dev/pin-linux-x86-docker-4-158 branch November 17, 2026 15:58
@github-actions

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5791

⭐ 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 — 🔴 31 slower · 🟢 64 faster

  • 🟢 ColorMathBenchmark.ToColor(Colors: 4096) · Linux · 15.46 µs → 4.91 µs (-68%)
  • 🟢 BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) · macOS · 1.09 ms → 596.30 µs (-45%)
  • 🟢 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Linux · 2.61 µs → 1.43 µs (-45%)
  • 🟢 ColorParseBenchmark.Parse(Iterations: 1000) · Linux · 74.87 µs → 41.17 µs (-45%)
  • 🟢 ColorMathBenchmark.PreMultiply(Colors: 4096) · Linux · 12.87 µs → 7.21 µs (-44%)
  • …and 90 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 15.46 µs 4.91 µs 🟢 -68%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.61 µs 1.43 µs 🟢 -45%
ColorParseBenchmark.Parse(Iterations: 1000) 74.87 µs 41.17 µs 🟢 -45%
ColorMathBenchmark.PreMultiply(Colors: 4096) 12.87 µs 7.21 µs 🟢 -44%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 207.8 ns 121.2 ns 🟢 -42%
ColorMathBenchmark.ToColorF(Colors: 4096) 13.17 µs 7.76 µs 🟢 -41%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.53 µs 6.82 µs 🟢 -41%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.57 µs 6.27 µs 🟢 -41%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 249.64 µs 149.22 µs 🟢 -40%
PathBoundsBenchmark.TightBounds(Points: 64) 942.1 ns 567.2 ns 🟢 -40%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 246.87 µs 148.95 µs 🟢 -40%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 4.65 µs 2.83 µs 🟢 -39%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 71.99 µs 44.93 µs 🟢 -38%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 936.86 µs 585.00 µs 🟢 -38%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 93.82 µs 58.76 µs 🟢 -37%
MatrixOpsBenchmark.Concat(Count: 4096) 217.69 µs 137.01 µs 🟢 -37%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 7.55 ms 4.84 ms 🟢 -36%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.96 ms 1.26 ms 🟢 -36%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 345.33 µs 223.52 µs 🟢 -35%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.30 ms 852.34 µs 🟢 -34%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.62 ms 1.72 ms 🟢 -34%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 177.12 µs 117.59 µs 🟢 -34%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 679.02 µs 454.39 µs 🟢 -33%
MatrixMapPointsBenchmark.MapVector(Points: 256) 10.95 µs 7.36 µs 🟢 -33%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 223.14 µs 151.00 µs 🟢 -32%
…and 8 more

Windows

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
PathBoundsBenchmark.TightBounds(Points: 1024) 15.60 µs 21.20 µs 🔴 +36%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 98.91 µs 133.81 µs 🔴 +35%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.54 µs 11.17 µs 🔴 +31%
PathBoundsBenchmark.TightBounds(Points: 64) 1.53 µs 1.96 µs 🔴 +28%
MatrixOpsBenchmark.Concat(Count: 4096) 219.40 µs 278.56 µs 🔴 +27%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 146.79 µs 181.88 µs 🔴 +24%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 258.63 µs 316.23 µs 🔴 +22%
MatrixOpsBenchmark.Invert(Count: 4096) 128.13 µs 154.26 µs 🔴 +20%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 39.68 µs 47.47 µs 🔴 +20%
MatrixMapPointsBenchmark.MapRect(Points: 256) 10.44 µs 12.46 µs 🔴 +19%
ColorMathBenchmark.PreMultiply(Colors: 4096) 13.28 µs 15.71 µs 🔴 +18%
MatrixMapPointsBenchmark.MapVector(Points: 256) 7.78 µs 9.19 µs 🔴 +18%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 168.33 µs 197.30 µs 🔴 +17%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 328.46 µs 375.83 µs 🔴 +14%
ColorParseBenchmark.Parse(Iterations: 1000) 76.79 µs 86.58 µs 🔴 +13%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 130.92 µs 146.65 µs 🔴 +12%
RuntimeEffectShaderBenchmark.DrawFrame 1.13 ms 1.26 ms 🔴 +11%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.75 µs 13.06 µs 🔴 +11%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 2.52 ms 2.80 ms 🔴 +11%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.24 ms 1.37 ms 🔴 +11%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 10.06 ms 11.10 ms 🔴 +10%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 2.48 µs 2.74 µs 🔴 +10%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.29 ms 23.41 ms 🔴 +10%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.67 ms 2.92 ms 🔴 +10%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 910.92 µs 993.49 µs 🔴 +9%
…and 5 more

macOS

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.09 ms 596.30 µs 🟢 -45%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 299.54 µs 192.23 µs 🟢 -36%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.83 ms 1.85 ms 🟢 -35%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 7.22 µs 4.78 µs 🟢 -34%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 852.21 µs 573.52 µs 🟢 -33%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 732.79 µs 504.61 µs 🟢 -31%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.96 µs 2.55 µs 🔴 +30%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 110.08 µs 76.94 µs 🟢 -30%
MatrixOpsBenchmark.Invert(Count: 4096) 77.03 µs 55.40 µs 🟢 -28%
ColorMathBenchmark.ToColor(Colors: 4096) 22.22 µs 16.32 µs 🟢 -27%
ColorParseBenchmark.Parse(Iterations: 1000) 78.16 µs 57.44 µs 🟢 -27%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 158.5 ns 200.2 ns 🔴 +26%
RuntimeEffectShaderBenchmark.DrawFrame 569.88 µs 433.73 µs 🟢 -24%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.82 ms 5.20 ms 🟢 -24%
ColorMathBenchmark.PreMultiply(Colors: 4096) 9.58 µs 7.52 µs 🟢 -21%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 192.38 µs 152.99 µs 🟢 -20%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.80 ms 1.44 ms 🟢 -20%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.54 ms 1.24 ms 🟢 -19%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.73 µs 2.21 µs 🟢 -19%
ColorMathBenchmark.ToColorF(Colors: 4096) 5.85 µs 4.75 µs 🟢 -19%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 8.26 µs 6.75 µs 🟢 -18%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 45.67 µs 37.59 µs 🟢 -18%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 6.50 ms 5.38 ms 🟢 -17%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 57.45 µs 47.75 µs 🟢 -17%
CanvasDrawBenchmark.Draw(Shapes: 512) 13.33 ms 11.13 ms 🟢 -16%
…and 7 more

📈 Full interactive perf-dashboard & run details →

@mattleibow

Copy link
Copy Markdown
Collaborator Author

/baclport to main

@mattleibow

Copy link
Copy Markdown
Collaborator Author

/backport to main

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to main (link to workflow run)

mattleibow added a commit that referenced this pull request Nov 17, 2026
@github-actions github-actions Bot added this to the 4.158.0-rc.1 milestone Nov 18, 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.

2 participants