Repository navigation
[4.152 RC1] Merge main into release branch - #4875
Conversation
## Description Synchronizes `dnceng/internal` repository `dotnet-SkiaSharp` with the exact latest `mono/SkiaSharp` GitHub `main` commit fetched on 2026-08-18. - GitHub `main` source SHA: `46ea7244b6ab7e021432dda16451c93e5c7a1117` - dnceng `main` target baseline SHA: `1911c103c7e7aa96eede08ba7e16fbb376ebcd20` - Ancestry: dnceng `main` is an ancestor of GitHub `main`; the range is `0` dnceng-only / `217` GitHub-only commits. - Branch construction: fast-forward reference to the GitHub tip; no merge commit and no conflicts. - GitHub context: the source tip is merged PR [#4802](#4802), commit `46ea7244b6ab7e021432dda16451c93e5c7a1117` (`build: onboard Arcade infrastructure (#4802)`). **This is only a synchronization of `main`. It does not merge, modify, or replace the active `dev/dnceng-pipelines` pipeline migration branch.** **Related issues** Related to #4802 **Required skia PR** None. **Areas affected** The synchronized 217-commit GitHub range spans the repository; all content is inherited unchanged from GitHub `main`. - [x] Managed API (`binding/`) - [x] Native / C API (`externals/skia/src/c`, `include/c`) - [x] Generated P/Invoke bindings - [x] Native dependency or Skia update - [x] Views & integrations - [ ] Rendering output / visual behavior - [x] Performance - [x] Tests - [x] Build, packaging, or CI - [x] Documentation or samples ## Changes No sync-specific public API or behavioral changes. The branch exactly mirrors the already-merged GitHub `main` tree at `46ea7244b6ab7e021432dda16451c93e5c7a1117`. ## Testing Repository tests were not rerun for this transport-only sync. Integrity validation performed: - fetched both remote `main` refs immediately before branch creation; - confirmed merge base is the dnceng target SHA and dnceng `main` is an ancestor; - confirmed the source branch SHA equals the fetched GitHub `main` SHA; - confirmed both dnceng `main` and GitHub `main` are ancestors of the source branch; - confirmed zero commits and zero tree differences exist between the source branch and GitHub `main`; - confirmed no conflicts occurred; - confirmed `dev/dnceng-pipelines` remained unchanged at `08fa356193575fabf87fbc4c086b824f059a6423`. ## Checklist - [x] Tests added or updated (not applicable: exact transport of an existing GitHub `main` tree; see Testing) - [x] `Changes` above lists all sync-specific public API and behavioral changes (`None`) - [x] New/changed public API docs issue (not applicable to this synchronization PR) - [x] Native companion PR and regenerated bindings (not applicable to this synchronization PR)
string.Concat(char,char,char,char) binds to Concat(object,...) and boxes every char (4 allocations/call). Write into a stackalloc buffer and materialize once via new string(char*,0,4) instead: ~6x faster, 280->32 bytes/op, bit-identical output on all TFMs. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
Font.Shape called features?.ToArray() unconditionally, allocating a fresh Feature[] copy on every shape call even on the common params Feature[] path where the caller already owns an array. hb_shape_full only reads the features (const hb_feature_t*), so pinning the caller's array directly is safe and produces identical shaping. Benchmark (net10.0, x64, Linux, FeatureCount=1): 610.3 ns/72 B -> 575.8 ns/0 B (~5.7% faster, per-call allocation eliminated). Equivalence test proves glyph infos/positions are bit-identical for array vs non-array feature lists. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
[docs] Improve NuGet package READMEs (#4714) Context: #4714 Replace one-sentence package pages with package-aware onboarding while keeping the concise NuGet description separate from the long-form README. This changes package documentation and packing metadata only; it does not change public APIs or runtime behavior. ~~ Give primary packages usable onboarding ~~ Add co-located `PACKAGE-README.md` files for `SkiaSharp`, `HarfBuzzSharp`, `SkiaSharp.Views`, `SkiaSharp.Views.Maui.Controls`, and `SkiaSharp.Views.Blazor`. The pages explain capabilities and package selection, show working installation and drawing or shaping examples, and link to Microsoft Learn, the DocFX guides, samples, galleries, support, and contribution entry points. Keep each source beside its project so package ownership stays obvious and content can evolve independently. Pack those files unchanged, and keep the pages text-first until a package-suitable gallery image is available. ~~ Generate useful defaults for the package family ~~ The previous target wrote `PackageDescription` verbatim to `README.md`, leaving supporting and native-assets packages with only a sentence. Discover a co-located custom file (or explicit `PackageReadmeSource`) and otherwise render a shared fallback with package badges, installation, documentation, support, and licensing guidance. Drive variations through explicit `PackageReadme*` properties rather than inferring semantics from package IDs. Native-assets metadata stays in `NativeAssets.Build.targets`, HarfBuzz packages get shaping-specific resources, and MAUI Core and Desktop.Common identify the package an application should install. Route native `PackageNotes` to one details section without duplicating them in the short description. README generation completed for the 41 packable projects under `binding/` and `source/`. The PR preview artifact contained 40 NuGet packages, and every package declared and carried a root `README.md`. ~~ Correct supporting package identities ~~ Replace the copied Skottie descriptions on `SkiaSharp.Resources` and `SkiaSharp.SceneGraph`. Resources now describes its resource-loading role. SceneGraph now describes invalidation tracking for Skottie animations instead of promising composition and rendering APIs. The review correction is intentionally narrow: a public-surface scan found only `InvalidationController` in SceneGraph, while the consuming entry points are `SkiaSharp.Skottie.Animation.Seek*`. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
[performance] Build Android on Linux and reduce CI overhead (#4815) Context: #4816 Context: #4818 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1557164 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1559377 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1559994 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1560012 Context: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15017102 Context: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15030082 Context: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15032120 Context: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15032942 Move Android native production to four Linux-container jobs, make native bootstrap setup match the work each job performs, and stop special-package creation from rebuilding managed outputs. The final cache-disabled public run completed in 3h30m15s instead of 6h17m44s for cold main; raw agent usage fell from 3,087.2 to 1,562.4 minutes. Main receives additional policy-injected work, so those are end-to-end operational figures; the direct task and topology measurements below are the causal evidence. The final public run succeeded end to end. DevDiv native and package/signing runs also succeeded. Its test run passed managed builds, samples, and every test job except a macOS tests-netcore job canceled at 180 minutes without a product or test error. Exact-main DevDiv and the automatic public PR run reproduced the same timeout, while the cache-disabled final run passed macOS tests, so the hang was accepted as pre-existing and non-blocking. ~~ Native bootstrap and checkout ~~ Container-native jobs installed Python, Ninja, and .NET on the host even though the toolchain and Cake invocation run inside the image. Native source jobs also initialized every submodule, while merge-only jobs fetched source they never used and configured build variables a second time on cache misses. Skip host Ninja and .NET for Docker-native jobs, retain Python whenever direct execution or cache-key computation needs it, and preserve every direct Windows/macOS prerequisite. Source jobs now initialize only Skia and depot_tools; merge jobs initialize no submodules; build variables are configured once. The new controls default to the old managed-job behavior. Across the paired runs, full recursive submodule checkouts fell from 65 to zero, replaced by 56 targeted native checkouts. Python selection fell from 88 to 38, Ninja installation from 61 to 15, and .NET installation from 85 to 39, while the 119 required artifact downloads were preserved. ~~ Android native production ~~ The four Android ABIs were built on Windows and duplicated on macOS even though native merge consumed only the Windows artifacts. Enable the existing Android Cake targets on Linux, build x86, x64, arm, and arm64 in four parallel Docker jobs, remove both host matrices, and make the Linux artifacts canonical merge inputs. The image tracks Microsoft's Azure Linux Android prerequisite tag, verifies NDK r27c (27.2.12479018) and Ninja, and installs .NET SDK 10.0.108 with the repository's standard dotnet-install script because the prerequisite image does not contain the SDK. Startup diagnostics record the NDK path, CPU count, and Ninja version. The moving base tag is not part of the output-cache key, so a remote tag update is consumed only after a cache miss, cache-disabled run, or tracked input change; it is deliberately not pinned by digest. This replaces eight host jobs with four Linux jobs. In the paired cold runs, Android agent usage fell from 429.9 to 61.6 minutes and the critical job from 1h14m10s to 15m34s. Across all four ABIs, both native libraries retained the four-file .so/.dbg inventory, matching ELF machines, exported dynamic symbols, DT_NEEDED sets, GNU debug links, and 0x4000 LOAD alignment. ~~ Special-package work ~~ nuget-special creates internal wrapper packages from existing native, normal NuGet, and symbol outputs, but its root target depended on libs and rebuilt the managed graph. Its separate job also installed Node, Android SDK/JDK, workloads, and every submodule even though none participates in wrapper creation. Remove the libs dependency while keeping normal and special packaging as separate, ordered jobs. Normal packaging keeps Node for TypeScript-backed projects and checks out only the API-docs submodule. Special packaging consumes the published normal/native artifacts, checks out no submodules, and skips Node, Android, and workload provisioning while retaining the .NET SDK, tool restore, and Visual Studio selection. Output rearrangement runs only on cache misses so restored artifacts keep their published layout. The package stage fell from 2h21m00s to 43m36s, with the special job falling from 1h08m07s to 12m51s. All six package artifacts remained, their sizes matched cold main within 1%, package scanning passed, and DevDiv signing completed. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
[release] Reserve HarfBuzzSharp versions by Skia milestone (#4833) Context: #4832 M150, M151, and M152 all use native HarfBuzz 14.2.1, but branch-local release increments previously reused the same fourth version component. Reserve 100 HarfBuzzSharp revisions per Skia milestone, relative to the milestone that first adopts each native X.Y.Z, so parallel release lines cannot request the same package version. Because M150 adopted 14.2.1, move main and M152 to the 200-299 bucket by setting the HarfBuzzSharp file version and ten package entries to 14.2.1.200. Keep the native release, soname, assembly version, and SkiaSharp versions unchanged. Document that a native HarfBuzz upgrade occurs on main, resets the revision to zero, and makes the adopting milestone the new base; older release lines remain on their existing native version. Record X.Y.Z as the normalized N=0 form. Teach the dependency-update workflow the same rule and cover high bucket increments plus the M151 transition in the release script tests. All 25 release-script tests pass. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Latest: Merge pull request #195 from mono/mattleibow-upgrade-agentic-workflows Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… path (#4710) The else-branch of ToHarfBuzzBlob (for non-memory-backed streams) copied bytes into CoTaskMem but its Blob release callback only freed the CoTaskMem and never disposed the consumed SKStreamAsset, leaking its native handle until finalization. Mirror the memory-backed branch by disposing the asset in the release callback. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: Matthew Leibowitz <[email protected]>
Stop triggering active public pipelines for the retired develop branch and align the CI status documentation with the supported branch set. Remove the obsolete DevDiv badge while retaining the public CI badge. Co-authored-by: Copilot App <[email protected]>
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]> Co-authored-by: Copilot App <[email protected]> Copilot-Session: 70ef3c77-9d05-43ad-afbe-297dabd3f05f
…4783) SKRuntimeEffectUniforms.Reset() replaced its owned, ref-counted SKData buffer with a freshly-allocated one without disposing the previous buffer, leaking a native SkData allocation on every call that only the finalizer could reclaim. Dispose the old buffer before assigning the new one. Adds a regression test that proves the previous wrapper is deregistered (disposed) immediately after Reset(). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
Restore SkiaSharp.Vulkan.Silk.NET package production (#4841) Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1562829 The full source solution still included the Silk.NET Vulkan project, but production builds and NuGet packing use the platform-specific solution filters. Those filters selected the SharpVk Vulkan package while omitting Silk.NET, so the package declared in VERSIONS.txt was never produced. Add the project to the Windows, macOS, and Linux package filters and register its 4.152.0 baseline in SUPPORTED_NUGETS. This restores both stable and preview package inventory without changing managed or native APIs. CI completed the Package NuGets stage successfully and published SkiaSharp.Vulkan.Silk.NET.4.152.0-pr.4841.1.nupkg. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
Align .NET SDK, workload, and container pins (#4842) Context: #4803 Context: c4d7f7e Context: d47c91c Context: 7b00dbf This isolates the SDK and container alignment from the broader dnceng migration so it can land without adopting Arcade identity, publishing, signing, or pipeline topology changes. It aligns repository build environments while preserving the compatibility exceptions required by Apple and WinUI jobs. ~~ Repository SDK and Apple workload compatibility ~~ The repository selected SDK 10.0.108 while managed Apple jobs already ran on macOS 15 with Xcode 26.3. Move `global.json`, its `tools.dotnet` selector, and `DOTNET_VERSION` to 10.0.203, and restrict roll-forward to servicing patches with `latestPatch`. Keep `DOTNET_WORKLOAD_VERSION` at 10.0.202 because that workload set remains compatible with the existing Xcode 26.3 environment. Preview SDK and workload values remain unchanged. The upgrade guide records that workload versions can lag the SDK patch when Apple toolchain support requires it. ~~ WinUI's MSBuild 17.x SDK ceiling ~~ Native WinUI C++/WinRT generation still runs through Visual Studio MSBuild 17.x, which cannot load .NET 10.0.2xx or newer. Keep `native/winui/global.json` at 10.0.108 and add an `additionalDotNetSdks` bootstrapper input so the WinUI and WinUI ANGLE jobs for x86, x64, and arm64 install the final 10.0.1xx SDK beside the repository SDK. This preserves the modern SDK for Cake and managed work without forcing an unsupported SDK into C++/WinRT. ~~ Repository-bound and consumer container roles ~~ Containers that mount or build the checkout must satisfy root `global.json` and should not silently move to another servicing SDK. Pin the docs image, native Android, Linux, Tizen, and WASM SDK installs, CI container-test images, and the repository-level Linux test image to 10.0.203 while retaining each distro or OS suffix. The WASM installer now uses `--version` instead of treating an exact patch as a channel. Isolated sample images and the generated Linux package-consumer test remain unpinned: their contexts exclude root `global.json`, and the moving `10.0` tag intentionally tests the latest .NET 10 servicing SDK. The upgrade guide now documents this boundary and the manifest checks needed for future updates. Manifest checks confirmed the generic, Noble, Alpine 3.23, Azure Linux 3.0, and Nano Server LTSC 2022 SDK images, plus the Linux x64 and arm64 SDK archives used by `dotnet-install.sh`. Repository dependency-cache validation and the managed binding build also completed successfully. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
Generate Apple native symbol packages during pack (#4846) Context: NuGet/Home#15056 Context: NuGet/Home#10860 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1565520 Generate native `.symbols.nupkg` outputs for the SkiaSharp and HarfBuzzSharp Apple packages from the normal Cake/NuGet graph. Keep the customer packages symbol-free and preserve their identity, metadata, and runtime payload without reopening or modifying completed archives. ~~ Exact symbol-only pack content ~~ NuGet's supported `TfmSpecificDebugSymbolsFile` path filters symbol files by source extension. Apple's framework dSYMs instead contain extensionless `Contents/Resources/DWARF/<module>` files, and staging them with a `.dwarf` extension changes the final package path. Ordinary `Pack=true` content also enters the customer package, while `IncludeSource` forces content under `src/`. Introduce a generic `PackageSymbolFile` item and process it through a guarded second invocation of the same project's ordinary `Pack` target. The outer pack writes the customer package normally, then invokes an isolated `NoBuild` pack with `PackNativeSymbols=true`. The inner pack maps only `PackageSymbolFile` items to `None Pack=true` with their exact `PackagePath`, after which the result is moved to the standard `.symbols.nupkg` name. The recursion guard and isolated intermediate directory keep the workaround deterministic while retaining NuGet's normal package construction and metadata handling. ~~ Apple dSYM and Catalyst payloads ~~ Declare symbol content for the SkiaSharp and HarfBuzzSharp native-assets projects on macOS, iOS, Mac Catalyst, and tvOS. The packages carry the complete arm64 and x86_64 dSYM bundles for each shipped device or simulator runtime while leaving the existing customer `PackageFile` declarations unchanged. Mac Catalyst continues to ship its symlink-preserving `framework.zip`. Because the symbol uploader does not recurse into that archive, its symbol package also exposes the real `<library>.framework/Versions/A/<library>` Mach-O alongside the dSYMs. Build 1565520 emitted eight stable and eight preview Apple symbol packages. Inspection of every pair confirmed matching package metadata, byte-identical customer runtime payloads, no dSYM content in customer packages, official extensionless DWARF names, complete dSYM trees, and real Catalyst versioned modules. ~~ Deterministic package output cleanup ~~ Clear existing `.nupkg` and `.snupkg` files before the complete stable and preview repack, and clear both formats from the symbol destination before moving new symbol packages. This prevents an artifact left by another version or platform build from surviving missing wildcard inputs and being published as part of the current package set. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
Migrate CI to dnceng with Arcade shipping and transport (#4803) Context: #4775 Context: #4800 Context: #4801 Context: #4802 Context: #4838 Context: #4842 Context: #4846 Context: #4859 Context: https://dev.azure.com/dnceng/internal/_git/dotnet-SkiaSharp/pullrequest/63954 Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3057398 Replace the legacy DevDiv Native -> Managed -> Tests chain with repository-owned dnceng pipelines and a standard Arcade V3 package flow. Keep public validation unsigned, reserve protected identities for internal signing, scanning, BAR registration, and promotion, and leave the binding, native, and runtime product surface unchanged. ~~ Connected dnceng topology ~~ The split Native and Package definitions handed artifacts across independently numbered runs, which made source, package, and test provenance harder to keep connected. Make internal definition 1642 own Prepare, Native, and Package in one Build run, and make Tests 1630 consume the folder-qualified `\dotnet\skiasharp\skiasharp-package` resource. Trigger 1642 directly for `main` and `release/*` path changes, plus a daily main schedule, instead of waiting for completion of a separate Native pipeline. Remove the obsolete native-only and internal-complete YAML roots, and derive managed, test, and sample dependencies from the shared build/test pipeline role. Public definition 345 and downstream Tests 1630 keep those shared stages through the local output adapter; for public CI this avoids the inaccessible private 1ES template repository. Expansion guards require the internal project, a non-PR reason, and a non-PR ref before signing, compliance, or publishing stages can exist. ~~ dnceng execution policy ~~ Move the internal root from the DevDiv MicroBuild 1ES template to the released v1 1ES Official template, and move its Windows and Linux agents to NetCore1ESPool-Internal. Apple jobs remain on Microsoft-hosted macOS images. Armory, BinSkim, CredScan, ESLint, PoliCheck, and PSScriptAnalyzer are configured to break; CodeQL also runs on non-default branches. Network isolation remains in Audit while permanent mirrors and allowlisting are completed. The combined root carries forward the managed Apple macOS 15/Xcode 26.3 and native Apple macOS 14/Xcode 16.2 split. The repository remains on SDK 10.0.203 and workload set 10.0.202, but Visual Studio MSBuild 17.x cannot load .NET 10.0.2xx. Install `DOTNET_VERSION_WINUI` (10.0.108) side by side on the three WinUI C++/WinRT jobs. Build and merge the MSVC Win32 artifacts unconditionally, dropping the former `System.TeamProject == 'devdiv'` gate. ~~ Provider-neutral build identity ~~ Replace feature-name and loosely parsed downstream counters with Arcade's `yyyyMMdd.revision` OfficialBuildId, converted to the existing `short-date.revision` package suffix. Normalize GitHub and Azure Repos PR numbers, source commits, source branches, and repository URLs before packing; fail when required identity is absent or an inherited Build run name is malformed. PR builds use `pr.<number>`, scheduled builds use `nightly`, and ordinary builds retain their source-controlled label. A producing pipeline may select the `stable` sentinel only on an internal `release/*` branch; it clears the suffix to produce exact `X.Y.Z` packages. Downstream Tests inherit the selected Build run name, including an exact-release identity, rather than generating a second identity. Each run creates one transport alias family as well: PR aliases for PR validation and branch aliases otherwise. Remove commit aliases so one BAR cannot receive multiple versions of the same transport package ID. Package outputs are not cached because their versions and transport family depend on run identity, not only repository inputs. ~~ Deterministic Arcade package inputs ~~ Replace the separate normal and special packaging jobs, and the stable, preview, and symbol transport variants they produced, with one Cake graph in a single `package_windows` job. It publishes raw `nuget` and `nuget_special` artifacts plus prepared `arcade_shipping`, `arcade_nonshipping`, and `PdbArtifacts` inputs. Shipping contains product and explicit symbol packages; NonShipping contains the run's single `_NuGets`/`_NativeAssets*` transport family. `_NuGets` uses numbered dependency packages to keep each payload chunk near 200 MB. Arcade V3 expects `PdbArtifacts`, so provide real loose symbols rather than a permanent placeholder or manufactured fallback packages. For product packages without an explicit symbol package, extract implementation and runtime PDBs under package/version/TFM/RID paths. Exclude `ref/**`, reject ZIP paths that escape the package root, avoid loose-PDB duplication for packages with explicit symbols, and emit `.empty` only when no eligible PDB exists. Consume the Apple symbol packages introduced by #4846 instead of manufacturing fallback copies. The public PR downloaders now query definition 345 by exact PR merge ref, consume the canonical `nuget` artifact, exclude `.symbols.nupkg`, and use isolated temp directories. Documentation and sample generation select the single package family instead of assuming stable and preview packages coexist. The exact 3057398 artifact audit matched raw and prepared package payloads, contained 209 path-safe loose PDBs, and confirmed that the Package stage emitted only the five contract artifacts, with no `package_windows` artifact. ~~ Self-verifying build logic ~~ Build identity, API Scan input preparation, and Arcade asset assembly encode release constraints that would otherwise fail only in later or protected stages. Add dedicated suites for each and run them as pipeline gates rather than relying on YAML string checks or post-release inspection. Prepare runs `SetBuildVariables.Tests.ps1` and `PrepareApiScanInputs.Tests.ps1` before product stages, so identity failures and API Scan input drift are caught even when API Scan does not expand. Package runs `AssembleArcadeAssets.Tests.ps1` after packing against real ZIP fixtures, proving PDB extraction, `ref/**` exclusion, traversal rejection, explicit-symbol ownership, PR/branch transport selection, and `.empty` fallback on each run. ~~ Shipping-only signing ~~ Replace the legacy SignList and Arcade defaults with the explicit policy in `eng/Signing.props`. Any new signable payload must be added to one of its first-party, Mac developer, third-party, or skipped classifications for signing validation to succeed. First-party binaries use the repository's certificate mappings and skip the third-party copyright check because they intentionally lack Microsoft copyright metadata. Only prepared Shipping NuGets enter Arcade signing; product and explicit symbol packages are signed together. `eng/SignCheckExclusionsFile.txt` marks NonShipping transport `DO-NOT-SIGN, DO-NOT-UNPACK` and marks JavaScript and generated WebGPU payloads `DO-NOT-SIGN`; those payloads use `CertificateName=None` and remain authenticated by their signed NuGet container. `DO-NOT-SIGN` is fail-closed, so SignCheck fails if a listed file is ever signed. Main and release branches select real signing automatically. Other trusted internal branches test-sign unless `forceRealSigning` is requested, and forced BAR side effects additionally require `registerInBar`. Use standard Arcade SignTool and SignCheck validation rather than retaining the migration prototype's duplicate recursive verifier. ~~ API Scan input coverage ~~ Move API Scan into a repository-owned internal stage that downloads the current `nuget` and `native_msvc` artifacts, authenticates through the dedicated WIF connection, and runs in release mode. Package extraction preserves symbols and builds checked surrogates for Win32, NanoServer, and WinUI, including shipped ARM64 binaries that require API-compatible x64 MSVC inputs. Use the same HTTPS SymWeb symbol path in the scan task and generated surrogate configuration. Input preparation fails when packages, binaries, PDBs, surrogate files, or configured target matches are absent. Reporting, TSA upload, and PostAnalysis use Note-level API Scan policy; raw logs are published for audit. The stage runs when explicitly requested and on scheduled main builds, independently of BAR registration. ~~ BAR registration and promotion ~~ Generate one Arcade V3 manifest from signed Shipping and prepared NonShipping artifacts, with explicit symbol blobs and the standard PDB artifact alongside it. Protected registration is structurally limited to non-PR internal builds. Main and release branches register automatically; a forced feature-branch run must opt into both real signing and BAR registration. Use standard post-build validation with `publishAssetsImmediately: false` and `requireDefaultChannels: true`, so a missing Maestro mapping fails closed and Darc performs configured channel promotion only after asset publication finishes. NuGet.org publication remains a separate protected operation; #4859 carries the release-tooling adaptation to this BAR model. Exact Build 3057398 completed real signing, Note-level API Scan, BAR registration, asset validation, and Darc promotion. BAR 328638 reached General Testing with 41 shipping package assets, 22 non-shipping transport assets, 14 symbol blobs, and one manifest, with no recorded incoherencies or staleness. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
## Description Synchronizes `dnceng/internal` repository `dotnet-SkiaSharp` with the exact latest `mono/SkiaSharp` GitHub `main` commit fetched on 2026-08-26. - GitHub `main` source SHA: `2dd508790e44e115467bf38fb543ab69eebb4584` - dnceng `main` target SHA: `28c861a1509326d34e18bdedbfc72ccfc7320722` - Shared GitHub base SHA: `46ea7244b6ab7e021432dda16451c93e5c7a1117` - Range: 16 GitHub commits / 1 target-only commit (the previous AzDO sync merge) - Source construction: the AzDO source branch points directly at GitHub `main`; no commits were rebased, squashed, cherry-picked, or rewritten. **Completion requirement: use Merge (no fast-forward). Do not squash or rebase.** This preserves every GitHub commit and records this synchronization as a merge commit on AzDO `main`. **Related issues** Related to #4803 **Required skia PR** None — this transports already-merged GitHub commits unchanged. **Areas affected** The synchronized GitHub range spans the repository; all content is inherited unchanged from GitHub `main`. - [x] Managed API (`binding/`) - [x] Native / C API (`externals/skia/src/c`, `include/c`) - [x] Generated P/Invoke bindings - [x] Native dependency or Skia update (libpng, HarfBuzz, FreeType, zlib, milestone bump, …) - [x] Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …) - [ ] Rendering output / visual behavior - [x] Performance - [x] Tests - [x] Build, packaging, or CI - [x] Documentation or samples ## Changes None — transport-only synchronization; no sync-specific public API or behavioral changes. ## Testing Repository tests were not rerun for this transport-only sync. Integrity validation performed: - fetched both remote `main` refs immediately before branch creation; - confirmed the merge base is the previous GitHub sync tip; - confirmed the source branch SHA exactly equals the fetched GitHub `main` SHA; - confirmed the range contains 16 GitHub commits and only the prior AzDO merge commit on the target side; - confirmed no commits were rewritten and no working-tree content was modified. ## Checklist - [x] Tests added or updated (not applicable: exact transport of already-tested, merged GitHub commits; see Testing) - [x] `Changes` above lists all sync-specific public API and behavioral changes (`None`) - [x] New/changed public API docs issue (not applicable to this synchronization PR) - [x] Native companion PR and regenerated bindings (already handled by the transported GitHub commits)
Merge source d93f0fa into release tip 4bef32e. Preserve the RC1 preview label while adopting main's dnceng and Arcade infrastructure. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0e252e1d-547c-4602-ba72-6b7aec10044c
📦 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 -- 4875PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4875"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4875/packages --name skiasharp-pr-4875More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4875 |
📊 SkiaSharp benchmarks — PR #4875No ⭐ source-build ( |
Route externals-download through the existing .NET Libraries non-shipping transport feed and validate the GitHub benchmark fast-path contract. Related to #4875. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2ca78be2-3b8d-407a-bf39-229f39b24f17
Keep benchmark downloads on the documented SkiaSharp transport feed and reject the unapproved shared .NET Libraries transport substitution. Related to #4875. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2ca78be2-3b8d-407a-bf39-229f39b24f17
Apply the final maintainer decision to route externals-download through dotnet-libraries-transport and reject the unprovisioned product-specific endpoint in contract tests. Related to #4875. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2ca78be2-3b8d-407a-bf39-229f39b24f17
📦 Artifact size reportPackages from this PR (build Total Packages
+39 package(s) unchanged (< 50.0 KB). Per-file changes
|
| File | Size |
|---|---|
runtimes/win-arm64/native/libGLESv2.pdb |
64.5 MB → 64.4 MB (🟢 −128.0 KB) |
runtimes/win-x86/native/libGLESv2.pdb |
67.3 MB → 67.2 MB (🟢 −80.0 KB) |
runtimes/win-x64/native/libGLESv2.pdb |
66.6 MB → 66.6 MB (🟢 −64.0 KB) |
Informational only — this never blocks the PR. Native binaries are labelled by os/arch.
Rely on the existing cross-platform benchmark CI to validate feed resolution instead of duplicating implementation details with regex assertions. Related to #4875. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2ca78be2-3b8d-407a-bf39-229f39b24f17
Description
Merge the live
maintipd93f0fa196daeea958ad6ae64e6b8a001f39ab81into the liverelease/4.152.0-rc.1tip4bef32e1e494e8ef4c4a70b7b2092d268b077a8awith a normal two-parent merge commit.PR #4803 is merged at
2dd508790e44e115467bf38fb543ab69eebb4584and is an ancestor of the selectedmaintip, so this brings the merged dnceng/Arcade infrastructure and all subsequentmainancestry into RC1. The only conflict wasscripts/azure-templates-variables.yml: the resolution preserves the release branch'sPREVIEW_LABEL: 'rc.1'while adoptingmain's ArcadeOfficialBuildIdflow, SDK/workload pins, and pipeline variables.scripts/VERSIONS.txtretains SkiaSharp4.152.0and HarfBuzzSharp14.2.1.200identities.This is a clean
main-to-release merge. It does not copy, revive, modify, or close standalone backport PR #4864.Related issues
Related to #4803.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None — this merge adds no conflict-specific public API or observable behavior. The resulting release tree matches live
mainexcept for preserving the RC1 preview label.Testing
d93f0fa^{tree}and the previously validated2dd5087^{tree}are both711f3aa88160e4130c72ebd9c3007ccc42ba65f5;git diff 2dd5087..d93f0fais empty. The later commits are ancestry-only dnceng synchronization merges.mainin exactly one path and one scalar:scripts/azure-templates-variables.yml, changingPREVIEW_LABELfrompreview.0torc.1.git diff --check, SkiaSharp/HarfBuzzSharp package identity assertions, Arcade build-ID/toolchain assertions, required commit trailers, clean worktree, and remote SHA verification.pwshbuild-identity tests, an explicit RC1 build-label assertion, API Scan input preparation tests, cache coverage validation, Arcade asset assembly tests, anddotnet cake --target=externals-macos --arch=arm64on macOS ARM64.skiasharp-transportfeed endpoint currently returns HTTP 404 and still requires provisioning/routing; CI will show whether any active job is blocked by it.Checklist
maintests; no conflict-specific test was needed)Changesabove lists all public API and behavioral changes (or "None.")externals/skiaor C API change, companion PR, or binding regeneration required