Skip to content

[release] Split reviewed GitHub Release summaries - #4895

Merged
mattleibow merged 2 commits into
mainfrom
mattleibow-release-summary-split
Sep 1, 2026
Merged

mattleibow merged 2 commits into
mainfrom
mattleibow-release-summary-split

Conversation

@mattleibow

@mattleibow mattleibow commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Release-note preparation now emits format-4 data with exact tagged shipments. The release-notes prose contract can attach an optional reviewed summary to each exact tag, and a deterministic classic workflow converges that prose into the matching published GitHub Release.

Python solely owns the release-body markers. On the first reviewed update, it adopts an unmarked published release by wrapping and preserving the existing GitHub-generated body; later updates replace only the managed summary region. Drafts and missing releases are skipped safely. Exact shipment metadata and changelog endpoints are derived and validated from the tag, including full Arcade prerelease build revisions.

This PR remains based directly on main and is independent of publishing implementation details: release creation only needs to publish a normal GitHub-generated body.

Related issues

Related to #4889 for release-tooling context; no merge dependency.

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 — release-note and GitHub Release automation only; no public API or product runtime behavior changes.

Testing

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s scripts/infra/docs/release_notes/tests — 137 passed on Python 3.13.5.
  • gh aw compile update-release-notes --strict — compiled successfully; generated lock remained byte-identical.
  • gh aw compile update-release-notes --strict --validate — schema and shell validation passed.
  • PYTHONDONTWRITEBYTECODE=1 python3 scripts/infra/caching/repo-deps.py validate — all 4,808 tracked files covered; zero uncovered.
  • Parsed .github/workflows/update-github-release-summaries.yml successfully as YAML.
  • Verified every owned path is byte-for-byte the final state from origin/mattleibow-release-tooling-inventory.

Checklist

  • Tests added or updated (if omitted, explain why above)
  • 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 companion mono/skia PR or binding regeneration required

Extract the exact-shipment release-note data model, reviewed GitHub Release summary updater, workflow integration, tests, and documentation from the broader release tooling migration.

Co-authored-by: Copilot App <[email protected]>
@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 -- 4895

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

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

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4895

No ⭐ source-build (pr) benchmark results were produced for this run, so there is nothing to compare yet. The source-build legs are best-effort and may be skipped (native unchanged) or may have failed — see the run for details.

📈 View the benchmark run & perf-dashboard artifact →

@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.

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

📦 Artifact size report

Packages from this PR (build 1575979) vs the latest nightly baseline 4.152.0-nightly.47 (observed 2026-08-31).

Total .nupkg size: 569.6 MB → 569.2 MB (−426.3 KB, -0.1%)

Packages

⚠️ marks growth over 500.0 KB or 2%. Changes under 50.0 KB are treated as noise.

Package baseline this PR Δ Δ%
SkiaSharp.NativeAssets.WinUI 109.1 MB 108.5 MB 🟢 −577.1 KB -0.5%
SkiaSharp.NativeAssets.WebAssembly 69.7 MB 69.7 MB 🔴 +84.9 KB +0.1%

+39 package(s) unchanged (< 50.0 KB).

Per-file changes

SkiaSharp.NativeAssets.WinUI

File Size
runtimes/win-arm64/native/libGLESv2.pdb 64.5 MB → 64.4 MB (🟢 −96.0 KB)
runtimes/win-x64/native/libGLESv2.pdb 66.6 MB → 66.6 MB (🟢 −80.0 KB)
runtimes/win-x86/native/libGLESv2.pdb 67.3 MB → 67.2 MB (🟢 −80.0 KB)

Informational only — this never blocks the PR. Native binaries are labelled by os/arch.

Adopt unmarked published releases, validate exact shipment metadata from tags, and document the final repository-owned summary flow.

Co-authored-by: Copilot App <[email protected]>
mattleibow pushed a commit that referenced this pull request Sep 1, 2026
Remove the reviewed GitHub Release summary implementation from this publishing PR now that PR #4895 owns the complete independent feature.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: ac29ebee-ee4d-4e73-98ff-d3bb79b07281
@mattleibow

This comment has been minimized.

@mattleibow

Copy link
Copy Markdown
Contributor Author

