Repository navigation
[release] Split reviewed GitHub Release summaries - #4895
Conversation
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]>
📦 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 -- 4895PowerShell / 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-4895More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4895 |
📊 SkiaSharp benchmarks — PR #4895No ⭐ source-build ( |
|
📖 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. |
📦 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 (🟢 −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]>
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
This comment has been minimized.
This comment has been minimized.
|
Final squash commit message |
…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]>
[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]>
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
mainand 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
binding/)externals/skia/src/c,include/c)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..github/workflows/update-github-release-summaries.ymlsuccessfully as YAML.origin/mattleibow-release-tooling-inventory.Checklist
Changesabove lists all public API and behavioral changes (or "None.")mono/skiaPR or binding regeneration required