Skip to content

[ci] Support SkiaSharp package releases - #38967

Merged
kubaflo merged 3 commits into
mainfrom
mattleibow-skiasharp-release-support
Sep 28, 2026
Merged

kubaflo merged 3 commits into
mainfrom
mattleibow-skiasharp-release-support

Conversation

@mattleibow

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Summary

  • enables mono/SkiaSharp and mono/SkiaSharp.Extended as non-workload sources in the official NuGet release pipeline
  • resolves SkiaSharp builds through the same Darc repository-and-commit path used by existing release sources
  • verifies the returned BAR repository and exact commit before gathering assets
  • documents the preparation-only dry-run inputs for SkiaSharp releases

SkiaSharp is registered with Maestro through a manual-frequency subscription, so this does not create automatic MAUI dependency updates. SkiaSharp.Extended can use the same consumer path once its selected commit is registered in BAR.

Safety

  • pushPackages: false performs BAR resolution, gathering, validation, NuGet.org filtering, and audit artifact creation without creating a production publish stage
  • real non-workload publishing remains blocked by ManualValidation before the protected NuGet service connection is used
  • package identities are filtered against NuGet.org both during preparation and immediately before publishing
  • repository, commit, package identity, duplicate, malformed-package, and workload-manifest checks remain fail-closed

Validation

  • 26 Pester tests passed across the official release pipeline and package-status helper
  • pipeline YAML and both inline PowerShell scripts parsed successfully
  • feature-branch preparation run resolved SkiaSharp BAR 333234 and staged all 40 selected packages at versions 4.150.4 and 14.2.1.4, with no missing or duplicate identities
  • a gated feature-branch production-shape run prepared the same 40/40 audit set and reached the manual approval boundary before the publish job

mattleibow and others added 3 commits September 28, 2026 21:49
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 28, 2026 20:36
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38967

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38967"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo merged commit de3cf13 into main Sep 28, 2026
16 of 24 checks passed
@kubaflo
kubaflo deleted the mattleibow-skiasharp-release-support branch September 28, 2026 21:50
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 28, 2026
@mattleibow
mattleibow removed the request for review from Copilot September 28, 2026 22:26
mattleibow added a commit to mono/SkiaSharp that referenced this pull request Sep 30, 2026
…5185)

[release] Enable chat-driven publication and improve release audits (#5185)

Context: dotnet/maui#38967

Let maintainers prepare, publish, and finish a SkiaSharp release from chat
without bypassing the protected publication gate. Make the release audit
distinguish usable BAR evidence from failed reruns and show draft Skia sync
work that still needs review.

~~ Protected package publication ~~

Previously, release guidance stopped at a team-owned publication procedure;
the release-publish skill could not queue packages. On an explicit request,
it now verifies the exact SkiaSharp release-branch commit, succeeded Build
and resource-triggered Tests runs, matching BAR, and any existing publication
run before queuing the official MAUI release pipeline. It requires the
pipeline default and internal mirror to use merged MAUI main, then checks the
resolved MAUI source SHA and the separate SkiaSharp BAR commit after dispatch.

The pipeline prepares a NuGetReleaseAudit and waits at ManualValidation
before its protected NuGet job. Preparation is not approval: a human checks
the BAR, package identities, ownership, and quota. After approval, verify
the exact shipping packages on NuGet.org; a partial publish must not trigger
an automatic retry or release finalization.

~~ Release preparation handoff ~~

Make release-branch guidance executable from chat: dispatch Release - Prepare
on main with push=false, inspect its plan, and require confirmation before
repeating the same inputs with push=true. Verify the resulting paired release
branches rather than treating a successful dispatch as a completed cut.
Keep the local preparation script as a fallback, not a route around workflow
verification or a trigger for package publication.

~~ Public release finalization ~~

After the complete package set is public, use Release - Finish on main with
push=false to review the exact tag, source commit, and follow-up plan. Require
a separate confirmation before push=true. Local Finish remains a fallback;
it cannot replace the MAUI pipeline's NuGet approval or justify finalizing a
failed or partial publication.

~~ Exact-tip package build selection ~~

The audit previously chose the newest result from a 20-build lookup. A newer
failed or canceled rerun could therefore hide a succeeded build and BAR for
the same release-branch commit; an older eligible run could also fall beyond
that limit. Page the internal build history, prefer the newest fully
succeeded exact-tip build with one BAR, and report newer unsuccessful
attempts without letting them displace it.

If no succeeded BAR exists, expose a partially succeeded build with a BAR
for review, not publication. A partial build without usable BAR evidence
still requires a fix or rerun. Publishing-script regressions cover those
selection, pagination, and readiness boundaries.

~~ Draft Skia sync review visibility ~~

An upstream comparison can appear current against an unmerged sync branch
while its draft PR still needs review. Add a review-sync action for draft
incoming PRs without blocking an otherwise valid release cut, and require
the audit summary to link the native mono/skia PR alongside its SkiaSharp
companion. This separates pending PR review from both an upstream change
and a release-cut blocker.

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 29, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 53d51dd1 Deployed Sep 28, 2026 by mattleibow via conclusion #2121
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants