Skip to content

ci(release): suffix the OCI image.version label + docker-*/version.txt#2902

Merged
moabu merged 1 commit into
mainfrom
ci/release-suffix-image-version-labels
Jun 25, 2026
Merged

ci(release): suffix the OCI image.version label + docker-*/version.txt#2902
moabu merged 1 commit into
mainfrom
ci/release-suffix-image-version-labels

Conversation

@mo-auto

@mo-auto mo-auto commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #2897 (merged). org.opencontainers.image.version (in the flex Dockerfiles) and docker-*/version.txt are image tags, so the bump now sets them to the suffixed flex tag (e.g. 6.2.0-1) like the other image-tag references, instead of the bare version (6.2.0). Chart/package versions (version.py, Chart.yaml) stay bare.

Validated with a 6.2.0 bump: all four Dockerfiles' OCI label → 6.2.0-1, both docker-*/version.txt6.2.0-1, version.py6.2.0.

Summary by CodeRabbit

  • Chores
    • Improved release version updates for Docker-related artifacts.
    • Ensured nightly version markers are consistently replaced with the correct release tag in generated image metadata and version files.

…t (test feedback)

org.opencontainers.image.version and docker-*/version.txt are image tags, so they now take the
suffixed flex tag (e.g. 6.2.0-1) like the other image-tag references, instead of the bare version.
The chart/package versions (version.py, Chart.yaml) stay bare.

Signed-off-by: moauto <54212639+mo-auto@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 58307fc6-b4d5-44b4-81e8-9394c23b5151

📥 Commits

Reviewing files that changed from the base of the PR and between dbdcd19 and a71c421.

📒 Files selected for processing (1)
  • automation/release/version_bump.py

📝 Walkthrough

Walkthrough

The release version bump script now handles docker-*/version.txt as structured nightly input, rewrites those files from 0.0.0-nightly to the suffixed flex_tag, and updates the OCI image version label to the same tag.

Changes

Version bump handling

Layer / File(s) Summary
Docker version file handling
automation/release/version_bump.py
docker-*/version.txt is added to the structured nightly set, and those files are rewritten from 0.0.0-nightly to the suffixed flex_tag before being marked changed.
OCI version label substitution
automation/release/version_bump.py
The structured image tag substitution patterns now include org.opencontainers.image.version="0.0.0-nightly" and rewrite it to the suffixed flex_tag.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A bunny hopped through release night air,
✨ Tag in paw, with tidy care.
Docker files and labels gleam,
Nightly turned to flex_tag dream,
A soft little bump beyond compare.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: suffixing the OCI image.version label and docker-*/version.txt during release bumps.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/release-suffix-image-version-labels

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

Comment @coderabbitai help to get the list of available commands.

@mo-auto mo-auto added the area-CI Indicates work required in automatic builds or CI infrastructure label Jun 25, 2026
@moabu moabu merged commit c9aaa80 into main Jun 25, 2026
7 of 8 checks passed
@moabu moabu deleted the ci/release-suffix-image-version-labels branch June 25, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CI Indicates work required in automatic builds or CI infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants