Skip to content

Reserve HarfBuzzSharp versions by Skia milestone - #4833

Merged
mattleibow merged 3 commits into
mainfrom
mattleibow-harfbuzz-version-buckets
Aug 20, 2026
Merged

mattleibow merged 3 commits into
mainfrom
mattleibow-harfbuzz-version-buckets

Conversation

@mattleibow

@mattleibow mattleibow commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Reserve 100 HarfBuzzSharp package revisions per Skia milestone while a native HarfBuzz version remains in use. The milestone that first adopts an upstream X.Y.Z starts at revision zero, and each later milestone that remains on that native version adds 100.

HarfBuzz 14.2.1 was adopted by M150, so M150 uses revisions 0-99, M151 uses 100-199, and M152 uses 200-299. Main therefore uses HarfBuzzSharp 14.2.1.200, while the native HarfBuzz release and soname remain unchanged.

A future native HarfBuzz upgrade on main resets the package revision to zero and makes that milestone the new base. HarfBuzz upgrades are not backported to older release lines. The release documentation, dependency-update workflow, and release-script tests now capture this policy.

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 — package version allocation only; no public API or runtime behavior changes.

Testing

  • python3 .agents/skills/release-branch/scripts/tests/test_release_scripts.py
  • Verified all 11 HarfBuzzSharp file/NuGet entries use 14.2.1.200 and native HarfBuzz remains 14.2.1 with soname 0.61421.0.

Checklist

  • Tests added or updated
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? N/A — no public API changes
  • Native change? N/A — no native or submodule changes

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0ed2f589-f263-48f0-aac4-6bd7aeee32ff
@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 -- 4833

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0ed2f589-f263-48f0-aac4-6bd7aeee32ff
@github-actions

github-actions Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4833

⭐ 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 — 🔴 44 slower · 🟢 38 faster

  • 🔴 ColorMathBenchmark.ToColor(Colors: 4096) · Linux · 7.38 µs → 15.35 µs (+108%)
  • 🔴 ColorMathBenchmark.PreMultiply(Colors: 4096) · Linux · 7.66 µs → 12.85 µs (+68%)
  • 🔴 ColorMathBenchmark.UnPreMultiply(Colors: 4096) · Linux · 6.84 µs → 11.38 µs (+66%)
  • 🔴 MatrixMapPointsBenchmark.MapPoint(Points: 4096) · Linux · 46.28 µs → 73.90 µs (+60%)
  • 🔴 ColorParseBenchmark.Parse(Iterations: 1000) · Linux · 48.09 µs → 74.24 µs (+54%)
  • …and 77 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.29)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 7.38 µs 15.35 µs 🔴 +108%
ColorMathBenchmark.PreMultiply(Colors: 4096) 7.66 µs 12.85 µs 🔴 +68%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 6.84 µs 11.38 µs 🔴 +66%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 46.28 µs 73.90 µs 🔴 +60%
ColorParseBenchmark.Parse(Iterations: 1000) 48.09 µs 74.24 µs 🔴 +54%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 3.01 µs 4.61 µs 🔴 +53%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 181.49 µs 268.59 µs 🔴 +48%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.06 ms 2.96 ms 🔴 +44%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 75.69 µs 108.46 µs 🔴 +43%
MatrixOpsBenchmark.Invert(Count: 4096) 89.51 µs 127.52 µs 🔴 +42%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 542.88 µs 760.34 µs 🔴 +40%
MatrixOpsBenchmark.Concat(Count: 4096) 155.79 µs 218.10 µs 🔴 +40%
PathBoundsBenchmark.TightBounds(Points: 64) 729.6 ns 1.01 µs 🔴 +39%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 260.70 µs 359.39 µs 🔴 +38%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 198.5 ns 271.5 ns 🔴 +37%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 992.69 µs 1.36 ms 🔴 +37%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 190.25 µs 259.89 µs 🔴 +37%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 10.19 µs 13.70 µs 🔴 +34%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 719.22 µs 965.39 µs 🔴 +34%
PathBoundsBenchmark.TightBounds(Points: 1024) 7.92 µs 10.55 µs 🔴 +33%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 164.87 µs 219.01 µs 🔴 +33%
RuntimeEffectShaderBenchmark.DrawFrame 4.15 ms 2.85 ms 🟢 -31%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.61 ms 2.06 ms 🔴 +28%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 137.66 µs 173.47 µs 🔴 +26%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.65 µs 10.87 µs 🔴 +26%
…and 8 more

