Repository navigation
fix: move latest tags only for the highest stable release - #479
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Classify the highest stable release scripts/release-tags.sh, tests/ci/release-tags.sh |
The script checks available tags and emits latest=true only when the current stable tag is the highest stable version. Tests cover older-line patches, newer releases, first releases, and prerelease tags. |
Gate workflow aliases .github/workflows/release.yml, tests/ci/release-tags.sh |
The workflow fetches tags and gates application and runtime image aliases on the latest result. Workflow assertions check the output gates and tag fetching. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Sequence Diagram(s)
sequenceDiagram
participant Git
participant ReleaseTags as scripts/release-tags.sh
participant ReleaseJob as release-metadata job
participant ImageJobs as image publishing jobs
Git->>ReleaseTags: Provide available release tags
ReleaseTags->>ReleaseJob: Output latest and application tags
ReleaseJob->>ImageJobs: Permit latest aliases when latest is true
Possibly related issues
- cattr-app/server-application#478 — This change gates
runtime-latestandbuilder-lateston the highest stable version, but does not add content-hash resolution incontainer.yml.
Possibly related PRs
- cattr-app/server-application#392 — Both PRs change release-tag classification and workflow gates for application and runtime image aliases.
Suggested reviewers: vermorag
Merge Risk: 
Minimal · up to 9d519
-
Latest aliases are gated on the stable-tag comparison. No merge-blocking issue remains.
Pre-merge checks: 
3 · 
2
-
Failed checks: 2 warnings Passed checks: 3 passedFull details: Linked Issues check
-
Explanation
Issue
#477requires highest-stable gating forlatest,runtime-latest, andbuilder-latest, plusX.Y.Zapplication tags on every release line, includingrelease/4.0. The PR implements highest-stable selection inscripts/release-tags.sh, gates both mutable workflow aliases onlatest, fetches tags, and emits the unprefixed version on the reviewed branch. The whole-PR diff contains norelease/4.0backport, so the requirements for that release line are not established.Resolution
Apply the Issue
#477fix torelease/4.0. Verify that the backport emitsX.Y.Zapplication tags and applies highest-stable gating tolatest,runtime-latest, andbuilder-latest.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 2 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Contributor License Agreement✅ Every human contributor has accepted Cattr CLA version 1. CLA SHA-256: |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@coderabbitai review |
Action performed
|
Publishing a patch of an older release line must not move the mutable latest, runtime-latest and builder-latest aliases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dbox Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
8061aed to
9d519ad
Compare
Closes #477
Changes
scripts/release-tags.shemits a newlatestoutput. It is true only when the released tag is the highest stable SemVer tag among the repository tags; prereleases never count. Thelatestimage tag is added toapplication_tagsonly in that case.release.ymlgates theruntime-latestandbuilder-latestupdates onlatestinstead ofstable, and checks out tags (fetch-tags) so the comparison sees them.tests/ci/release-tags.shcovers an older-line patch (v4.0.2next tov4.1.0), a newer release, numeric ordering (4.10.0vs4.9.0) and prereleases among the tags.Verification
bash tests/ci/release-tags.shpasses.ifconditions andfetch-tags.🤖 Generated with Claude Code
Summary by CodeRabbit
latesttags are now assigned only to the highest stable release. Publishing an older stable version no longer moves these tags backward, and prereleases do not receive the stablelatesttag.