Repository navigation
ci: Measure's summary lists what its scorers show got worse next to the census - #1634
Merged
Merged
Conversation
…he census, an element's volume moved away from Revit's, a coverage count that fell, rows on a different storey that rose
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's summary gains a section, "What the scorers show got worse (advisory)", written by the new
tools/re/cmp_measure.pyfrom 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).
python3 -I tools/re/cmp_measure.py measure-base measure-headin a directory holdinggh run download <run> -n measure-base -n measure-head.actionlintand a YAML load ofmeasure.ymlpass; file modes match the other scorers.Audit-honesty checklist
Breaking changes
None.
Related issues
None. Follows the stair-railing aggregate (#1626), where the gap showed.