Repository navigation
Require deterministic Android native symbol identity - #4843
Conversation
Emit SHA-1 GNU build IDs for both Android native libraries and verify that stripped modules retain matching split-debug identities and valid debug links. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 70ef3c77-9d05-43ad-afbe-297dabd3f05f
📦 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 -- 4843PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4843"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4843/packages --name skiasharp-pr-4843More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4843 |
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
📊 SkiaSharp benchmarks — PR #4843⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 62 slower · 🟢 3 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
📦 Artifact size reportPackages from this PR (build Total Packages
+37 package(s) unchanged (< 50.0 KB). Per-file changes
|
| File | Size |
|---|---|
runtimes/win-x86/native/libHarfBuzzSharp.pdb |
22.0 MB → 22.2 MB (🔴 +264.0 KB) |
runtimes/win-arm64/native/libHarfBuzzSharp.pdb |
22.3 MB → 22.5 MB (🔴 +184.0 KB) |
SkiaSharp.NativeAssets.WinUI
| File | Size |
|---|---|
runtimes/win-arm64/native/libGLESv2.pdb |
64.5 MB → 64.4 MB (🟢 −112.0 KB) |
runtimes/win-x64/native/libGLESv2.pdb |
66.6 MB → 66.5 MB (🟢 −112.0 KB) |
runtimes/win-x86/native/libGLESv2.pdb |
67.3 MB → 67.2 MB (🟢 −96.0 KB) |
runtimes/win-x86/native/libEGL.pdb |
6.5 MB → 6.5 MB (🟢 −16.0 KB) |
Informational only — this never blocks the PR. Native binaries are labelled by os/arch.
Description
Emit deterministic SHA-1 GNU build IDs for the Android SkiaSharp and HarfBuzzSharp native libraries. After splitting debug symbols, the Android build now requires the stripped module and
.so.dbgfile to retain the same nonempty build ID and requires.gnu_debuglinkto name the matching symbol file. This gives symbol tooling a stable identity for resolving split Android debug artifacts.Related issues
None.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None — build-only native symbol metadata enforcement; no public API or runtime behavior changes.
Testing
dotnet cake native/android/build.cake --target=Default --configuration=Release --arch=arm64 --ndk="$HOME/Library/Android/sdk/ndk/29.0.14206865"source-built both Android libraries and passed the new post-strip checks.libSkiaSharp.soandlibSkiaSharp.so.dbg: matching build IDeedaeb4a564e6d4a0d8ab0c6c2d273f5de5d84d2; debug linklibSkiaSharp.so.dbg.libHarfBuzzSharp.soandlibHarfBuzzSharp.so.dbg: matching build IDadbfa4ee04450149c06c855117eba2dd6c76771c; debug linklibHarfBuzzSharp.so.dbg.llvm-readelf.dotnet cake --target=externals-macos --arch=arm64passed to produce host natives from source.dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0passed 6,142 tests across all hosts; one unrelated existing macOSganesh-gl/DiagonalLinesvisual-golden comparison failed. CI will provide the authoritative artifact and test validation.No focused unit test was added because the behavior is exercised and enforced directly by the Android source-build symbol extraction step.
Checklist
Changesabove lists all public API and behavioral changes (or "None.")mono/skiaPR required