[PR #970] [MERGED] progress_dashboard: keep distinct same-second snapshots (DASH-SNAPSHOT-COLLISION) #1005

Closed
opened 2026-11-26 20:19:46 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/970
Author: @TheGeogeo
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: fix/dashboard-snapshot-collision


📝 Commits (1)

  • 8143819 Preserve distinct dashboard snapshots from the same second

📊 Changes

2 files changed (+19 additions, -2 deletions)

View changed files

📝 tests/test_progress_dashboard.py (+16 -0)
📝 tools/progress_dashboard.py (+3 -2)

📄 Description

Claimed in the coordination issue as: DASH-SNAPSHOT-COLLISION

What and why

Two different dashboard snapshots written in the same UTC second shared an archive path. Use the existing full content hash alongside the UTC stamp in new archive names. This preserves both snapshots and keeps consecutive unchanged snapshots deduplicated. The history and snapshot JSON retain their current schema.

Thanks to xel1uz for the report.

Tested

  • Windows, Python 3.12.4. The fixed-timestamp regression failed on 1504c1af because the first archive was replaced.
  • python -I -B tests/test_progress_dashboard.py: 51 passed.
  • python -I -B tests/test_text_write_line_endings.py: 3 passed.
  • Isolated merge with #625 (3c2ad30d) had no conflicts. The combined dashboard suite passed all 56 tests.
  • git diff --check and python -I -B scripts/check_no_game_data.py tools/progress_dashboard.py tests/test_progress_dashboard.py: passed.

GPUs tested: n/a. CPU-only synthetic snapshots.

AI-assisted: Yes, Codex.

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys, or decryption.
  • Translator contract entry: not applicable.

🔄 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/ubiquitarianism/leonida/pull/970 **Author:** [@TheGeogeo](https://github.com/TheGeogeo) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `fix/dashboard-snapshot-collision` --- ### 📝 Commits (1) - [`8143819`](https://github.com/ubiquitarianism/leonida/commit/814381969c12ef11bfe5f9e36c5d963e5fc7e401) Preserve distinct dashboard snapshots from the same second ### 📊 Changes **2 files changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_progress_dashboard.py` (+16 -0) 📝 `tools/progress_dashboard.py` (+3 -2) </details> ### 📄 Description Claimed in the coordination issue as: [DASH-SNAPSHOT-COLLISION](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136977908) ### What and why Two different dashboard snapshots written in the same UTC second shared an archive path. Use the existing full content hash alongside the UTC stamp in new archive names. This preserves both snapshots and keeps consecutive unchanged snapshots deduplicated. The history and snapshot JSON retain their current schema. Thanks to [xel1uz for the report](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136858847). ### Tested - Windows, Python 3.12.4. The fixed-timestamp regression failed on `1504c1af` because the first archive was replaced. - `python -I -B tests/test_progress_dashboard.py`: 51 passed. - `python -I -B tests/test_text_write_line_endings.py`: 3 passed. - Isolated merge with #625 (`3c2ad30d`) had no conflicts. The combined dashboard suite passed all 56 tests. - `git diff --check` and `python -I -B scripts/check_no_game_data.py tools/progress_dashboard.py tests/test_progress_dashboard.py`: passed. GPUs tested: n/a. CPU-only synthetic snapshots. AI-assisted: Yes, Codex. ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys, or decryption. - Translator contract entry: not applicable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:46 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
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
starred/leonida#1005
No description provided.