Repository navigation
ci(evidence): Keep run outputs keeps the log lines a pattern finds, and the viewer tests' figures link to them (#2148) - #2150
Merged
Conversation
This was referenced Nov 22, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 23, 2026
…ports, and RE-347's placed bodies cite the runs that score them (#2148) (#2151) ## Summary Measure can now run a scorer over each model's two exports, base and head, for a claim that a change moved nothing. The status page's RE-347 sentence, that every door's and window's body and opening is where it was, had no kept source: `tools/re/placed_bodies_vs_base.py` had been run on a Mac over the cited runs' kept IFCs (#2148). - **The input:** `-f pair_scorer=<tools/re scorer>`, a scorer that takes `<base.ifc> <head.ifc>`. It needs a base and `keep_ifc=true`, and the job refuses without them. - **The job:** `pairs` runs the scorer, from the workflow's ref as the compare job's tools do, on each model anyone can fetch and both sides exported. It uploads the outputs as `measure-pairs` and fails on a scorer that exits non-zero. It is its own job, so a run with no pair scorer is unchanged. A held-out, `rac_advanced` or BIMcollab model is never given to it, since such a scorer prints ElementIds. Measure's scrub already leaves such a folder no export, and the job's list of models anyone can fetch is a second fence. - **Kept:** the Keep run outputs workflow keeps `measure-pairs` as `pairs/` with a run's outputs. - **Measured again:** RE-347's two runs, at their own commits, with `pair_scorer=placed_bodies_vs_base`. - Run 45074892701 (head `b452f967`, base `5c35e190`) scores Core Interior, RE1 Architecture and both offices. - Run 45074900834, the box-body run (head `c1a2a739`, base `e9f4c592`, `--no-saved-meshes`), scores Core Interior and both offices. - Every model's export digest on both sides equals the cited runs' kept `ifc.sha256`, so these score the same exports RE-347 scored. Their counts are RE-347's tables'. - Both are kept, and the status page cites them beside the first two. Part of #2148. ## Motivation #2148. "Is where it was" was backed only by a run on a Mac, over exports GitHub deletes with the runs. ## Changes - `.github/workflows/measure.yml`: the `pair_scorer` input, the `pairs` job, and a header paragraph. - `.github/workflows/keep-run-outputs.yml`, `tools/ci/keep-run-outputs.py`: `measure-pairs`, kept as `pairs/`. - `docs/status.md`: the RE-347 sentence cites the two runs and links their kept outputs. - `research/kept-runs.tsv`: 2 rows. ## Testing Unit tests are banned in this repository: do not add them. - [x] **The job, end to end, on RE-347's two runs** (45074892701 and 45074900834, dispatched from this branch). Every job succeeded, each model's scorer exited 0, and `measure-pairs` holds 4 and 3 outputs. - Core Interior: doors' axes 92 moved, 40 unchanged; windows' 6 and 0; bodies 138 paired, 0 moved; openings 138 paired, 0 moved; no identity difference. - RE1 Architecture: 3 and 2; 5 bodies and 4 openings paired, 0 moved. - The office as built: 156 and 113 each; 538 bodies and 463 openings paired, 0 moved. - At building permit: doors 155 and 114, windows 152 and 113; 534 bodies and 457 openings paired, 0 moved. - The box-body run gives the same pairs, with no body or opening moved. - [x] **A held-out model in the run** (45076986876, `-f holdout=true -f models="re1-architecture holdout-modelo*"`): `holdout-modelo_bim` was measured on both sides. Its folders held only `counts.txt` and `ifc.sha256`, and `measure-pairs` holds `re1-architecture` alone. - [x] **No `keep_ifc`** (45076996046): the pair job failed at its first step with "pair_scorer reads both sides' exports: dispatch it with -f keep_ifc=true and a base". - [x] **A scorer that exits non-zero** (45084427212, `pair_scorer=areas_across_saves`, which takes saves by year and prints its usage when given two plain files): the pair job failed with "re1-architecture: areas_across_saves exited 2 (see pairs/re1-architecture/areas_across_saves.txt)", and `measure-pairs` was still uploaded. - [x] **The same exports:** each model's `ifc.sha256`, head and base, equals the one kept for runs 42092391898 and 42106731054, 14 of 14. - [x] **The keeping, end to end:** the workflow dispatched from this branch on both runs (runs 45075828083 and 45075835059) kept `pairs/` with 4 and 3 files, at `refs/evidence/45074892701` and `refs/evidence/45074900834`. - [x] **The keep tool after merging `main`**, where #2150 added the log part to it, locally: the outputs part on a `measure-head` and a `measure-pairs` keeps `pairs/` with its 4 files, and the log part on run 42125048710's log keeps the same 8 lines as `refs/evidence/42125048710-log`. - [x] actionlint, zizmor, shellcheck and `tools/ci/check-workflows.py` pass after the merge. Measure has 22 dispatch inputs, under GitHub's 25. `tools/ci/cited-runs-kept.py` (60 runs), `tools/ci/measured_numbers.py` and every step of the PII guard job pass locally, 29 of 29, and both new URLs return 200 logged out. ## Audit-honesty checklist - [x] The status page keeps its first two runs, which made the claim, and adds the two that score it in CI. - [x] No changelog fragment: repository tooling and documentation links. - [x] No emojis, private paths or internal jargon. ## Legal and contribution hygiene - [x] Apache-2.0. - [x] No Autodesk proprietary content. - [x] No fixtures. ## Breaking changes None. Review: rvtReview, the maintainer session, wrote this change. As rvtDevelop is not running, it re-reads the diff and approves the change itself on a green head (Griffin, 2026-11-12).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Keep run outputs workflow can now keep the lines of a run's log that a pattern finds, as
refs/evidence/<run>-log. It is for figures a run prints only to its log. The status page's viewer-tests paragraph is the case in #2148: its run, 42125048710, lists no artifact, and its log is deleted with the run.part: logandlines: <pattern>, a Python regular expression, it keeps each log line in which the pattern is found, as<job>\t<time>\t<text>, with terminal colour codes removed.KEPT.mdrecords the pattern and the jobs.lines, a pattern that is not a regular expression, a pattern that finds no line, and the same scans as the other parts, the PII guard's patterns and left-out folders' names. A runner's home path in a matched line is refused like any other.refs/evidence/42125048710-log;d1de8adf), atrefs/evidence/42109657349-log.-, as it lists no artifact.Part of #2148.
Motivation
#2148. A figure printed only to a run's log loses its source when GitHub deletes the run's log, as it does its artifacts.
Changes
.github/workflows/keep-run-outputs.yml: thelogpart and thelinesinput; the trust check per part.tools/ci/keep-run-outputs.py:--part log --lines; the scans moved intoscan(), unchanged, so every part goes through them.docs/status.md: the viewer-tests citation and the script's growth link the kept lines.research/kept-runs.tsv: the two-logrows,42109657349's row, the reason on42125048710's row, and a header line for-logrows.docs/evidence.md: the sentence on runs with nothing left to keep.Testing
Unit tests are banned in this repository: do not add them.
lines='^(Saved parameters|saved parameters|Read cost) '(run 45074538166), it pushed 4 lines frombrowser tests 1/3, the same 4 as the tool gave locally on that run's log.lines='^(Saved parameters|saved parameters|Read cost|A read under a) |^dist/assets/index-[A-Za-z0-9_-]+\.js '. It is commit85fff80d: 8 lines from 3 jobs.lines='^dist/assets/index-[A-Za-z0-9_-]+\.js '(run 45076218140), it pushed commited933f84, with 3 lines.gh run view 42125048710 --log):HOMEline, which holds/home/runner/: exit 1, a PII hit;--lineswithout--part log, and--part logwithout--lines: exit 1;scan()moved, locally:measure-head: the same 13 files for 2 models as its kept commit;counts.txtbyte for byte the kept one;probe.txtandcommit.txt.tools/ci/check-workflows.pypass.tools/ci/cited-runs-kept.py(58 runs),tools/ci/measured_numbers.pyand every step of the PII guard job pass locally, 29 of 29. Both new URLs return 200 logged out.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Review: rvtReview, the maintainer session, wrote this change. As rvtDevelop is not running, it re-reads the diff and approves the change itself on a green head (Griffin, 2026-11-12).