Integrate customs shipments into watch summaries

This commit is contained in:
seanbetts committed 2026-05-05 09:19:00 +01:00
1 parent e76b138a46
commit f6d93ab9d3
4 files changed
+64

No files matched your search

+11
View File
@@ -51,6 +51,7 @@ def build_draft(run_dir: Path):
tracking_lines = first_n_nonempty(reports / "steamtracking-pairing-focus.txt", 8)
steamvr_lines = first_n_nonempty(reports / "steamvr-depots-key-lines.txt", 8)
steamos_lines = first_n_nonempty(reports / "steamos-mirror-key-lines.txt", 8)
customs_lines = first_n_nonempty(reports / "customs-shipments-key-lines.txt", 8)
discovered_count = count_lines(reports / "discovered-visual-assets.tsv")
retrieved_count = count_lines(reports / "retrieved-visual-assets.tsv")
blocked_count = count_lines(reports / "blocked-visual-assets.tsv")
@@ -60,6 +61,7 @@ def build_draft(run_dir: Path):
steamvr_blocked = has_nonempty(reports / "steamvr-depots-errors.txt")
steamos_blocked = has_nonempty(reports / "steamos-mirror-errors.txt")
valve_blocked = has_nonempty(reports / "valve-errors.txt")
customs_blocked = has_nonempty(reports / "customs-shipments-errors.txt")
lines = [
f"# Status Draft: {run_date}",
@@ -133,6 +135,14 @@ def build_draft(run_dir: Path):
else:
lines.append("- No Valve key-line report found.")
lines.extend(["", "#### Customs / Shipments"])
if customs_blocked:
lines.append("- Customs shipment fetches failed or were partially blocked in this run. See `customs-shipments-errors.txt`.")
if customs_lines:
lines.extend([f"- `{line}`" for line in customs_lines])
elif not customs_blocked:
lines.append("- No relevant customs shipment rows found.")
lines.extend(
[
"",
@@ -149,6 +159,7 @@ def build_draft(run_dir: Path):
f"- Retrieved visual assets: `{reports / 'retrieved-visual-assets.tsv'}`",
f"- Blocked visual assets: `{reports / 'blocked-visual-assets.tsv'}`",
f"- Manual retry URLs: `{reports / 'manual-asset-urls.txt'}`",
f"- Customs shipments: `{reports / 'customs-shipments.md'}`",
]
)