fix(ci): skip version registration for latest release and sort by semver#979
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR modifies the Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Skip version registration when the tag matches the current latest release (already covered by "Latest · vX.Y.Z" stamp) and sort version entries by semver descending after insert.
Motivation / Context
Fixes: #978
Related: NVIDIA/NVSentinel#1315, NVIDIA/topograph#338
Type of Change
Component(s) Affected
Implementation Notes
Two changes to the publish workflow, matching NVIDIA/NVSentinel#1315:
Skip latest registration: New
should_registeroutput in the resolve step. If the tag equals the current GitHub latest release,should_register=false— the "Latest · vX.Y.Z" stamp already covers it. All downstream steps (register, prune, restore, PR) now gate onshould_registerinstead ofis_release.Semver sort: After inserting a new version entry, re-sort all versioned entries (index 1+) by semver descending using
sort -rV. Ensures out-of-order registration (e.g. backported patch releases) doesn't scramble the dropdown.Testing
Structural parity with NVIDIA/NVSentinel#1315 (merged) and NVIDIA/topograph#338.
Risk Assessment
Rollout notes: Takes effect on next tag push or workflow_dispatch.
Checklist
git commit -S)