Skip to content

Update CI Node.js to 24.x - #5359

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow-node-22-update
Oct 15, 2026
Merged

mattleibow merged 1 commit into
mainfrom
mattleibow-node-22-update

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Description

Update the Windows managed-job bootstrapper from Node.js 20.x to 24.x in preparation for future Appium use. Appium 3 supports Node.js 24 and requires npm 10+. Existing installation conditions are unchanged; this does not install Appium or alter GitHub agentic workflow runtimes.

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-only; no public API or application behavior changes.

Testing

  • python3 -c "import yaml; yaml.safe_load(open('scripts/azure-templates-jobs-bootstrapper.yml')); print('YAML parse passed')" - passed on macOS.
  • git diff --check HEAD^ HEAD - passed.
  • Parsed the template and asserted that its single UseNode@1 task selects 24.x - passed.
  • No tests added: this only changes a CI tool version. The documented managed test command, dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0, was not run; it does not exercise Azure Pipelines Node provisioning. Windows CI execution and Appium installation were not run locally.

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

Use Node.js 24.x in the Windows managed-job bootstrapper to prepare for Appium 3, which supports Node.js 24 and requires npm 10 or newer.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: c184c926-fda7-4b63-99a4-318599fd14e8
@github-actions

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.

@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 -- 5359

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

@github-actions

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5359

⭐ 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 · 🟢 53 faster

  • 🟢 ColorMathBenchmark.ToColor(Colors: 4096) · Linux · 15.37 µs → 5.15 µs (-66%)
  • 🟢 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Linux · 2.61 µs → 1.39 µs (-47%)
  • 🟢 ColorParseBenchmark.Parse(Iterations: 1000) · Linux · 76.10 µs → 41.85 µs (-45%)
  • 🟢 MatrixMapPointsBenchmark.MapPoints(Points: 256) · Linux · 224.0 ns → 125.9 ns (-44%)
  • 🔴 ColorMathBenchmark.ToColor(Colors: 4096) · Windows · 11.31 µs → 16.18 µs (+43%)
  • …and 79 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.156.0-nightly.26513.6)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 15.37 µs 5.15 µs 🟢 -66%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.61 µs 1.39 µs 🟢 -47%
ColorParseBenchmark.Parse(Iterations: 1000) 76.10 µs 41.85 µs 🟢 -45%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 224.0 ns 125.9 ns 🟢 -44%
ColorMathBenchmark.PreMultiply(Colors: 4096) 12.86 µs 7.47 µs 🟢 -42%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.93 µs 6.43 µs 🟢 -41%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 268.49 µs 159.46 µs 🟢 -41%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 103.03 µs 61.33 µs 🟢 -40%
PathBoundsBenchmark.TightBounds(Points: 64) 975.5 ns 589.7 ns 🟢 -40%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.46 µs 6.99 µs 🟢 -39%
ColorMathBenchmark.ToColorF(Colors: 4096) 13.12 µs 8.12 µs 🟢 -38%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 943.59 µs 596.42 µs 🟢 -37%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 250.18 µs 161.10 µs 🟢 -36%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 350.41 µs 226.90 µs 🟢 -35%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 7.61 ms 4.96 ms 🟢 -35%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.33 ms 870.04 µs 🟢 -35%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 73.62 µs 48.28 µs 🟢 -34%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.97 ms 1.30 ms 🟢 -34%
MatrixOpsBenchmark.Concat(Count: 4096) 218.18 µs 144.66 µs 🟢 -34%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 4.51 µs 3.01 µs 🟢 -33%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 685.53 µs 461.82 µs 🟢 -33%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.64 ms 1.78 ms 🟢 -32%
MatrixMapPointsBenchmark.MapVector(Points: 256) 10.84 µs 7.38 µs 🟢 -32%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 174.28 µs 119.57 µs 🟢 -31%
MatrixOpsBenchmark.Invert(Count: 4096) 130.41 µs 90.75 µs 🟢 -30%
…and 8 more

Windows

