Skip to content

ci(measure): a scorer that reads a probe's output is refused when named without its probe - #1537

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/refuse-probe-scorer-without-probe
Nov 9, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/refuse-probe-scorer-without-probe

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

MEASURE_SCORERS runs any tools/re script it names, outside the scorer lists, as an IFC scorer, <model.ifc> <revit.ifc>. A scorer that takes a probe's output then gets the IFC instead, finds no probe rows and reports zeros with the step and run green: Measure run 42522552972 on #1505 did exactly that, on every model, and only reading the numbers showed it. The script now stops with an error naming the right flags when a scorer named this way documents a <probe output> argument.

Testing

bash -n parses the script. The refusal is matched on a usage line of <probe...> in any spelling (\.py +<probe[- ._a-z0-9]*>), which catches 67 of the scorers in tools/re and none of IFC_SCORERS or GLB_SCORERS. Measure run 42532321384, naming port_directions_vs_ifc in scorers, stopped at the start with exit 2 and the error "port_directions_vs_ifc reads a probe's output: dispatch it with -f probe= -f probe_scorer=port_directions_vs_ifc, not in scorers".

@DrunkOnJava
DrunkOnJava merged commit 152d829 into main Nov 9, 2026
72 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/refuse-probe-scorer-without-probe branch November 9, 2026 02:02
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