Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,8 @@ jobs:
# docs.
- name: API docs cite only reported RE findings and no planning labels
run: python3 tools/ci/api-doc-ids.py
- name: Every run the evidence pages cite is kept or recorded (#2124)
run: python3 tools/ci/cited-runs-kept.py
# The saved-graphics pass builds only the fields in SAVED_GRAPHICS_FIELDS
# (#1694), and a reader that takes another reads it as absent: no export
# need show it on a route none reads. This keeps the list and the `m_`
Expand Down
2 changes: 1 addition & 1 deletion docs/evidence.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The measured figures behind the [README](../README.md), moved here verbatim so the README can stay a short landing page: what each Revit release gives by input, what works today layer by layer, what rvt-rs reads from real projects against Revit's own exports, and what does not work yet. [`support-matrix.json`](support-matrix.json) is the machine-readable ceiling for every claim, and `rvt-capabilities --matrix -f text` prints it.

GitHub keeps a workflow run's artifacts for 90 days. The scored outputs of the 51 Measure runs that this page, the README, the supported profile, the status page and the reference models cited on 2026-11-22, and that still held artifacts, are kept past that: [`research/kept-runs.tsv`](../research/kept-runs.tsv) gives each kept run's commit, whose files read as plain text at `https://raw.githubusercontent.com/DrunkOnJava/rvt-rs/<commit>/<path>`, with `KEPT.md` there saying what was kept. The five cited runs that had nothing left to keep are listed there with the reason. A run cited later is kept the same way (#2124).
GitHub keeps a workflow run's artifacts for 90 days. The scored outputs of the 51 Measure runs that this page, the README, the supported profile, the status page and the reference models cited on 2026-11-22, and that still held artifacts, are kept past that: [`research/kept-runs.tsv`](../research/kept-runs.tsv) gives each kept run's commit, whose files read as plain text at `https://raw.githubusercontent.com/DrunkOnJava/rvt-rs/<commit>/<path>`, with `KEPT.md` there saying what was kept. The five cited runs that had nothing left to keep are listed there with the reason. A run cited later is kept the same way, and CI fails while a page cites a run the index does not list (`tools/ci/cited-runs-kept.py`, #2124).

Before the README was shortened, its "Support and evidence" section said the following; "this README" there means the figures on this page.

Expand Down
53 changes: 53 additions & 0 deletions tools/ci/cited-runs-kept.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
"""Fail when an evidence page cites a workflow run that research/kept-runs.tsv does not list (#2124).

The README and the evidence pages (docs/supported-profile.md, docs/reference-models.md,
docs/evidence.md, docs/status.md) cite workflow runs by id, and GitHub deletes a run's artifacts
90 days after it ran. research/kept-runs.tsv lists every cited run: its outputs kept under
refs/evidence/<run> by .github/workflows/keep-run-outputs.yml, or `-` and why where nothing was
left to keep. A row named `<run>-probes` or `<run>-holdout` is a commit kept beside the run's
first; the run itself still needs its own row. A page that cites a new run without a row lets
that run's outputs expire unkept, so this fails until the workflow has kept it and its row is in.
"""

import pathlib
import re
import sys

root = pathlib.Path(__file__).resolve().parents[2]
PAGES = (
"README.md",
"docs/supported-profile.md",
"docs/reference-models.md",
"docs/evidence.md",
"docs/status.md",
)
RUN = re.compile(r"github\.com/DrunkOnJava/rvt-rs/actions/runs/(\d+)")


def main():
listed = set()
for line in (root / "research/kept-runs.tsv").read_text(encoding="utf-8").splitlines():
if line and not line.startswith("#") and not line.startswith("run\t"):
name = line.split("\t", 1)[0]
if re.fullmatch(r"\d+", name):
listed.add(name)
missing = []
for page in PAGES:
text = (root / page).read_text(encoding="utf-8")
for number, line in enumerate(text.splitlines(), 1):
for run in RUN.findall(line):
if run not in listed:
missing.append((page, number, run))
for page, number, run in missing:
print(
f"::error file={page},line={number}::run {run} is cited but research/kept-runs.tsv does not list it: "
"keep it with the Keep run outputs workflow and add its row, or, for a run the workflow cannot keep "
"(not a Measure run, or its artifacts gone), add its row with `-` and why"
)
cited = {run for page in PAGES for run in RUN.findall((root / page).read_text(encoding="utf-8"))}
print(f"Cited runs: {len(cited)}, every one in research/kept-runs.tsv" if not missing else f"{len(missing)} citations of runs the index lacks")
return 1 if missing else 0


if __name__ == "__main__":
sys.exit(main())
Loading