Skip to content

fix: move latest tags only for the highest stable release - #479

Merged
vermorag merged 4 commits into
mainfrom
fix/latest-tags-highest-release
Nov 2, 2026
Merged

vermorag merged 4 commits into
mainfrom
fix/latest-tags-highest-release

Conversation

@amazing-cat

@amazing-cat amazing-cat commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Closes #477

Changes

  • scripts/release-tags.sh emits a new latest output. It is true only when the released tag is the highest stable SemVer tag among the repository tags; prereleases never count. The latest image tag is added to application_tags only in that case.
  • release.yml gates the runtime-latest and builder-latest updates on latest instead of stable, and checks out tags (fetch-tags) so the comparison sees them.
  • tests/ci/release-tags.sh covers an older-line patch (v4.0.2 next to v4.1.0), a newer release, numeric ordering (4.10.0 vs 4.9.0) and prereleases among the tags.

Verification

  • bash tests/ci/release-tags.sh passes.
  • The workflow change was not run in GitHub Actions; the diff is limited to the output name, two if conditions and fetch-tags.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Runtime and builder image latest tags 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 stable latest tag.
    • Release information now identifies whether a version is the highest stable release by comparing it with available stable release tags, including when a newer stable version is published.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between a8cd6c1 and 9d519ad.

Files selected for processing: 1
  • tests/ci/release-tags.sh

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Walkthrough

The release script identifies whether a stable tag is the highest stable version. The release workflow uses that result to control the application latest, runtime-latest, and builder-latest tags.

Changes: Stable Release Tagging

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
Loading

Possibly related issues

  • cattr-app/server-application#478 — This change gates runtime-latest and builder-latest on the highest stable version, but does not add content-hash resolution in container.yml.

Possibly related PRs

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: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Linked Issues check Warning Issue #477 requires highest-stable gating for latest, runtime-latest, and builder-latest, plus X.Y.Z application tags on every release line, including release/4.0. The PR implements highest-… Apply the Issue #477 fix to release/4.0. Verify that the backport emits X.Y.Z application tags and applies highest-stable gating to latest, runtime-latest, and builder-latest.
Docstring Coverage Warning 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. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating latest tags only for the highest stable release.
Out of Scope Changes check Passed The changes are limited to release-tag classification, release workflow gating and tag fetching, and focused CI coverage. Each change directly supports Issue #477.
Full details: Linked Issues check

Explanation

Issue #477 requires highest-stable gating for latest, runtime-latest, and builder-latest, plus X.Y.Z application tags on every release line, including release/4.0. The PR implements highest-stable selection in scripts/release-tags.sh, gates both mutable workflow aliases on latest, fetches tags, and emits the unprefixed version on the reviewed branch. The whole-PR diff contains no release/4.0 backport, so the requirements for that release line are not established.

Resolution

Apply the Issue #477 fix to release/4.0. Verify that the backport emits X.Y.Z application tags and applies highest-stable gating to latest, runtime-latest, and builder-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.

Share

@cattr-cla

cattr-cla Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Contributor License Agreement

✅ Every human contributor has accepted Cattr CLA version 1.

CLA SHA-256: 68cb254dc87c899f320d5a8977e7e380fd8f6cf6f9388e51d07d936f3a8ce38b

@vermorag
vermorag marked this pull request as ready for review November 2, 2026 17:52
@vermorag
vermorag requested a review from a team November 2, 2026 17:52
@vermorag vermorag added this to the 4.2.0 milestone Nov 2, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T20:00:13.770774Z 9d519ad New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread scripts/release-tags.sh Resolved
Comment thread tests/ci/release-tags.sh Resolved
@vermorag

vermorag commented Nov 2, 2026

Copy link
Copy Markdown
Member

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread scripts/release-tags.sh Resolved

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread tests/ci/release-tags.sh Resolved
vermorag and others added 4 commits November 2, 2026 20:56
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>
@vermorag
vermorag force-pushed the fix/latest-tags-highest-release branch from 8061aed to 9d519ad Compare November 2, 2026 19:58
@vermorag
vermorag merged commit 3058728 into main Nov 2, 2026
29 checks passed
@vermorag
vermorag deleted the fix/latest-tags-highest-release branch November 2, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Release of an older version line moves latest tags and publishes the image with a v prefix

2 participants