Skip to content

fix: accept PEP 440 suffixes when determining next RC#9814

Merged
saturley-hall merged 1 commit into
release/1.2.0from
fix/release-pipeline-post-version-parse
May 21, 2026
Merged

fix: accept PEP 440 suffixes when determining next RC#9814
saturley-hall merged 1 commit into
release/1.2.0from
fix/release-pipeline-post-version-parse

Conversation

@saturley-hall

@saturley-hall saturley-hall commented May 21, 2026

Copy link
Copy Markdown
Member

The "Determine next RC number" step in the release workflow rejected pyproject.toml versions like 1.2.0.post1 against a strict three-segment regex, breaking every workflow_dispatch on release/1.2.0 after the post1 bump.

Broaden the base-version regex to also accept .postN / .devN / aN / bN / rcN suffixes, and convert each to a dotted-SemVer pre-release identifier when assembling the Helm chart version and NGC image tag so both stay valid SemVer (e.g. 1.2.0.post1 -> 1.2.0-post.1-rc.0). Plain X.Y.Z keeps the existing tag shape unchanged.

Closes OPS-5418


Open in Devin Review

The "Determine next RC number" step in the release workflow rejected
`pyproject.toml` versions like `1.2.0.post1` against a strict three-segment
regex, breaking every workflow_dispatch on release/1.2.0 after the post1
bump.

Broaden the base-version regex to also accept .postN / .devN / aN / bN /
rcN suffixes, and convert each to a dotted-SemVer pre-release identifier
when assembling the Helm chart version and NGC image tag so both stay
valid SemVer (e.g. `1.2.0.post1` -> `1.2.0-post.1-rc.0`). Plain X.Y.Z
keeps the existing tag shape unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@saturley-hall
saturley-hall requested a review from a team as a code owner May 21, 2026 02:12
@saturley-hall
saturley-hall merged commit c0d3cae into release/1.2.0 May 21, 2026
48 of 51 checks passed
@saturley-hall
saturley-hall deleted the fix/release-pipeline-post-version-parse branch May 21, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant