Skip to content

ci(measure): a scorer named in a run that exits non-zero raises an error naming the model and scorer (#1541) - #1552

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/named-scorer-exit-annotated
Nov 9, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/named-scorer-exit-annotated

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #1541. A scorer named through Measure's scorers input, or given as a probe's probe_scorer, that exits non-zero now raises an error annotation naming the model and the scorer. The run's outcome doesn't change, and the scorer's output and exit line stay where they were. Without this, a run could succeed with its one requested scorer having crashed, as run 42534400672 did, with only the output file showing exit 139.

The default scorer set is left as it is, as the issue asks: there the annotation is not raised, since a scorer may exit 1 for a finding.

Testing

Proved by a real Measure run from a temporary branch whose extra scorer exits 3 (129d1251, kept at refs/archive/2026-11-08/1541-proof; that scorer isn't in this PR). Run 42538341752, with models=core-interior and scorers=zz_exit_three, shows the annotation:

core-interior: the scorer zz_exit_three, named in this run, exited 3 (see its zz_exit_three.txt)

Its output file ends exit 3, and the run itself reports success. Run 42538807807 proves the same for a probe's scorer (1d7c12a3, kept at refs/archive/2026-11-08/1541-proof2), with probe=probe_re70_wall_join_lists and probe_scorer=zz_exit_three:

core-interior: the scorer probe_score, named in this run, exited 3 (see its probe_score.txt)

A first run on Einhoven (42537912068) ran no scorer, because Einhoven has no Revit export to score against.

@DrunkOnJava
DrunkOnJava force-pushed the ci/named-scorer-exit-annotated branch from 243086b to c8fd3f7 Compare November 9, 2026 00:11
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 01:16
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 9, 2026 02:08
@DrunkOnJava
DrunkOnJava merged commit 74dfb50 into main Nov 9, 2026
72 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/named-scorer-exit-annotated branch November 9, 2026 02:09
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.

A scorer named through Measure's scorers input can crash and leave the run green

1 participant