Skip to content

ci: sort release tags by version, not lexicographically - #1200

Merged
mr-tz merged 1 commit into
masterfrom
fix-release-tag-sort
Oct 16, 2026
Merged

mr-tz merged 1 commit into
masterfrom
fix-release-tag-sort

Conversation

@mr-tz

@mr-tz mr-tz commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

The v10.0.0 release workflow failed (https://github.com/mandiant/capa-rules/actions/runs/38912748434) with "body is too long (maximum is 125000 characters)".

create_releases.py listed tags with git tag -l v*.*, which sorts lexicographically, so v10.0.0 landed between v1.6.1 and v2.0.0 and the release notes diffed against v1.6.1. The -p option was also broken for v10+ because the computed range was negative.

Use --sort=v:refname. Verified locally: create_releases.py v10.0.0 and -p v9.4.0 v10.0.0 both now diff against v9.4.0, matching the manually created v10.0.0 release notes.

@mr-tz
mr-tz requested a review from a team October 16, 2026 14:14
@mr-tz
mr-tz merged commit 42cbfd4 into master Oct 16, 2026
9 checks passed
@mr-tz
mr-tz deleted the fix-release-tag-sort branch October 16, 2026 14:37
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