fix: one id per card, and render the site locally

A copy filed under two consoles of one maker was listed twice with the same id, and a data directory listed the same bytes twice, so the site deploy refused 20 pages. The first card keeps the id. The pipeline only generated the pages, so it now renders them with mkdocs build --strict and runs validate_site as the deploy does. The resumed-speed test read the clock and failed on a slow runner, it now fixes the elapsed time.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 07:05:01 +02:00
1 parent 6df087e3e9
commit 954f213d42
5 files changed
+65 -5

No files matched your search

+17
View File
@@ -24,6 +24,7 @@ Steps, numbered as the run prints them:
6 --verify-packs pack integrity, extraction and hashes
7 generate_readme.py README.md and CONTRIBUTING.md
8 generate_site.py MkDocs pages
8b mkdocs build --strict rendered as the site deploy renders it, then validate_site.py
--offline skips 2 to 2b2 and the network side of 2e and 4: release assets
come from .cache/large/ only.
@@ -43,6 +44,7 @@ import contextlib
import importlib.util
import os
import re
import shutil
import subprocess
import sys
import time
@@ -801,6 +803,21 @@ def main() -> None:
print("\n--- 8/8 generate site: SKIPPED (--skip-docs) ---")
results["generate_site"] = SKIPPED
# Step 8b: the render the site deploy runs. Generating the pages without
# rendering them let 20 pages with duplicate ids through to CI.
if args.skip_docs:
print("\n--- 8b render site: SKIPPED (--skip-docs) ---")
results["render_site"] = SKIPPED
elif shutil.which("mkdocs") is None:
print("\n--- 8b render site: SKIPPED (mkdocs not installed) ---")
results["render_site"] = SKIPPED
else:
ok, _ = run(["mkdocs", "build", "--strict"], "8b render site")
if ok:
ok, _ = run([sys.executable, "scripts/validate_site.py"], "8b validate site")
results["render_site"] = ok
all_ok = all_ok and ok
# Summary
total_elapsed = time.monotonic() - total_start
print(f"\n{'=' * 60}")