diff options
| author | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-24 21:09:02 +0100 |
|---|---|---|
| committer | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-24 21:09:02 +0100 |
| commit | bc245e5046124941bbdc7bb5c3bd7c739da4e03e (patch) | |
| tree | 5b780fbcbc1dd131ee635980dfe3e996ac72928f /tools/progress_dashboard.py | |
| parent | 30450e0e96e1df700bbfa9505433c9b9940e8694 (diff) | |
| parent | 58be9cdf8df9a31bc7f6c068991f1aed381f7f4d (diff) | |
Merge remote-tracking branch 'origin/main' into vcc-tuple-resync
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/progress_dashboard.py')
| -rw-r--r-- | tools/progress_dashboard.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/progress_dashboard.py b/tools/progress_dashboard.py index 9e9d0eb28..43d3fafdb 100644 --- a/tools/progress_dashboard.py +++ b/tools/progress_dashboard.py | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | Writes, into --out only (a folder inside the repository is refused, so nothing here can be committed by accident): | 6 | Writes, into --out only (a folder inside the repository is refused, so nothing here can be committed by accident): |
| 7 | progress.html one self-contained page (no network, no packages; open it from disk) | 7 | progress.html one self-contained page (no network, no packages; open it from disk) |
| 8 | snapshots/progress_<utc>.json the data behind it; a snapshot equal to the previous one is not written again | 8 | snapshots/progress_<utc>_<hash>.json the data behind it; an unchanged snapshot is not written again |
| 9 | history.json one summary line per snapshot, for the trend chart | 9 | history.json one summary line per snapshot, for the trend chart |
| 10 | unit_results.json the last --run-tests outcome, kept so a later run can show what changed since | 10 | unit_results.json the last --run-tests outcome, kept so a later run can show what changed since |
| 11 | 11 | ||
| @@ -1025,7 +1025,8 @@ def write_outputs(snap, out_dir): | |||
| 1025 | new = not history or history[-1]["content_hash"] != snap["content_hash"][:16] | 1025 | new = not history or history[-1]["content_hash"] != snap["content_hash"][:16] |
| 1026 | if new: | 1026 | if new: |
| 1027 | stamp = snap["generated_at"].replace("-", "").replace(":", "") | 1027 | stamp = snap["generated_at"].replace("-", "").replace(":", "") |
| 1028 | save_text(os.path.join(out_dir, "snapshots", f"progress_{stamp}.json"), dump_json(snap)) | 1028 | archive = f"progress_{stamp}_{snap['content_hash']}.json" |
| 1029 | save_text(os.path.join(out_dir, "snapshots", archive), dump_json(snap)) | ||
| 1029 | history.append(summary_line(snap)) | 1030 | history.append(summary_line(snap)) |
| 1030 | save_text(hist_path, dump_json(history)) | 1031 | save_text(hist_path, dump_json(history)) |
| 1031 | save_text(os.path.join(out_dir, "progress.html"), render_page(snap, history)) | 1032 | save_text(os.path.join(out_dir, "progress.html"), render_page(snap, history)) |