Skip to content

fix: Prevent incorrectly passing "selector_state" to get_benchmark #2939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025

Conversation

KennethEnevoldsen
Copy link
Contributor

The leaderboard would have (silent) errors where get_benchmark lead to a KeyError due to "selector_state" being passed as a default value. Setting DEFAULT_BENCMARK_NAME as the value solves this issue.

The leaderboard would have (silent) errors where `get_benchmark` lead to a KeyError due to "selector_state" being passed as a default value. Setting `DEFAULT_BENCMARK_NAME` as the value solves this issue.
@KennethEnevoldsen KennethEnevoldsen requested a review from Samoed July 22, 2025 12:28
Copy link
Member

@Samoed Samoed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is better fix than #2881

@KennethEnevoldsen
Copy link
Contributor Author

Yea so it doesn't target that specific issue, but it is something we should fix regardless

@KennethEnevoldsen KennethEnevoldsen merged commit 8496ec2 into main Jul 22, 2025
9 checks passed
@KennethEnevoldsen KennethEnevoldsen deleted the fix-leaderboard-keyerror branch July 22, 2025 13:24
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