Repository navigation
fix(ci): pick previous release tag from all tags for changelog - #5144
Conversation
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]>
|
/ok to test 9f69961 |
|
/review-approve |
|
/ok to test 9f69961 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
Correctness
- (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.
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]>
|
/ok to test 19a384f |
|
/review-approve |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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.
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]>
Summary
release.yamlfailing on every run since the changelog builder was enabled: the template'sgit describefallback only sees tags reachable from the release ref. Release tags live onr*branches, so push runs onmain/pull-request/*resolvedv0.1.0, built a changelog covering the whole history, and theCreate releasestep died withArgument list too long.previous-tagjob that lists all repo tags through the GitHub API and selects the highest stable semver tag (independent of branch ancestry), and pass it asgh-release-from-tag. A manualgh-release-from-tagdispatch input still overrides it.v0.1.0.Stable tags only: rc tags are never picked as the "previous" release.
Test plan
v0.8.0release.yamlrun onmainis green andBuild Changeloglogsv0.8.0...<sha>release.yamlfrommainwithdry-run: trueand confirm the body lists the PRs since the previous release🤖 Generated with Claude Code