Skip to content

Makefile: describe version using only io500-*_vN tags - #123

Merged
adilger merged 1 commit into
IO500:mainfrom
adilger:describe-match-vN
Oct 28, 2026
Merged

adilger merged 1 commit into
IO500:mainfrom
adilger:describe-match-vN

Conversation

@adilger

@adilger adilger commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

The build version comes from "git describe", which picks the newest annotated tag on a commit. The floating release tag (e.g. io500-sc26) is moved to each new io500-sc26_vN commit, and if it is re-tagged after io500-sc26_vN is created, the binary reports "io500-sc26" instead of the specific version that identifies the code being run.

Restrict "git describe" to io500-_vN tags so the version is always the precise release, independent of the order in which tags are made. Untagged commits still describe relative to the previous io500-_vN tag, and --always still falls back to the commit hash.

Tested by re-creating io500-sc26 as a newer annotated tag on io500-sc26_v3: the old command reports "io500-sc26", the new one "io500-sc26_v3".

The build version comes from "git describe", which picks the newest
annotated tag on a commit.  The floating release tag (e.g. io500-sc26)
is moved to each new io500-sc26_vN commit, and if it is re-tagged after
io500-sc26_vN is created, the binary reports "io500-sc26" instead of the
specific version that identifies the code being run.

Restrict "git describe" to io500-*_vN tags so the version is always
the precise release, independent of the order in which tags are made.
Untagged commits still describe relative to the previous io500-*_vN
tag, and --always still falls back to the commit hash.

Tested by re-creating io500-sc26 as a newer annotated tag on
io500-sc26_v3: the old command reports "io500-sc26", the new one
"io500-sc26_v3".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adilger
adilger requested a review from a team as a code owner October 23, 2026 16:09
@adilger
adilger merged commit 5c2237d into IO500:main Oct 28, 2026
2 checks passed
@adilger
adilger deleted the describe-match-vN branch October 28, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants