Repository navigation
ci: mark releases before 1.0.0 as prereleases - #331
Conversation
Split the release flag in two: `prerelease` (GitHub pre-release) is now also true for all releases with major version 0, while the new `stable` flag (no alpha, beta or release candidate suffix) decides whether the image is tagged `latest`, as `prerelease` did before. Images of 0.x releases are thus tagged exactly as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Address review findings: compute `stable` once and derive `prerelease` from it, and describe which tags update the `latest` image and which are GitHub pre-releases without overloading "pre-release". Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe release workflow now independently determines GitHub pre-release status and Docker Flow diagram for release classification and publishingflowchart TD
A[Release tag] --> B[Compute stable]
B -->|alpha beta or rc suffix| C[stable=false]
B -->|no alpha beta or rc suffix| D[stable=true]
C --> E[prerelease=true]
D --> F{Major version is 0?}
F -->|yes| E
F -->|no| G[prerelease=false]
C --> H[No Docker latest]
D --> I{Highest stable release?}
I -->|yes| J[Push Docker latest]
I -->|no| K[No Docker latest]
E --> L[Create GitHub pre-release]
G --> M[Create regular GitHub release]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #331 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 1750 1750
=========================================
Hits 1750 1750
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. A normal release before 1.0.0 will be published on GitHub as a pre-release, which can change how users discover it. If that classification is wrong, the release can be corrected manually, but reverting the workflow will not change releases already published.
Summary
Releases are marked as GitHub pre-releases until 1.0.0 (the convention
already applied by hand to all existing FOCA releases, v0.12.0 to v0.15.0).
The release workflow derived a single
prereleaseflag (tags ending inaN,bNorrcN) that decided both the GitHub pre-release label and thelatestDocker image. It is now split:prerelease(gh release create --prerelease):aN/bN/rcNtags ormajor version 0.
stable(Dockerlatesttag): noaN/bN/rcNsuffix, i.e., whatprerelease == falsemeant before. Images of 0.x releases are taggedexactly as before.
The README "Releasing" section is updated accordingly.
Resulting behaviour
latestv0.15.0(highest stable)v0.14.1(not the highest)v0.16.0rc1v1.0.0rc1v1.0.0(highest stable)v1.0.1(not the highest, e.g., afterv1.1.0)GitHub never marks a pre-release as "Latest". The workflow passes no
--latestflag (unchanged), soghsends nomake_latestand there is nocontradictory flag combination with
--prerelease. For non-pre-releasesfrom 1.0.0 on, "Latest" is left to GitHub's default, as before (a stable
patch release of an older minor version may then be marked "Latest"; this
is pre-existing and out of scope here). The repository currently has no
"Latest" release (all releases are pre-releases), so nothing changes for
existing releases.
Verification
the repository): no findings, before and after the change.
stablecomputed once andprereleasederived from it, README wording.stable/prereleasevalues forv0.15.0,v0.15.1rc1,v0.3.0a2,v0.0.1,v1.0.0,v1.0.0rc1,v1.2.3b1,v10.0.0.check-yaml, trailingwhitespace, end of file): pass. Tests are unaffected (workflow and README
changes only).
(known kernel incompatibility).
Declined review findings
release until 1.0.0. Declined: all existing releases (v0.12.0 to v0.15.0)
are already pre-releases and the repository has no "Latest" release
(checked via the releases API).
pre-release flag. Declined: pre-existing, and only relevant for releases
created by hand.
patch release of an older minor version may be marked "Latest", since no
--latestflag is passed. Declined here: pre-existing and irrelevantbefore 1.0.0; could be a follow-up (
--latest=falseunless the tag is thehighest stable one).
Open questions
None.
🤖 Generated with Claude Code