Repository navigation
fix(eval): forward EvalAsync error score handler - #937
Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit intoOct 14, 2026
Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
Conversation
Gareth.Y (linjiaye929)
marked this pull request as ready for review
October 14, 2026 20:21
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Abhijeet Prasad (AbhiPrasad)
approved these changes
Oct 14, 2026
Abhijeet Prasad (AbhiPrasad)
enabled auto-merge (squash)
October 14, 2026 22:14
Abhijeet Prasad (AbhiPrasad)
merged commit Oct 14, 2026
e28f233
into
braintrustdata:main
98 checks passed
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Forward the existing
error_score_handlerparameter fromEvalAsync()to_EvalCommon, asEval()already does.Previously, passing a custom handler to the async public API silently discarded it. Even for one evaluation row, a task or scorer failure produced no fallback scores and never called the handler. The synchronous API returned the configured fallback score for the same input.
This is a one-line forwarding fix. Public signatures, default values, runner behavior and exception handling are unchanged.
Regression coverage
18 parameterized cases exercise the real public
EvalandEvalAsyncAPIs across:None, and no custom handler.Tests verify callback invocation, scores and retained task/scorer error semantics. Successful evaluations do not invoke the handler.
Validation
Python 3.12.14, existing local test environment, offline socket guard,
no_send_logs=True, cache disabled for the new regressions:src/braintrust/test_framework.py: 139 passed, 2 skipped, independently repeated with the same result. The skips concern optional Pydantic and Python 3.14 lazy annotations.type_tests/test_eval_generics.pyandtype_tests/test_dict_scorers.py: 17 passed. This is not a static type-check result.git diff --check, and the configured pre-commit checks for these files pass (two unrelated file-filtered hooks skipped).Related work and scope
Related to #909, which fixes per-row state and handler execution inside the runner. This PR only fixes the public
EvalAsyncargument forwarding, reproducible with one row; it does not modify or duplicate that runner work.AI assistance was used for analysis, implementation and the listed local verification. No human approval or hosted CI success is claimed.
Hosted checks
At head
12484d1684c1f3946f91a4780b95fbf3b3cb87b8, checks and integration-tests are both completed withaction_required, each with zero jobs. There are zero check runs. Hosted tests have not executed; local results above are not a claim of passing hosted CI.