Final squash commit message

[release] Add reviewed GitHub Release summaries (#4895)

Context: https://github.com/mono/SkiaSharp/pull/4889

Add an exact-shipment layer to release-note generation so reviewed prose can
converge on each tagged GitHub Release without delaying publication or requiring
publishing automation to prepare body markers. Keep Markdown structure, links,
contributor credit, marker ownership, and writes deterministic; the
release-notes agent supplies only short reviewed prose.

~~ Exact shipment facts ~~

Bump release data to format 4 and record one shipment for every strict
preview, RC, stable, or hotfix tag whose core version matches a released page.
Derive the core/public versions, channel, label, target commit, date, previous
tag in global release order, exact compare URL, and PR delta from repository
facts. Ignore decorative legacy tags instead of classifying them, fail loudly
on inconsistent committed data, and accept two-part Arcade prerelease build
revisions such as `-rc.1.26426.14` alongside single-part revisions. The
generator now requires Python 3.10 or later.

Broad convergence skips data from older formats, while an explicit request for
one of those tags fails with regeneration guidance.

Split strict data equality from website-content equality. Shipment-only
additions, removals, and changes now rewrite `data.json` without discarding
reviewed website prose or requesting another polish pass. Website-facing fact
changes still invalidate prose, while `--force` requests polish without
discarding prose for fully unchanged pages. This prevents a new tag from being
skipped when its shipment is the only changed fact.

Regression coverage exercises exact tag ordering, tag-derived metadata and
changelog endpoints, falsey non-array rejection, and shipment-only writes.

~~ Reviewed prose and deterministic rendering ~~

Add optional `release_summaries` prose keyed by exact shipment tag. An omitted
entry remains ineligible until its reviewed headline and optional body are
ready, allowing tags to converge independently. Point the release-notes skill
and the `update-release-notes` agentic workflow at the new slot, with the
downstream updater rather than the website renderer owning its safety checks
and application; regenerate the compiled lock file to match.

Render the shipment label, vetted contributor handles, and deterministic NuGet,
website release-notes, and exact changelog links outside agent-authored prose.
Reject code fences, managed sentinels, raw HTML comments, security claims,
placeholders, structural openers, unknown fields, and overlong prose before a
release write can begin. Drop contributor logins that are not syntactically
valid GitHub handles from the credits line. Regression coverage exercises each
rejection rule, login filtering, and deterministic link and credit rendering.

~~ Published Release convergence ~~

Add a classic workflow for scoped main pushes, published-release events, and
manual dispatches. Release and manual events read reviewed facts from trusted
`main`; the workflow does not create, tag, or publish releases.

Own the four body markers and a minimal GitHub REST client in Python, with no
`gh` CLI dependency. The first reviewed update adopts an unmarked published
Release by wrapping and preserving its existing GitHub-generated body; later
updates replace only the managed summary region. This lets publishing create an
ordinary GitHub-generated Release without sharing the marker contract. Missing
releases and unpublished drafts are skipped, and an already-current body is
left untouched.

Preflight the full candidate batch, then re-read every planned body before the
first PATCH because the REST API offers no conditional body update. Abort
before any write when validation fails or a concurrent edit is detected, and
re-read each updated Release to require the stored body to match exactly.
Regression coverage exercises adoption, generated-body preservation, draft
convergence, idempotence, race detection, unsafe-batch rejection, and failed
write verification.

Document the format-4 shipments field, package layout, and updater preflight,
race-barrier, and verification flow in the release-notes development guide.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>

@mattleibow
mattleibow merged commit 3c90bff into main Sep 1, 2026
112 of 115 checks passed
@mattleibow
mattleibow deleted the mattleibow-release-summary-split branch September 1, 2026 11:29
mattleibow added a commit that referenced this pull request Sep 1, 2026
…4889)

