Repository navigation
ci: Reject prerelease pins on the stable release lines (backport #2257) - #2263
Merged
agneszitte merged 1 commit intoSep 16, 2026
Merged
Conversation
A release branch is cut from a branch that legitimately carries dev versions, so it inherits them. Moving each to a stable version is a release-checklist step - the previous stable when nothing changed, or a new or bumped stable when the release needs one - and nothing verified it happened. When that step is missed the pins ship and survive, because the files involved are ones most of a release diff never touches. The updater then compounds it: running unattended on a 6h cron with auto-merge, it keeps the inherited groups moving further along the dev line rather than back toward stable. Add a required check that fails a stable release branch carrying any prerelease pin, making the step enforced instead of remembered. It covers every file the updater writes: - packages.json, including versionOverride entries as well as group versions, since a pin hides most easily in a per-TFM override - Uno.Sdk.Updater.targets and Uno.Sdk.Updater.props, which record the same pins as MSBuild properties - a dev version ships through those even when the manifest is clean - ReadMe.md, verified to still match packages.json, because the updater rewrites both together and a hand edit can desync them The check gates `build`, the root of the job graph, so a bad pin short-circuits the build, the sign/publish chain and the whole template test matrix rather than spending runners on a manifest that must not ship. Its branch resolution mirrors env.CheckoutRef, so a workflow_dispatch against a stable branch is checked rather than skipped. Also fix Tests Validation, which only failed on 'failure' and so reported success for a run where the matrix was skipped, printing "All matrix test jobs passed" when nothing executed. The matrix jobs are gated purely on upstream success, so a skip always means the tests did not run; 'skipped' and 'cancelled' now fail and only 'success' passes. Skips on main and servicing/*, where prerelease pins are expected. Pester coverage for the decision logic, 24 tests. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> (cherry picked from commit a3d8872)
2 of 3 tasks
agneszitte
approved these changes
Sep 16, 2026
2 of 3 tasks
This was referenced Sep 18, 2026
This was referenced Oct 8, 2026
This was referenced Oct 13, 2026
This was referenced Nov 6, 2026
This was referenced Nov 13, 2026
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.
What is the current behavior?
A stable release branch is cut from the default branch at some point, and the default branch legitimately carries dev versions. So a freshly cut
release/stable/*branch inherits those dev pins.Replacing them is a step on the release checklist: for each group, move to a stable version — the previous stable when nothing changed, or a new / bumped stable when the release needs one. It is a step the member in charge of the release has to remember, on a file most of the diff never touches, and nothing verifies it happened.
It did not happen for 6.7.
The initial 6.7 version -
Uno.Sdk6.7.18 and 6.7 SR1 -Uno.Sdk6.7.22 both shipped:WasmBootstrap→versionOverride[net10.0]10.1.0-dev.21410.0.96Resizetizer1.13.0-dev.171.12.1sdkextras6.4.0-dev.136.3.1All three from an unbranched
main. The 6.6 line did perform the step —a4d00c58, "fix: replace dev versions with stable 6.6/6.5 releases", which replaced two of these exact literals — so the process works when it is remembered. It just is not enforced, and once missed the pins survived two releases unnoticed.The updater then compounds it: running unattended on a 6-hourly cron with auto-merge, it keeps the inherited dev groups moving forward on the dev line (
10.1.0-dev.214→.217,1.13.0-dev.17→.18), so the branch drifts further from stable rather than back toward it.What is the new behavior?
A required check that fails when a stable release branch carries any prerelease pin — turning that checklist item from remembered into enforced.
packages.json, includingversionOverrideentries as well as group versions — that is where theWasmBootstrappin hid, and a check reading onlyversionwould have missed the worst of the three.Uno.Sdk.Updater.targetsandUno.Sdk.Updater.props, which record the same pins as MSBuild properties. A dev version ships through those even when the manifest is clean — andUno.Sdk.Updater.targetscarries one today (UnoWasmBootstrapVersionNet10).ReadMe.mdstill matchespackages.json. The updater rewrites both together, so a mismatch means one was hand-edited and the shipped package would disagree with its own documentation.mainandservicing/*, where prerelease pins are expected and correct.build, the root of the job graph, so a bad pin short-circuits the build, the sign/publish chain and the entire Linux/Windows/macOS template matrix rather than spending runners on a manifest that must not ship. The check itself costs seconds and is a no-op off the stable release lines.env.CheckoutRef, so aworkflow_dispatchagainst a stable branch is checked rather than skipped.Validation
This PR's own CI run against
release/stable/6.7— the check failed in 6 seconds and every downstream job was skipped:It finds precisely the four pins across the two files, and nothing else — the other 58 manifest pins and the props file are correctly left alone.
release/stable/6.7as-ismainrefs/heads/servicing/6.8Pester coverage for the decision logic — 24 tests, all passing — including the cases that matter for false positives:
1.7.250909003and10.0.28000.2705(long stable WinAppSdk build numbers) are not prerelease+is ignored, so6.7.135+1e094106is stabledev/agzi/release-notesdoes not match as a release branchversionOverrideis foundUnoWasmBootstrapVersionNet10is read (a check for names ending inVersionwould miss exactly the pin that started this).targetsfile are ignoredThe gating was verified on the workflow itself:
ci.ymlparses,build.needs = verify_stable_pins,sign.needs = build, and the template matrix stays rooted behind them — so a failed check skips the whole graph.Run locally with:
Also fixed: Tests Validation no longer passes on a skip
This PR's own run exposed a related hole in the same workflow.
Tests Validationonly failed onfailure, so a skipped matrix counted as a pass — it reported success and printed "All matrix test jobs passed" for a run where nothing executed. That is the one assurance a required check must never give, and it is reachable from any upstream gate, not just this one.The matrix jobs are gated purely on upstream success (
generate-test-matrixandbuild), so they are never skipped for a legitimate reason such as a doc-only change — a skip always means the tests did not run.skippedandcancelledare now failures; onlysuccesspasses, and the message names the job and its status.Verified across the four outcomes: all-success passes; all-skipped, a single failure, and a single cancelled each block.
Note on merge order
This check will fail for the backport on
release/stable/6.7until the three pins are resolved, which is in progress for 6.7 SR2:sdkextras→6.3.1— in chore: Replace the remaining prerelease pins with stable versions #2259Resizetizer→1.12.2— pending fix: Don't fail on disabled PWA (backport #364 and its CI follow-ups) uno.resizetizer#383WasmBootstrap→ a stable10.0.x— pending chore: Bring release/stable/10.0 up to the build 6.7 ships (10.1.0-dev.214) Uno.Wasm.Bootstrap#1072So merge this after those land, or expect a red (and correct) check until they do.
PR Checklist
This is an automatic backport of pull request #2257 done by [Mergify](https://mergify.com).