Release tooling: --yes flag, desktop- tag prefix, push-race fix#84
Open
bryanroscoe wants to merge 2 commits into
Open
Release tooling: --yes flag, desktop- tag prefix, push-race fix#84bryanroscoe wants to merge 2 commits into
bryanroscoe wants to merge 2 commits into
Conversation
Skip the three confirmation gates with --yes/-y so the release can be cut from CI or an agent without a TTY. Piping 'yes' is still blocked by the auto-mode classifier; the flag is the sanctioned path.
- Tag prefix v2- -> desktop- (non-numeric, no longer doubles the semver). The workflow still accepts legacy v2-* tags. Everything human-facing now uses the bare semver: release title 'Shield Optimizer X.Y.Z', Homebrew version, and changelog headings (## X.Y.Z), with a fallback to the old prefixed heading for re-runs. - Fix the non-fast-forward push race between merge-updater and refresh-screenshots (both commit to the default branch in parallel) with rebase-and-retry before push — this is what failed the v2-2.1.0 gallery job.
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.
Three release-pipeline changes (all touch the same release tooling):
1.
release.sh --yes/-y— auto-confirms the three gates (dirty-tree, bump+tag, push) for non-interactive / CI / agent use. Pipingyesis still blocked by the auto-mode classifier; the flag is the sanctioned path.2. Tag prefix
v2-→desktop-— removes thev2-2.xredundancy. The prefix is just the release-track namespace (keeps the desktop app's tags separate from v1's PowerShell tags); everything human-facing now uses the bare semver:Shield Optimizer 2.2.0(wasShield Optimizer v2-2.1.0)## 2.2.0v2-*tags /## v2-X.Y.Zheadings, so old tags can be re-run.raw.githubusercontentURL, independent of the tag name (verified).3. Push-race fix —
merge-updaterandrefresh-screenshotsboth commit to the default branch in parallel and neither rebased before pushing, so the second one lost with a non-fast-forward error (this is what failed the v2-2.1.0 gallery job). Both now rebase-and-retry before pushing.Validated: YAML parses,
release.shsyntax OK, and the changelog version-matching logic tested for bothdesktop-(bare-version heading) and legacyv2-(prefixed heading) tags. Thedesktop-prefix lives in oneTAG_PREFIXconstant in release.sh + the workflow trigger.