[release] Move publishing automation to repository-owned PowerShell (#4889)

Requires: #4895
Context: #4908

Replace the Python runtimes behind the release-branch, release-publish, and
release-status skills, together with the milestones issue-template updater, with
three repository-owned PowerShell entry points under scripts/infra/publishing.
Internal builds, tests, signing, BAR promotion, and NuGet.org publication stay
in the team-owned pipeline; the repository owns only branch preparation, public
GitHub finalization, and issue-form maintenance. The release-branch and
release-publish skills remain as guidance over the scripts, while release-status
and its pipeline-status.py runtime are deleted because pipeline monitoring
belongs to the team pipeline. Reviewed Release summaries, smoke testing,
milestone maintenance, and dnceng observer or feed alignment are deliberately
outside this layer.

~~ Release branch preparation ~~

Add Release - Prepare and prepare-release.ps1 around an explicit base and exact
preview, RC, stable, or hotfix identity. The base must carry the requested
three-part SkiaSharp version or the immediately preceding four-part hotfix; the
script requires SkiaSharp and HarfBuzzSharp to move together, checks the pinned
externals/skia gitlink, and creates matching mono/SkiaSharp and mono/skia
branches. Existing remote branches are authoritative: a matching ref is reused
and a conflicting one stops the run. A dry run prints copyable commands, -Apply
creates local branches and commits, and -Push performs remote writes.

A three-part stable cut changes only the release label, then opens a reviewable
pull request on a bump-version branch named for the next SkiaSharp patch, moving
the selected maintenance line to that patch and the next HarfBuzzSharp revision
at preview.0. That PR targets an existing, manually created release/X.Y.x
servicing branch when present; otherwise it targets main. Preparation never
creates the optional servicing branch. A four-part hotfix must advance the base
by exactly one revision and increments HarfBuzzSharp with it.

A rare hotfix from an older base can reuse a HarfBuzzSharp revision that a newer
line already published because allocation is relative to the selected base, not
global publication history. Maintainers must check that case manually; a global
allocator was deliberately deferred.

~~ Public release finalization ~~

Add Release - Finish and finish-release.ps1 for packages already public on
NuGet.org. An abbreviated preview or RC identity is accepted only when it
resolves to one public SkiaSharp package version. The script reads the source
branch and commit from that exact nuspec, warns when the recorded branch and
version identity disagree, and uses the recorded commit as the authority. It
creates or verifies the immutable exact-version tag and publishes a normal
GitHub-generated Release in one -Push run. A matching draft is published rather
than replaced; an already published Release is accepted by tag and prerelease
identity.

After publication, Finish dispatches release-note generation for that version;
stable releases also dispatch the issue-template update with push enabled.
Package publication, pipeline monitoring, draft-body formatting, and summary
ownership leave this layer. PR #4895 owns reviewed Release summaries, while
milestone maintenance and optional smoke testing remain focused upper layers.

~~ Issue-template version maintenance ~~

Port update-bug-template.py to update-bug-template.ps1 and simplify Sync - Issue
Template Versions around it. Rebuild the version and goodversion dropdowns from
published, non-draft GitHub Releases while preserving unrelated YAML. Read-only,
local -Apply, and automation-branch -Push modes are supported. Scheduled daily
runs push, maintain one owned pull request, reuse identical branch content, and
refresh an existing automation branch only with an explicit force-with-lease.
Removing the old milestones directory also moves its cache input to
scripts/infra/publishing.

~~ Shared command safety and regression tests ~~

Route Git and GitHub execution through Git.Common.psm1, GitHub.Common.psm1, and
Publishing.Common.psm1 so production entry points do not invoke git or gh
directly. The modules run Git from an explicit repository root, retry transient
GitHub reads three times with backoff, print skipped mutations as copyable
commands that name their -Push guard, and verify relevant remote state after
writes.

Release - Tooling Tests runs the PowerShell harness on pull requests, main
pushes, and manual dispatch. The mutating workflows require the default branch,
keep mutation inputs false by default, and reject simultaneous -Apply and -Push
where both modes exist. Tests cover mode isolation, direct git and gh invocation
guards, package/version transforms, hotfix progression, guarded branch pushes,
release identity, issue-form rendering, force-with-lease usage, and
automation-branch reuse.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>
mattleibow added a commit that referenced this pull request Sep 1, 2026
[skills] Close pr-commit-message gaps found in release reviews (#4912)

Context: #4889
Context: #4895
Context: #4907
Context: #4908
Context: #4910

Turn corrections from five completed release-message reviews into durable
pr-commit-message rules, then replace conclusion-led evals with cases that
exercise those decisions. Keep #4908 as an unchanged reviewed-message control;
it is distinct from the synthetic compact-message eval fixture.

~~ Durable topic boundaries ~~

The #4889 draft distributed shared command-safety guarantees among consumer
sections and under-described the deleted release-status runtime. Treat a shared
guard, mechanism, or contract as its own topic when its consumers do not own
its guarantee. A removal remains with its parent topic, but must preserve the
departing component's name, the behavior that left, and its new home.

Name sections for the problem or decision rather than a component, lead the
overview with the governing design, and require sibling sections to carry
comparable evidence. This preserves both the shared safety contract corrected
in #4889 and the regression-coverage sentence restored to #4895.

~~ Immediate dependency relationships ~~

The #4907 and #4910 drafts labelled an earlier stack ancestor as required even
though each change built on a nearer parent. Define `Requires:` as the immediate
companion or dependency that must land first; earlier ancestors provide
`Context:` instead. Candidate references still have to be opened and classified
by their actual entity and relationship before they are included.

~~ Complete and current evidence scopes ~~

The #4889 review disproved "every workflow is one manual job" because the
sampled family also contained scheduled and CI-only workflows. Require a family
to be enumerated along the generalized dimension, and narrow a quantified claim
when any member is a counterexample.

State coverage in the predicates that tests or guards actually assert rather
than the broader capability they suggest. Re-read counts and measurements at
the current head so later pushes cannot leave a once-correct number in the
message; #4910's tracked-file and nightly figures both changed during review.

~~ Configuration and migration intent ~~

Add configuration or policy splits and removals to the change-specific content
rules. Each configuration must identify its context, value, and reason for
remaining different, while a migration must identify the removed component and
where its responsibility moved. This records #4910's build-feed versus
public-package boundary instead of inviting a future maintainer to unify the
sources and invalidate publication verification.

~~ Concrete guarantees and lasting rationale ~~

Replace safety adjectives with the operation that cannot occur and the
neighboring system it cannot affect. That distinction preserves #4895's marker
ownership and #4907's rule that release testing neither publishes packages nor
changes BAR state.

Keep durable limitations, but discard scope-negotiation phrases such as
"excluded by request" or "out of scope for review size". Those phrases describe
development chronology and stop being true when a follow-up lands, as the #4910
review demonstrated.

~~ Facts that share a role word ~~

Three drafts of this PR joined two true facts into a false relationship because
both objects were called a control. #4908 is the prior release-message review
that needed no correction; `control-single-topic-compact` is a synthetic eval
for an unrelated design-time-detection change.

Extend the mixed-truth check to distinguish objects called control, baseline,
fixture, or config before joining clauses about them. A rerun then kept the two
controls separate while preserving the other fifteen ground-truth checks.

~~ Source-backed, copy-ready attribution ~~

Two eval runs found output defects independent of message prose: one invented a
Copilot noreply trailer without evidence, and another placed a valid trailer
outside the fence where it would not be copied into the commit. Accept an email
only from relevant commit authors, co-author trailers, or a non-null user email;
house-style trailers are not evidence.

Put every verified trailer inside the fenced commit message after a blank line.
Only a missing-context notice for a contributing human whose email cannot be
verified remains outside the fence.

~~ Evals that discriminate judgement ~~

The original eval pass scored 33/35 for the revision and 32/35 for the baseline,
inside run-to-run noise. Its prompts supplied conclusions, numbered notes gave
away topic counts, and one assertion hard-coded a section count; both graders
identified the assertions as non-discriminating.

Replace those cases with seven raw-evidence scenarios containing the stale
claims that caused the real review corrections: a contradicted workflow
universal, the wrong stack dependency, an unsafe configuration unification,
stale measurements, shared guarantees, attribution evidence, and a compact
single-topic control.

The rebuilt suite scored 39/41 for the revised skill and 36/41 for the baseline,
with no case regressing and wins on immediate dependencies, shared-mechanism
placement, and concrete safety claims. The universal and coverage rules were
already handled by both configurations, so they remain defensive rules rather
than measured wins. Trailer-sensitive reruns passed every assertion after the
output-contract fixes.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>
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