Repository navigation
Conversation
Reviewer's GuideAPIDocument the public timeout behavior of
ImplementationHandle requests timeouts before connection errors so connection timeouts are classified as
TestsAdd public-API regression coverage confirming connect and read timeouts raise
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PR Summary by QodoFix evaluation-type connection timeout classification
AI Description
Merge Risk
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent |
Linked issuesChecked at commit 61c5a41 #2012 Bug: get_eval_types raises ConnectionError on a connection timeout · 2 of 2 met
|
Issue number: Fixes #2012
Change description:
requests.exceptions.ConnectTimeoutis both a timeout and a connection error. Try the timeout handler first soopenlit.get_eval_types()raisesTimeoutErrorfor either a connection timeout or a read timeout. Ordinary connection errors still raiseConnectionError.The public-API regression reproduced the connection timeout misclassification before the fix. All 87 offline evaluation, score logging, and environment configuration tests passed after it. Pylint passed on all changed Python files.
poetry checkandpoetry buildpassed, with existing metadata deprecation warnings.Codex assisted with the investigation, implementation, tests, and drafting. Validation used mocked requests and local test data.
Checklist
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.
Summary by Sourcery
Correct evaluation type timeout classification in the Python SDK.
Bug Fixes:
Enhancements:
Tests: