Skip to content

ci: Measure's summary lists what its scorers show got worse next to the census - #1634

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/measure-regression-summary
Nov 10, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/measure-regression-summary

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Measure's summary gains a section, "What the scorers show got worse (advisory)", written by the new tools/re/cmp_measure.py from the base and head directories the compare job already holds. It ends with two counts, "census regressions" and "body scorer regressions", and lists each model behind them.

Motivation

The property and quantity census says "equal fell, different or missing rose", and nothing else. On the stair-railing change (Measure 42688171578) it read "census regressions: 0" while the stair assembly's volume on the office's 13 stairs holding railings had moved from within 1 percent of Revit's to 2 to 127 times it; that was found by reading the scorer diffs by hand. The same comparator, on the wall-quantities change (Measure 42690731323), reports "body scorer regressions: 0".

Changes

  • tools/re/cmp_measure.py: the models whose export moved (ifc.sha256), the scorer files that differ, the census regressions, and the body scorers' worsening: an element's volume that moved away from Revit's by more than 5 percent of Revit's, an "N of M" coverage count that fell (the nth line of a label against the nth, since a label opens several groups), and rows on a different storey that rose.
  • .github/workflows/measure.yml: the compare job's sparse checkout takes the script; the summary runs it before the raw scorer diff, capped at 60 KB, advisory (a failure prints a line, the job goes on).

Testing

No unit tests (banned). The script ran on two real Measure runs' artifacts: 42688171578 (stair railings: 7 body regressions, the office's and the five R2025 stair models' stair volumes, nothing else) and 42690731323 (wall quantities: 0). A dispatched Measure on this branch shows the section in the run summary (linked below once read).

  • Verified on real Measure artifacts, command: python3 -I tools/re/cmp_measure.py measure-base measure-head in a directory holding gh run download <run> -n measure-base -n measure-head.
  • actionlint and a YAML load of measure.yml pass; file modes match the other scorers.

Audit-honesty checklist

  • No user-visible change: no changelog fragment.
  • Limits: it reads the text the scorers print, so a scorer that prints no per-element volume or no "N of M" line is not covered, and a worsening that moves a count the scorer does not print is invisible. The 5 percent threshold is a first choice, not measured against a corpus of past changes.

Breaking changes

None.

Related issues

None. Follows the stair-railing aggregate (#1626), where the gap showed.

…he census, an element's volume moved away from Revit's, a coverage count that fell, rows on a different storey that rose
@DrunkOnJava
DrunkOnJava merged commit 2b6b655 into main Nov 10, 2026
66 of 67 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/measure-regression-summary branch November 10, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant