progress_dashboard: keep distinct same-second snapshots (DASH-SNAPSHOT-COLLISION) #970
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!970
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/970/head"
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?
@TheGeogeo on GitHub · 2026-11-24 16:03 UTC · original
TheGeogeo:fix/dashboard-snapshot-collision→main· +19 −2 · 2 files · 1 commits · merged 2026-11-24 20:04 UTCClaimed 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.@KernelSmoker on GitHub · 2026-11-24 16:06 UTC · original · approved these changes
Verified submitted head
814381969c12ef11bfe5f9e36c5d963e5fc7e401. The dashboard regression suite passed 51/51 and newline checks 3/3. It confirms distinct snapshots at the same generated timestamp are both archived, while the next snapshot with identical content is deduplicated; history ordering remains correct.check_no_game_data.pyandgit diff --checkpassed. Synthetic data only; no GPU/game data.@kawaii-shakal on GitHub · 2026-11-24 16:14 UTC · original
Independent test of #970 (DASH-SNAPSHOT-COLLISION)
Head tested:
814381969c(merge base1504c1af). Environment: Windows 11, native Python 3.13.13, no GPU.Commands and results:
python -I -B tests/test_progress_dashboard.py: Ran 51 tests, OK.python -I -B tests/test_text_write_line_endings.py: OK.tools/progress_dashboard.pyfrom the merge base:test_different_snapshots_in_the_same_second_are_preservedFAILS (the second snapshot replaces the first). So the test exercises the change.git merge-tree --write-tree origin/main <head>(origin/main0af7753c): clean, no conflicts.python -I scripts/check_no_game_data.pyon the two changed files: exit 0.git diff --check: clean.Findings:
history[-1]["content_hash"](line 1025), so an unchanged snapshot is still not rewritten (the test's thirdwrite_outputscall returning False covers this).snapshots/progress_<utc>.jsonnames (only the test globsprogress_*.json), so old archives without the hash suffix keep working next to the new ones.history.jsonstores the first 16 characters (line 999). Using[:16]would keep the name shorter (useful under Windows MAX_PATH with a deep--out) and match the history entry. Not blocking.Verdict: looks good.
AI-assisted.
@QemmHD on GitHub · 2026-11-24 20:04 UTC · original
Merging.
Why merged: DASH-SNAPSHOT-COLLISION: progress_dashboard puts the content hash in the snapshot filename, so two different snapshots taken in the same second are both kept instead of one overwriting the other. kawaii-shakal checked it (51 OK) and KernelSmoker approved it.
Why it's good: test_progress_dashboard and the line-ending test: 54 passed.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main
6293c1c4f. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 571 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new env vars or build/CI changes.AI-assisted (Claude Code, Claude Opus 5.5).
@TheGeogeo on GitHub · 2026-11-24 21:26 UTC · original
thegeogeo