build: add hack/bump-version.sh and normalize versions to v1.5.0 - #40
Merged
spraveenio merged 2 commits intoJul 16, 2026
Merged
Conversation
Add hack/bump-version.sh for the Prepare Branch CI tool to rewrite all version-bearing strings on release-branch creation. Single version arg (v optional), idempotent anchored sed replacements, no git operations. Run it with 1.5.0 to normalize main's drifted versions (Chart.yaml v1.4.1, PROJECT_VERSION "1.4.0", conf.py "main", docs at v1.3.0/v1.4.1) to the current release across Chart.yaml, Makefile, docs, and example. ROCm variant: covers the file set present in this repo (no .job.yml or README_AINIC.md, which are pensando-only).
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.
Summary
hack/bump-version.sh— a script to rewrite all version-bearing strings across the repo on release-branch creation. Single version arg (v1.5.0or1.5.0, leadingvoptional), idempotent anchoredsedreplacements, fail-fast file check. No git operations.1.5.0to normalizemain's drifted versions to the current release.Details
Normalizes:
Chart.yamlv1.4.1→v1.5.0, MakefilePROJECT_VERSION "1.4.0"→"1.5.0"+ helm-install tarball,conf.py"main"→"1.5.0",docs/index.md+kubernetes-helm.mdv1.3.0→v1.5.0,examplev1.4.1→v1.5.0.Left alone:
docker/Dockerfilelabels (version="latest") andhelm-charts/values.yaml(tag: latest, build-time overwritten).Test plan
bump-version.sh 1.5.0→ 6 files bumped correctly## v1.5.0already present