mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #970] [MERGED] progress_dashboard: keep distinct same-second snapshots (DASH-SNAPSHOT-COLLISION) #1005
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1005
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
8143819Preserve 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
1504c1afbecause 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.3c2ad30d) had no conflicts. The combined dashboard suite passed all 56 tests.git diff --checkandpython -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
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.