⏱️ Time (vs 🌙 nightly 4.156.0-nightly.26513.6)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 11.31 µs 16.18 µs 🔴 +43%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 305.7 ns 206.4 ns 🟢 -32%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 130.24 µs 170.89 µs 🔴 +31%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.17 µs 10.66 µs 🔴 +31%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 3.34 µs 2.51 µs 🟢 -25%
RuntimeEffectShaderBenchmark.DrawFrame 995.41 µs 1.24 ms 🔴 +24%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 114.78 µs 141.33 µs 🔴 +23%
ColorMathBenchmark.ToColorF(Colors: 4096) 17.45 µs 13.43 µs 🟢 -23%
PathBoundsBenchmark.TightBounds(Points: 1024) 17.36 µs 20.98 µs 🔴 +21%
MatrixMapPointsBenchmark.MapVector(Points: 256) 7.48 µs 8.82 µs 🔴 +18%
CanvasDrawBenchmark.Draw(Shapes: 512) 19.95 ms 23.27 ms 🔴 +17%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.50 ms 2.91 ms 🔴 +16%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 4.35 µs 5.01 µs 🔴 +15%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.60 ms 3.06 ms 🟢 -15%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 121.39 µs 139.09 µs 🔴 +15%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 69.62 µs 79.43 µs 🔴 +14%
MatrixOpsBenchmark.Concat(Count: 4096) 224.87 µs 256.15 µs 🔴 +14%
PathBoundsBenchmark.TightBounds(Points: 64) 1.71 µs 1.93 µs 🔴 +13%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 123.88 µs 139.75 µs 🔴 +13%
MatrixOpsBenchmark.Invert(Count: 4096) 125.29 µs 141.06 µs 🔴 +13%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 831.83 µs 752.37 µs 🟢 -10%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.39 µs 12.39 µs 🔴 +9%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 242.63 µs 259.50 µs 🔴 +7%
ColorParseBenchmark.Parse(Iterations: 1000) 78.92 µs 84.07 µs 🔴 +7%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 2.54 ms 2.70 ms 🔴 +6%
…and 2 more

macOS

⏱️ Time (vs 🌙 nightly 4.156.0-nightly.26513.6)

Benchmark baseline this PR Δ
MatrixOpsBenchmark.Invert(Count: 4096) 140.40 µs 97.92 µs 🟢 -30%
PathBoundsBenchmark.TightBounds(Points: 1024) 9.67 µs 11.90 µs 🔴 +23%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 778.13 µs 607.89 µs 🟢 -22%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 171.32 µs 203.24 µs 🔴 +19%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 7.29 ms 6.30 ms 🟢 -14%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 296.44 µs 261.34 µs 🟢 -12%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 226.98 µs 200.15 µs 🟢 -12%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.72 ms 1.52 ms 🟢 -12%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 721.65 µs 802.38 µs 🔴 +11%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 6.95 µs 6.19 µs 🟢 -11%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 54.51 µs 48.69 µs 🟢 -11%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.78 µs 2.50 µs 🟢 -10%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 20.42 µs 18.39 µs 🟢 -10%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.60 ms 1.76 ms 🔴 +10%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.88 µs 1.73 µs 🟢 -8%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.30 ms 6.79 ms 🔴 +8%
ColorMathBenchmark.ToColor(Colors: 4096) 22.03 µs 23.68 µs 🔴 +7%
RuntimeEffectShaderBenchmark.DrawFrame 575.94 µs 617.60 µs 🔴 +7%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.53 ms 1.42 ms 🟢 -7%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 752.79 µs 702.26 µs 🟢 -7%
ColorParseBenchmark.Parse(Iterations: 1000) 73.82 µs 68.93 µs 🟢 -7%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 159.4 ns 168.9 ns 🔴 +6%
CanvasDrawBenchmark.Draw(Shapes: 512) 12.56 ms 11.88 ms 🟢 -5%
PathBoundsBenchmark.TightBounds(Points: 64) 978.7 ns 1.03 µs 🔴 +5%

📈 Full interactive perf-dashboard & run details →

@mattleibow
mattleibow merged commit 56fd674 into main Oct 15, 2026
124 checks passed
@mattleibow
mattleibow deleted the mattleibow-node-22-update branch October 15, 2026 17:05
@github-actions github-actions Bot added this to the 4.156.0-rc.1 milestone Nov 9, 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