Skip to content

Reject malformed benchmark posts instead of crashing the review - #62

Closed
kbatchelli wants to merge 1 commit into
tuff-app:mainfrom
kbatchelli:fix/benchmark-post-validation-crashes
Closed

kbatchelli wants to merge 1 commit into
tuff-app:mainfrom
kbatchelli:fix/benchmark-post-validation-crashes

Conversation

@kbatchelli

Copy link
Copy Markdown
Contributor

Prior to the fix: 6 of the test cases were crashing and 3 were being incorrectly accepted
After: all tests in Scripts/test_benchmark_discussions.py pass
Other checks: no checks on the Swift side since it was only the python side

Several fields in a post could raise TypeError, ValueError, OverflowError
or AttributeError instead of Rejected: timestamps without a time zone or
that don't parse, integers too large for a float, a list as the model id
or workload, and the optional load_seconds, peak_memory_bytes, settings
and check fields that build_dataset uses. Because parsed() runs over every
post in the category, one such post broke every later review and the
leaderboard build.
@rexmhall09

Copy link
Copy Markdown
Collaborator

Thanks! Great Work!

@rexmhall09 rexmhall09 closed this Nov 8, 2026
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.

2 participants