Repository navigation
Bump to the next version (4.150.4) after release - #4821
Merged
Merged
Conversation
Contributor
📦 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 -- 4821PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4821"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4821/packages --name skiasharp-pr-4821More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4821 |
mattleibow
added a commit
that referenced
this pull request
Aug 29, 2026
[4.150.3] Merge release/4.150.x Arcade release infrastructure (#4893) Context: #4865 Context: c822bde Context: #4872 Context: 9c28ea4 Context: #4863 Context: 01db053 Context: #4821 Context: 838c32f Context: 502c947 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1572924 Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1571474 `release/4.150.3` was cut from `47601f58` before the neutral Arcade onboarding (#4872) and operational release layer (#4865) landed on `release/4.150.x`. It carries the servicing product bits but cannot pack, sign, scan, or register packages through the Arcade V3 and BAR path proven on `release/4.151.x` by #4863 and on `release/4.150.x` by #4865. Merge the refreshed `release/4.150.x` tip into the servicing branch so both layers arrive together, while retaining exact SkiaSharp 4.150.3 and HarfBuzzSharp 14.2.1.3 identity. Keep 4.150.3's WinUI, Xcode, package, test, native, and runtime topology: the merge touches only `eng/**`, `scripts/**`, `build.cake`, `global.json`, `nuget.config`, `.config/**`, and `.gitignore`, so no managed API, generated binding, Skia submodule, C API, native source, or product behavior changes are included. ~~ True branch merge over cherry-pick ~~ Merge `c822bde03afa06ff71a0d5ea258bc149dd9dc9ef` into `502c94780825b5e77dadfc11e3bfa6eb6320dcea` instead of cherry-picking or squashing the infrastructure. The merge `c648f255339680b508ca00b310221505692b120c` records both tips as parents, so the complete #4872 and #4865 ancestry, and the two-layer rollback boundary those PRs were split to preserve, survive on the servicing branch. ~~ Exact 4.150.3 servicing identity ~~ The source line also carries #4821's post-release bump to SkiaSharp 4.150.4 and HarfBuzzSharp 14.2.1.4, which must not reach a 4.150.3 servicing branch. Resolve the version conflict toward the target: keep `SKIASHARP_VERSION` at 4.150.3, preserve the existing 4.150.0.0 and 1.0.0.0 assembly versions, retain 4.150.3 and 14.2.1.3 file and NuGet versions in `scripts/VERSIONS.txt`, and keep the branch's `stable` preview label while adopting Arcade's `DOTNET_FINAL_VERSION_KIND` and `ARCADE_OFFICIAL_BUILD_ID` build-number flow. Adapt the focused identity test expectations to 4.150.3 and 14.2.1.3. The merged tree therefore differs from the source tip in exactly three files: `scripts/VERSIONS.txt`, `scripts/azure-templates-variables.yml`, and `scripts/infra/native/shared/tests/SetBuildVariables.Tests.ps1`. ~~ Isolated Arcade bootstrap ~~ This branch had no Arcade foundation, so the merge also delivers #4872's Arcade SDK 11.0.0-beta.26414.2, Darc metadata in `eng/Version.Details.xml`, `eng/Version.Details.props`, and `eng/Versions.props`, and the complete generated `eng/common` snapshot of 154 paths. Restore these behind the isolated `eng/NoBuild.proj` graph so the existing Cake build and pipeline entry points continue working. `global.json` gains the `.dotnet` probe path and Arcade `msbuild-sdks` pin, `nuget.config` declares `disabledPackageSources`, and `.gitignore` un-ignores `eng/common` while ignoring `/.dotnet/` and `/.packages/`. ~~ Engineering cache invalidation ~~ Add `eng/**`, `scripts/infra/milestones/**`, and `scripts/infra/perf/**` to the repository's global cache inputs so Arcade and other engineering edits invalidate product cache keys instead of reusing stale native or managed output. Carry the `signing` job's `scripts/infra/signing/**` category even though that directory does not exist on this branch yet, keeping the cache contract aligned with `main`. ~~ Connected dnceng release topology ~~ The internal package definition waited on a separately numbered `SkiaSharp-Native` pipeline resource and exchanged artifacts across runs, obscuring source, package, and test provenance. Give the package root `buildPipelineType: 'build'` so one Build owns Prepare, Native, and Package, add branch triggers for `main` and `release/*` with documentation-only path exclusions, and point the connected Tests definition at the folder-qualified `\dotnet\skiasharp\skiasharp-package` resource. Public validation runs the same repository stage templates through the local 1ES output adapter because dnceng-public cannot reach the private 1ES template repository. Signing, API Scan, and publishing stages expand only when `System.TeamProject` is `internal`, the reason is not `PullRequest`, and the source branch is not a `refs/pull/*` ref, so public and manually queued PR runs cannot acquire protected release side effects. The branch's native-only and complete pipeline roots remain and continue consuming the shared stages. ~~ dnceng execution policy ~~ The internal package root extended the DevDiv MicroBuild 1ES template and loaded shared stages from `DevDiv/Xamarin.yaml-templates`; neither is available to a dnceng-owned pipeline. Move it to the released `v1/1ES.Official.PipelineTemplate.yml` and drop that repository resource. Set Armory, BinSkim, CredScan, ESLint, PoliCheck, and PSScriptAnalyzer to `break: true`, BinSkim having previously been `break: false`, and enable compiled CodeQL including non-default branches, so release-infrastructure regressions fail the build instead of only being reported. Keep `networkIsolationMode: Audit` until permanent mirrors and allowlisting are ready for Enforce. Build and merge the MSVC Win32 artifacts without the historical `System.TeamProject == 'devdiv'` condition. That predicate cannot match in dnceng and would drop the `native_msvc` input that API Scan requires. ~~ Historical SDK and container compatibility ~~ The branch's 10.0.108 SDK is too old to acquire the Arcade packages. Move `global.json` and the checkout-consuming native, WASM, Tizen, and docs containers to SDK 10.0.203 with `latestPatch` roll-forward. Pin workload set 10.0.202, the last set supported by this branch's `macos-15` image and Xcode 26.3 combination. Visual Studio MSBuild 17.x cannot load a 10.0.2xx SDK, so the C++/WinRT projection would fail. Install the retained 10.0.108 SDK side by side through `additionalDotNetSdks` on the WinUI jobs. Update only the Dockerfiles this release line already consumes, keeping their Emscripten 3.1.34 and 3.1.56 payloads. Do not import `SkiaSharp.Vulkan.Silk.NET`, Apple symbol production, preview WASM families, Emscripten 5.0.6 payloads, or container and toolchain families that 4.150 does not ship. ~~ Servicing-pool runtime prerequisites ~~ The branch still defaulted to Microsoft-hosted and `Maui-1ESPT` agents, so it did not inherit Arcade's release-aware routing. Import the pool-provider variables and carry `$(DncEngPublicBuildPool)` or `$(DncEngInternalBuildPool)` through the existing agent objects, selecting servicing pools for `release/*` while retaining queue-time overrides and hosted Apple jobs. Correct the public complete and Tests host objects that paired an Ubuntu image with `os: windows`; the untouched internal complete root keeps its legacy declaration. The lean servicing Linux images exposed assumptions hidden by the general pool. Install OpenJDK, the Android SDK, platform tools, build-tools 35.0.0 and 36.0.0, and the configured `ANDROID_PLATFORM_VERSIONS` API levels on Linux, then pass `AndroidSdkDirectory` into Cake. For Linux WASM tests, download the pinned Chrome 150.0.7871.186-1 package, verify its SHA-256, package name, version, and architecture before installing it, and export `CHROME_PATH`. ~~ Derived build identity ~~ Feature names and loosely parsed downstream counters could give producing and consuming runs different identities. Derive the product build number from Arcade's `yyyyMMdd.revision` `ARCADE_OFFICIAL_BUILD_ID`, drop `FEATURE_NAME`, and normalize GitHub and Azure Repos pull request, branch, commit, and repository identity so Tests inherit the producing run name. Because this branch's label is already `stable`, an internal `release/4.150.3` run clears the preview suffix and sets `DOTNET_FINAL_VERSION_KIND=release`, producing final 4.150.3 packages directly. Any other run reaches that state only by inheriting an exact release identity from an upstream run name; otherwise `set-build-variables.ps1` throws. Cake rejects any final-version kind other than an empty value or `release`, and malformed upstream run names fail instead of yielding a plausible version. PR validation remains labeled `pr.<number>`. Require exact Build run IDs when downloading pipeline artifacts and reject mutable `latestFromBranch` selection, so packaging, signing, and registration consume the run that produced their inputs. ~~ One package and transport family ~~ The historical graph packed stable and preview products separately and then produced stable, preview, symbol, branch, and commit transport variants. Pack one coherent product family in the renamed `package_windows` job and create one PR transport family for PR validation or one branch family otherwise, so BAR cannot receive two versions of the same transport package ID. Shared downloaders drop the commit-alias fallback and resolve transports from the dnceng `skiasharp-transport` feed instead of the retired `xamarin/public/SkiaSharp-CI` feed. Publish raw `nuget` and `nuget_special` artifacts beside the prepared `arcade_shipping`, `arcade_nonshipping`, and `PdbArtifacts` views, and drop `package_normal_windows`, `package_special_windows`, `nuget_preview`, and `nuget_symbols`; the renamed `package_windows` job publishes no artifact of its own. Assembly fails on missing directories, empty package sets, or duplicate package names. Mark the transport project non-shipping and give `_NuGets`, `_NativeAssets`, and `_Dependencies` the Microsoft copyright, MIT expression, and project URL that Arcade requires. Documentation, API diff, and generated sample jobs select the build's single family instead of assuming stable and preview packages coexist. Package jobs no longer restore from the shared build cache because package versions and transport families depend on run identity rather than repository inputs alone. Source proof build 1572924 (`4.150.4-pr.4865.26428.4`) published 46 Shipping packages, comprising 40 products and six explicit symbol packages, and 22 NonShipping transports whose parents close over three managed chunks and 17 native children. ~~ Real loose PDB artifacts ~~ Arcade V3 requires a `PdbArtifacts` input, but cloning product packages into manufactured symbol packages would create false package identities. Keep explicit symbol packages in Shipping and, for products without one, extract implementation and runtime PDBs under their original package, version, TFM, and RID paths. Exclude `ref/**`, reject archive entries that escape the package extraction root, avoid duplicating symbols already owned by explicit packages, and emit `.empty` only when no eligible PDB exists. The Package-stage gate exercises both transport families, explicit-symbol ownership, reference-symbol exclusion, empty output, and traversal rejection. Build 1572924 published 202 loose PDBs across 19 package roots. That ownership shape matches canonical 4.151 build 1571474 (`4.151.3-pr.4863.26427.5`) apart from release identity, 4.150 native paths, branch-specific package and test topology, and absent 4.151-only payloads. ~~ Explicit signing and BAR inputs ~~ Arcade's broad signing defaults do not describe SkiaSharp's mixed first-party, Mac developer, JavaScript, WebGPU, and transport payloads. Clear them and sign only Shipping NuGets, classifying first-party binaries as Microsoft400, Apple dylibs as MacDeveloperVNext, and payloads that must retain their bytes as `CertificateName=None`. First-party files skip the third-party copyright check because they intentionally carry no Microsoft metadata. Leave NonShipping transports unsigned and enforce that boundary with `DO-NOT-SIGN` and `DO-NOT-UNPACK` SignCheck exclusions. Sign staged Shipping assets with Arcade and MicroBuild, using ESRP only for real signing, then generate the publishing-v3 manifest from signed Shipping and prepared NonShipping assets. Inside the internal non-PR gate, `main` and `release/*` select real signing and BAR registration; other branches test-sign and register only when a forced real-signing run also passes `registerInBar`. Post-build validation keeps `publishAssetsImmediately: false` and `requireDefaultChannels: true`, so this merge cannot promote packages merely by building them. ~~ Fail-closed API Scan coverage ~~ The legacy scan came from `DevDiv/Xamarin.yaml-templates` and extracted packages without proving that its binaries, PDBs, surrogates, or configured targets existed. Add a repository-owned stage that downloads this run's `nuget` and `native_msvc` artifacts, activates the dedicated WIF identity, runs API Scan in release mode, publishes its report, uploads TSA bugs, and breaks at Note severity. Preparation extracts packages into `symbols-extracted`, replacing the removed `nuget_symbols` layout, and validates the Win32, HarfBuzzSharp, NanoServer, and WinUI mappings, including Clang targets mapped to matching or API-compatible x64 MSVC binaries and WinUI ARM64 targets mapped to x64 package binaries staged from the WinUI symbols package. Missing packages, binaries, PDBs, surrogate files, or target matches fail closed. Prepare runs the identity and API Scan suites so input drift fails before a protected stage is requested. The focused build identity, Arcade asset, and API Scan suites pass on the adapted 4.150.3 tree; `scripts/infra/caching/repo-deps.py validate` reports 4,357 tracked files, 0 uncovered, and 22 jobs; `eng/NoBuild.proj` builds with no warnings or errors; and the 95 changed YAML files, four JSON files, XML-family files, and Chrome install script parse cleanly. No separate local native source build was required because the merge changes no Skia/C++ source, submodule, generated binding, or product input. Source build 1572924 validates the pipeline and container changes carried by this backport. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Advance
release/4.150.ximmediately after cutting4.150.3so new changes target4.150.4.Related issues
N/A.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None - version metadata only; no public API or behavioral changes.
Testing
The release automation validated all SkiaSharp package versions at
4.150.4, all HarfBuzzSharp package versions at14.2.1.4, unchanged assembly versions, and a clean staged diff.Checklist
Changesabove lists all public API and behavioral changes (None)