Skip to content

fix(ci): pick previous release tag from all tags for changelog - #5144

Merged
kajalj22 merged 2 commits into
mainfrom
kajalj/release-prev-tag
Nov 10, 2026
Merged

kajalj22 merged 2 commits into
mainfrom
kajalj/release-prev-tag

Conversation

@kajalj22

Copy link
Copy Markdown
Contributor

Summary

  • Fix release.yaml failing on every run since the changelog builder was enabled: the template's git describe fallback only sees tags reachable from the release ref. Release tags live on r* branches, so push runs on main / pull-request/* resolved v0.1.0, built a changelog covering the whole history, and the Create release step died with Argument list too long.
  • Add a previous-tag job that lists all repo tags through the GitHub API and selects the highest stable semver tag (independent of branch ancestry), and pass it as gh-release-from-tag. A manual gh-release-from-tag dispatch input still overrides it.
  • If the lookup fails, the release job is skipped and the run goes red, rather than silently falling back to v0.1.0.

Stable tags only: rc tags are never picked as the "previous" release.

Test plan

  • Ran the lookup script against the live tags API; it returns v0.8.0
  • After merge, confirm the release.yaml run on main is green and Build Changelog logs v0.8.0...<sha>
  • Dispatch release.yaml from main with dry-run: true and confirm the body lists the PRs since the previous release

🤖 Generated with Claude Code

git describe only sees tags reachable from the release ref, and release
tags live on r* branches, so push runs resolved v0.1.0 and built a
changelog covering the whole history. That overflowed the env var limit
("Argument list too long") and failed every release.yaml run.

Add a previous-tag job that selects the highest stable semver tag via the
tags API, independent of branch ancestry, and pass it as
gh-release-from-tag. A manual gh-release-from-tag input still overrides.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the CI Relating to CI label Nov 10, 2026
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 9f69961

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 10, 2026 01:35
@kajalj22

Copy link
Copy Markdown
Contributor Author

/review-approve

@kajalj22 kajalj22 added the CI:docs Run doctest label Nov 10, 2026
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 9f69961

@kajalj22
kajalj22 enabled auto-merge (squash) November 10, 2026 01:41

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Correctness

  1. (C1) The new changelog default can select the release being published, or a newer release, as its previous release. Versioned releases need a target-aware starting tag while main/PR validation should retain the latest stable tag across branches.

Validation

This was static inspection only. I couldn't execute workflows, query the tags API, inspect the external reusable workflow, or verify required CI results. One delegated report wasn't delivered; I inspected its job-dependency, override, and summary scope directly.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

Comment thread .github/workflows/release.yaml Resolved
On workflow_dispatch, read the version being released from
nemo_rl/package_info.py at release-ref and select the highest stable tag
strictly below it, so a release of an already-tagged SHA or a
maintenance release no longer starts from its own or a newer tag. Push
validation keeps the latest stable tag across all branches.

Also treat "no matching tags" as an empty result instead of a failure.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 19a384f

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review-approve

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Follow-up

Static tracing of the target-aware selection shows that C1’s tag-ordering counterexamples are addressed: with stable tags v0.7.0 and v0.8.0, dispatch targets 0.8.0 and 0.7.1 select v0.7.0. The stable-tag filter still excludes RC tags, and push validation retains the latest stable tag across branches.

The explicit override and lookup-success gate remain intact. No eligible findings remain within the follow-up scope and historical impact filter.

Validation

All three assigned inspections completed. This was static source review only; no tests or workflows were executed, and required CI results weren't available. The pinned checkout action and external reusable workflow aren't mounted, so dispatch execution and end-to-end changelog generation remain unverified.

Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.

@kajalj22
kajalj22 merged commit 8433085 into main Nov 10, 2026
50 checks passed
@kajalj22
kajalj22 deleted the kajalj/release-prev-tag branch November 10, 2026 16:50
fujial-code added a commit to Kh4L/NemoRL that referenced this pull request Nov 16, 2026
Bring in the previous-release-tag fix from NVIDIA-NeMo#5144 so release validation does not generate an oversized changelog from v0.1.0. Resolve the Gym integration documentation conflict while preserving the truncation option and current main formatting.

Signed-off-by: fujial <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:docs Run doctest CI Relating to CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants