Repository navigation
ci(measure): a pair scorer runs on each open model's base and head exports, and RE-347's placed bodies cite the runs that score them (#2148) - #2151
Merged
Conversation
14 of 15 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 23, 2026
…ide fails the run, and a tool of several exports is not run per model (#1541) (#2156) ## Summary A scorer a Measure run names, or a probe's scorer, that exits non-zero on the head side now fails the run. Before, it only raised an error annotation on a green run (#1541), so a green run could hold a crashed result that a page then cited or a change landed on. Run 45072403351 was one: its one probe scorer exited 2 on both offices, and the run finished green. - **Where it is caught:** where the annotation already was, in `score` in `tools/ci/measure-reference-models.sh`. Each one is also listed in `scorer-failures-<shard>.txt` at the top of the shard's results: model, scorer and exit status. - **Where it fails:** in a last step of the compare job, after the merged sides, the summary and every upload are written. So a failed run still holds every output to look into. - **The head side only:** the base side is the ref the run compares with, usually main, so a crash or a finding there is that ref's own. It is annotated as before and listed, and fails no run. In run 43330924424, main failed the same-project gate on six samples that the head fixed. - **Unchanged:** the default scorer set, where a scorer may exit 1 for a finding, as #1541 asked. - **A finding on the head side** fails the run too. The schema steps tell a crash from a finding by the status (#1882), but here that rule would miss a usage error a scorer raises with `sys.exit(__doc__)`, which also exits 1. That matches the same-project gate, whose head-side failure already turns the run red (`tools/ci/check-bodies-across-saves.sh` in the same-project gates job). - **Names:** a model whose results leave the runner only as counts (held-out, `rac_advanced`, BIMcollab), or a pair once held out (spent), is listed as "a model kept to counts". So the list, which the keep workflow keeps with a run's outputs, names none of them, as its scan requires. - **Reuse:** the base side saves its results for later runs only when no output holds an `exit N` line (step "Whether these results are whole"), so a run that writes a failure list never saves one for reuse. - **A tool that cannot run on one model** is no longer run on each one. `areas_across_saves` named in `scorers` is taken as asking for its gate, which already runs whenever the samples are in the run, as `bodies_across_saves` is. Any other named scorer whose name ends `_across_saves` or `_vs_base`, or whose usage line takes three files or more, is refused at the start with what to dispatch instead, as #1505 refuses a probe's scorer. The refusal names `pair_scorer`, the Measure input #2151 added. ## Motivation A run dispatched for a scorer's answer should be green only if that answer exists: a check that passes on a broken result is a defect of the check. **What the annotation fired on:** the census read the annotations of 839 of the 1,531 dispatched Measure runs since 2026-11-08: every one from run 43152271314 (2026-11-12) to the census's start on 2026-11-22. It stopped there to leave the API's hourly budget to other work. 23 of the 839 carry the annotation. - **Read, a broken result each time:** - probe scorers that did not take Measure's `--list` and printed their usage: 45072403351; 43490409752, whose `history_base_vs_ifc` did so on Core Interior; and 43683744673 and 44487715399, two of the eight runs whose probe scorer exited 2; - a probe scorer missing a module (43528327450, `No module named 'scipy'`); - `areas_across_saves` named in `scorers`, which printed its usage per model (read in 44953635018; 44684313099 and 44950815664 carry the same annotation). It is now a named step. - **Read, and by design:** the same-project gate `bodies_across_saves` in 43330924424. On the base side main failed it on six samples, which the head passed, so that run stays green: only the head side's list fails a run. - **Read, and by design until now:** the #2085 research gap scorer, which took a model with no gap for empty output (read in 45002253953; 45000994205 carries the same annotation). That one is fixed on its branch (`74f5cd01`): the 31 models of 45002253953 it failed now pass, and empty or cut-off output still fails. - **From the scorer alone:** - `changed_bodies_vs_ifc` takes three files, so named per model it prints its usage. It is now refused. - `predefined_types_vs_ifc` has no exit of its own, so its exit 1 was an uncaught exception. - **Not readable:** 43555612089 and 43556799152 exited 1 only on a held-out model, whose outputs Measure keeps to counts. - **Not read:** the other six probe-scorer runs that exited 2, and `ceiling_pieces_vs_ifc`, a research branch's scorer. - **This PR's own test:** 45074654959 is one of them. ## Changes - `tools/ci/measure-reference-models.sh`: - `score` appends each failure to `scorer-failures-${SHARD}.txt`; - `areas_across_saves` is a step run by name; - the start refuses a named scorer of several exports. - `.github/workflows/measure.yml`: the compare job's last step, "A scorer the run names did not fail", reads the head side's lists and fails on any line. ## Testing Unit tests are banned in this repository: do not add them. - [x] **A crashing scorer, end to end** (Measure run 45074654959, dispatched from this branch, and again at this head, `e8905590`, as 45087970349). It used `-f ref=82216d2c`, whose `wall_saved_low_vs_ifc.py` did not yet take `--list` and exits 2, on the as-built office. - The run failed in the new step, with "head, nordic-office-as-built: the scorer probe_score, named in this run, exit 2". - `measure-head` and `measure-verdict` were still uploaded, and at this head `measure-head` holds `scorer-failures-office-as-built.txt` with that line. - [x] **A scorer that passes** (45074662866, the same with `-f ref=ef98f444`): green. - [x] **`areas_across_saves` named with `class_sets_vs_ifc` on RE1 Architecture** (45077588273): green. `class_sets_vs_ifc` exited 0, and no `areas_across_saves.txt` or failure list was written. Run 44953635018 had exited 2 there. - [x] **The ordinary case** (45083352291, at `d12e8cc6`; the start's checks have not changed since): `predefined_types_vs_ifc` and `spaces_by_globalid_vs_ifc`, outside the default set, the second with a usage line of no `<...>`, named on RE1 Architecture. Both ran per model and exited 0, the run is green, and it wrote no failure list. The script runs under `set -uo pipefail` without `-e`, so a usage line with nothing to count leaves the count at 0. - [x] **`readers_across_saves` named** (45077236233): refused at the start. - [x] **`changed_bodies_vs_ifc` named** (45082810572): refused at the start with "changed_bodies_vs_ifc is not run on one model's export and Revit's: its usage takes three files or more: run it on the kept exports". An earlier run, 45082544925, showed the first message telling it to use `pair_scorer`, which takes two files, so each kind now gets its own message. - [ ] **A base-side failure failing no run** is checked by reading only: the step reads `measure-head`'s lists alone, and no run at this head has a failure on the base side. - [x] **The usage rule over every scorer in `tools/re`:** 14 match it. `areas_across_saves` and `bodies_across_saves` are listed steps and run as before, and the other 12 are refused: each takes several exports, a probe and two files, a samples folder or a VIM file. None of the 43 default per-model scorers matches. - [x] actionlint, zizmor, shellcheck and `tools/ci/check-workflows.py` pass. ## Audit-honesty checklist - [x] The default set's behaviour is unchanged: the list is written under the condition the annotation already had, so a run that names no scorer and has no probe scorer writes none. - [x] No changelog fragment: repository tooling. - [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 A run whose named scorer or probe scorer exits non-zero on the head side, for a crash or a finding, now fails, and a run that names a scorer of several exports is refused at the start. Before, both were green. 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
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.pyhad been run on a Mac over the cited runs' kept IFCs (#2148).-f pair_scorer=<tools/re scorer>, a scorer that takes<base.ifc> <head.ifc>. It needs a base andkeep_ifc=true, and the job refuses without them.pairsruns 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 asmeasure-pairsand 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_advancedor 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.measure-pairsaspairs/with a run's outputs.pair_scorer=placed_bodies_vs_base.b452f967, base5c35e190) scores Core Interior, RE1 Architecture and both offices.c1a2a739, basee9f4c592,--no-saved-meshes), scores Core Interior and both offices.ifc.sha256, so these score the same exports RE-347 scored. Their counts are RE-347's tables'.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: thepair_scorerinput, thepairsjob, and a header paragraph..github/workflows/keep-run-outputs.yml,tools/ci/keep-run-outputs.py:measure-pairs, kept aspairs/.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.
measure-pairsholds 4 and 3 outputs.-f holdout=true -f models="re1-architecture holdout-modelo*"):holdout-modelo_bimwas measured on both sides. Its folders held onlycounts.txtandifc.sha256, andmeasure-pairsholdsre1-architecturealone.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".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)", andmeasure-pairswas still uploaded.ifc.sha256, head and base, equals the one kept for runs 42092391898 and 42106731054, 14 of 14.pairs/with 4 and 3 files, atrefs/evidence/45074892701andrefs/evidence/45074900834.main, where ci(evidence): Keep run outputs keeps the log lines a pattern finds, and the viewer tests' figures link to them (#2148) #2150 added the log part to it, locally: the outputs part on ameasure-headand ameasure-pairskeepspairs/with its 4 files, and the log part on run 42125048710's log keeps the same 8 lines asrefs/evidence/42125048710-log.tools/ci/check-workflows.pypass after the merge. Measure has 22 dispatch inputs, under GitHub's 25.tools/ci/cited-runs-kept.py(60 runs),tools/ci/measured_numbers.pyand every step of the PII guard job pass locally, 29 of 29, and 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).