Repository navigation
[release] Move milestone maintenance to repository-owned PowerShell - #4908
Conversation
📦 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 -- 4908PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4908"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4908/packages --name skiasharp-pr-4908More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4908 |
|
📊 SkiaSharp benchmarks — PR #4908No ⭐ source-build ( |
…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]>
Replace the release-milestones Python tooling with repository-owned PowerShell scripts for assignment reconciliation, Chromium-derived schedule updates, rollover, and closure. Keep operations read-only by default, add the dispatch workflow and focused tests, and document the maintainer flow. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 560df585-3d3f-40d1-9690-9c095fd09b94
3eb67cc to
33be7b2
Compare
|
📖 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. |
[release] Move milestone maintenance to PowerShell (#4908) Requires: #4889 Replace the skill-local Python implementation with repository-owned PowerShell entry points and a thin dispatch workflow. Keep release assignment reconciliation separate from schedule advancement, and make both operations read-only unless a maintainer explicitly supplies `-Push`. ~~ Shipped release assignments ~~ Release assignments need to follow the release where a change actually shipped, rather than the first branch on which it was planned. The reconciler orders the release branches for one numeric line, accepts only exact public tags as shipped boundaries, and rolls an unshipped preview or RC forward to the next shipped milestone. It finds the most recent earlier stable tag, compares each shipped tag from its merge base, and reads first-parent subjects ending in `(#N)`. GitHub closing references and closing keywords in the pull request body add linked issues. Missing tags, boundaries, or milestones remain warnings in a dry run and become hard blockers with `-Push`, so incomplete release evidence cannot write assignments. Every mutation uses the shared guarded GitHub helper and is verified after a push. A live read-only run for 4.151.0 identified #4480 for 4.151.0-rc.1 and found 103 assignments already correct without changing GitHub state. ~~ Milestone schedule and closure ~~ Milestone dates need to stay aligned with Chromium while shipped milestones must not close over unfinished work. The updater reads the repository major and Skia milestone, maps the six Chromium schedule fields to preview.1, preview.2, RC, and stable dates and descriptions, and maintains three milestone cycles by default. Missing historical entries more than 30 days past due are not recreated. An open milestone is eligible for closure only when its exact release tag exists. Open work moves to the next unshipped open or planned milestone; a missing destination blocks closure. Push mode synchronizes milestone metadata first, verifies each move, waits for the old milestone to empty, rejects newly arrived items, then closes the milestone and verifies its final state. The dispatch validates its selected operations, requires a version for reconciliation, serializes milestone runs, and leaves push disabled by default. The release-tooling gate parses every publishing script, validates entry-point help, and runs 69 publishing plus 25 focused milestone checks. A live read-only schedule run planned no creates, updates, or closures. Co-authored-by: Copilot App <[email protected]>
📦 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.
Three independent drafting runs against #4912 itself exercised the new rules on live evidence. Two of the three joined an eval-rebuild clause to the fact that #4908 needed no corrections, producing "rebuild the evals ... while retaining #4908 as a compact control". Both halves are true and the join is not: #4908 is a control case study in the audit, while the compact control is an eval fixture that never references it. The source invites the merge. This PR's own description uses "control case" for the unchanged review and for the compact eval a few paragraphs apart, and that is the ordinary situation rather than a special one. Baseline, fixture, and config carry the same hazard whenever a PR's evidence names two things by one role word. The mixed-truth check already covered the symptom but described only a fact joined to an unsupported qualifier, which does not prompt anyone to ask which of two same-named things a clause is about. Extend it to name that case, so the check fires while the sentence is being written rather than after a reviewer notices the join. A rerun after the change kept the two apart, describing #4908 as an unchanged review in the overview and the compact control as one of the seven eval cases, with the other fifteen ground-truth checks still passing. 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
Moves release milestone maintenance out of the core publishing PR into a focused dependent change. It replaces the skill's Python implementation with repository-owned PowerShell for shipped-assignment reconciliation, Chromium-derived milestone dates, rollover, and closure. Both entry points are read-only by default and require
-Pushfor GitHub mutations.Related issues
Related to #4889
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None — release-maintenance automation only; no public API or runtime behavior changes.
Testing
Test-PublishingScripts.ps1: 69 passed.Test-ReleaseMilestones.ps1: 25 passed.4.151.0: one assignment planned, 103 already correct, no mutation.Checklist
Changesabove lists all public API and behavioral changes (or "None.")mono/skiaPR linked above and bindings regenerated