Windows

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.29)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 256) 197.8 ns 137.5 ns 🟢 -30%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 11.67 ms 8.62 ms 🟢 -26%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.34 ms 2.47 ms 🟢 -26%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.25 µs 1.70 µs 🟢 -25%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 2.86 ms 2.19 ms 🟢 -23%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 819.67 µs 632.16 µs 🟢 -23%
ColorMathBenchmark.ToColorF(Colors: 4096) 14.09 µs 10.96 µs 🟢 -22%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 12.97 µs 10.10 µs 🟢 -22%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 262.51 µs 208.17 µs 🟢 -21%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 968.73 µs 771.31 µs 🟢 -20%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 358.38 µs 285.46 µs 🟢 -20%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 85.90 µs 68.51 µs 🟢 -20%
MatrixOpsBenchmark.Invert(Count: 4096) 148.12 µs 118.27 µs 🟢 -20%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 5.34 µs 4.28 µs 🟢 -20%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 2.14 ms 1.74 ms 🟢 -19%
RuntimeEffectShaderBenchmark.DrawFrame 1.21 ms 982.76 µs 🟢 -19%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.34 ms 1.09 ms 🟢 -18%
ColorMathBenchmark.PreMultiply(Colors: 4096) 14.90 µs 12.21 µs 🟢 -18%
ColorParseBenchmark.Parse(Iterations: 1000) 79.73 µs 66.42 µs 🟢 -17%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.56 µs 7.13 µs 🟢 -17%
MatrixMapPointsBenchmark.MapRect(Points: 256) 8.04 µs 6.77 µs 🟢 -16%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 136.92 µs 115.31 µs 🟢 -16%
MatrixOpsBenchmark.Concat(Count: 4096) 256.76 µs 217.62 µs 🟢 -15%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 128.22 µs 109.18 µs 🟢 -15%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.60 ms 2.23 ms 🟢 -14%
…and 6 more

macOS

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.29)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 256) 129.9 ns 188.4 ns 🔴 +45%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 175.25 µs 228.10 µs 🔴 +30%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.54 µs 1.93 µs 🔴 +25%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 690.64 µs 829.26 µs 🔴 +20%
ColorParseBenchmark.Parse(Iterations: 1000) 64.93 µs 76.99 µs 🔴 +19%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 247.64 µs 290.69 µs 🔴 +17%
MatrixOpsBenchmark.Invert(Count: 4096) 65.34 µs 54.27 µs 🟢 -17%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 661.20 µs 552.37 µs 🟢 -16%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.67 ms 2.29 ms 🟢 -14%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 7.60 µs 8.50 µs 🔴 +12%
ColorMathBenchmark.ToColorF(Colors: 4096) 4.99 µs 5.53 µs 🔴 +11%
ColorMathBenchmark.PreMultiply(Colors: 4096) 8.34 µs 9.20 µs 🔴 +10%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.15 µs 1.26 µs 🔴 +9%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.47 ms 1.36 ms 🟢 -7%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 18.06 µs 19.28 µs 🔴 +7%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 66.52 µs 70.65 µs 🔴 +6%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 5.85 ms 5.49 ms 🟢 -6%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 550.76 µs 583.36 µs 🔴 +6%

📈 Full interactive perf-dashboard & run details →

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0ed2f589-f263-48f0-aac4-6bd7aeee32ff
mattleibow added a commit that referenced this pull request Aug 20, 2026
[release] Move HarfBuzzSharp M151 to its revision bucket (#4832)

Context: #4833

M150 and M151 both carried native HarfBuzz 14.2.1 while independently
incrementing the same fourth version component. That allowed servicing releases
from separate Skia milestones to request identical HarfBuzzSharp package
versions.

Treat M150, which adopted 14.2.1, as the base 0-99 bucket and move the pending
M151 release from 14.2.1.3 to 14.2.1.103. Update the file version and the ten
HarfBuzzSharp package entries together while leaving the native release,
soname, assembly version, and SkiaSharp versions unchanged.

Record the adoption-relative rule beside the version entries: later milestones
on the same native X.Y.Z add 100, while an upgrade on main resets to zero and
establishes a new base. Older servicing lines remain on their existing native
HarfBuzz version.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@mattleibow
mattleibow merged commit d827f27 into main Aug 20, 2026
22 of 24 checks passed
@mattleibow
mattleibow deleted the mattleibow-harfbuzz-version-buckets branch August 20, 2026 22:39
@mattleibow mattleibow mentioned this pull request Aug 20, 2026
5 of 14 tasks
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@mattleibow mattleibow mentioned this pull request Sep 2, 2026
7 of 14 tasks
mattleibow added a commit that referenced this pull request Sep 2, 2026
[skills] Add guarded Skia update landing workflow (#4918)

Context: #4833

Add a maintainer-controlled workflow for landing an already-reviewed
mono/skia and mono/SkiaSharp update pair. Keep both GitHub merges manual while
automating the deterministic release-branch and parent-repin operations.

~~ Guarded two-repository landing ~~

Discover reciprocal PR pairs before requesting approval and require selection
when multiple updates are open. Add ten eval scenarios covering pair selection,
release preservation, servicing no-ops, conflicting refs, merge ancestry, and
local or workflow-based parent repins.

Prepare matching release branches from the exact native and parent base commits
when a main update replaces a product line. Treat existing release targets as
servicing updates, preflight both destinations, create the native branch first,
and never move an existing ref.

Verify that the merged native commit is a two-parent merge containing the
reviewed head with an identical tree. Update only the Skia gitlink and matching
Component Governance hash, recheck remote tips before mutation, and default
both PowerShell helpers to read-only operation unless `-Push` is supplied.

~~ Keep HarfBuzz revisions milestone-scoped ~~

Move the reusable version-update helper and its tests into the update-skia
skill. Advance the HarfBuzzSharp package revision bucket by 100 for every
crossed Skia milestone while the native HarfBuzz version remains unchanged,
including partial-run repair and idempotent reruns.

Extend publishing coverage for higher revision buckets so release preparation
continues incrementing within the active milestone allocation instead of
crossing into a neighboring milestone's reserved range.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added this to the 4.152.0-rc.1 milestone Sep 7, 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