upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/progress_dashboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/progress_dashboard.py')
-rw-r--r--tools/progress_dashboard.py5
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
6Writes, into --out only (a folder inside the repository is refused, so nothing here can be committed by accident): 6Writes, 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))