[PR #431] [MERGED] Release train: two-digit same-day counter so GitHub lists releases in order #2561

Closed
opened 2026-11-02 15:57:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/431
Author: @ludovic111
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @ludovic111

Base: main ← Head: fix/release-tag-order


📝 Commits (1)

  • 08c4805 Release train: pad the same-day counter to two digits

📊 Changes

3 files changed (+15 additions, -7 deletions)

View changed files

📝 docs/release-flow.md (+2 -2)
📝 tests/test_release_train.py (+7 -2)
📝 tools/release_train.py (+6 -3)

📄 Description

rdbt noticed on Discord that GitHub's releases page lists Horizon 2026.10.15.9 above 2026.10.15.18: for tags of the same day, the page sorts tag names as text. The API and "Latest" were right.

next_game_tag now pads the counter to two digits: vYYYY.MM.DD, then .01, .02… .10, so text order and numeric order agree.

Safe for existing tags and updates: every reader compares the parts as integers (release_train.tag_key, the launcher's compare_versions parses 09 as 9), and the next tag after an unpadded .20 is .21. Today's already-published .2–.9 stay where GitHub puts them; from tomorrow the list is in order.

Tests: python3 -m unittest tests.test_release_train (10 pass), with new cases for padding, unpadded predecessors, and text sort equal to numeric sort. Docs: docs/release-flow.md examples updated.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/431 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/release-tag-order` --- ### 📝 Commits (1) - [`08c4805`](https://github.com/horizon-rust/horizon/commit/08c4805e10c657326f60a7718ed912e945bfe312) Release train: pad the same-day counter to two digits ### 📊 Changes **3 files changed** (+15 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-flow.md` (+2 -2) 📝 `tests/test_release_train.py` (+7 -2) 📝 `tools/release_train.py` (+6 -3) </details> ### 📄 Description rdbt noticed on Discord that GitHub's releases page lists `Horizon 2026.10.15.9` above `2026.10.15.18`: for tags of the same day, the page sorts tag names as text. The API and "Latest" were right. `next_game_tag` now pads the counter to two digits: `vYYYY.MM.DD`, then `.01`, `.02`… `.10`, so text order and numeric order agree. Safe for existing tags and updates: every reader compares the parts as integers (`release_train.tag_key`, the launcher's `compare_versions` parses `09` as 9), and the next tag after an unpadded `.20` is `.21`. Today's already-published `.2`–`.9` stay where GitHub puts them; from tomorrow the list is in order. Tests: `python3 -m unittest tests.test_release_train` (10 pass), with new cases for padding, unpadded predecessors, and text sort equal to numeric sort. Docs: `docs/release-flow.md` examples updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:57:13 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2561
No description provided.