Skip to content

fix(benchmark_runner): record failed-item exceptions on TestRecord so…#1552

Open
WatchTree-19 wants to merge 1 commit into
mlcommons:mainfrom
WatchTree-19:fix/1353-record-failed-item-exceptions
Open

fix(benchmark_runner): record failed-item exceptions on TestRecord so…#1552
WatchTree-19 wants to merge 1 commit into
mlcommons:mainfrom
WatchTree-19:fix/1353-record-failed-item-exceptions

Conversation

@WatchTree-19

Copy link
Copy Markdown

… # errors is accurate (#1353)

_make_test_record hardcoded test_item_exceptions=[], so exceptions captured on failed items never reached the TestRecord. HazardScore.score() sums len(test_record.test_item_exceptions) into HazardScore.exceptions, which feeds the '# errors' column of the results table, so it always read 0 even when items raised.

Populate test_item_exceptions from run.failed_items_for(sut, test), one TestItemExceptionRecord per failed item carrying exceptions (mirrors simple_test_runner). Adds a regression test plus a clean-run test.

… # errors is accurate (mlcommons#1353)

_make_test_record hardcoded test_item_exceptions=[], so exceptions captured on
failed items never reached the TestRecord. HazardScore.score() sums
len(test_record.test_item_exceptions) into HazardScore.exceptions, which feeds the
'# errors' column of the results table, so it always read 0 even when items raised.

Populate test_item_exceptions from run.failed_items_for(sut, test), one
TestItemExceptionRecord per failed item carrying exceptions (mirrors simple_test_runner).
Adds a regression test plus a clean-run test.
@WatchTree-19 WatchTree-19 requested a review from a team as a code owner June 24, 2026 14:19
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot:
Thank you very much for your submission; we really appreciate it. Before we can accept your contribution,
we ask that you sign the MLCommons CLA (Apache 2). Please submit your GitHub ID to our onboarding form to initiate
authorization. If you are from a MLCommons member organization, we will request that you be added to the CLA.
If you are not from a member organization, we will email you a CLA to sign. For any questions, please contact
support@mlcommons.org.
0 out of 1 committers have signed the MLCommons CLA.
@WatchTree-19
You can retrigger this bot by commenting recheck in this Pull Request

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