fix: improve exhausted HTTP retry errors#1021
fix: improve exhausted HTTP retry errors#1021devin-ai-integration[bot] wants to merge 3 commits into
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. 💡 Show Tips and TricksTesting This CDK VersionYou can test this version of the CDK using the following: # Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@devin/1778551689-improve-retry-exhaustion-errors#egg=airbyte-python-cdk[dev]' --help
# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch devin/1778551689-improve-retry-exhaustion-errorsPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
PyTest Results (Fast)4 060 tests +1 4 049 ✅ +1 7m 52s ⏱️ +7s Results for commit 3c21116. ± Comparison against base commit d3d1346. This pull request removes 5 and adds 6 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
PyTest Results (Full)4 063 tests +1 4 051 ✅ +1 11m 0s ⏱️ +4s Results for commit 3c21116. ± Comparison against base commit d3d1346. This pull request removes 5 and adds 6 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Co-Authored-By: bot_apk <apk@cognition.ai>
Co-Authored-By: bot_apk <apk@cognition.ai>
Summary
HttpResponseFilter.failure_typefor retry actions, not only fail actions.failure_typeand retry-exhaustion message propagation.Resolves https://github.com/airbytehq/airbyte-internal-issues/issues/16422
Related to https://github.com/airbytehq/oncall/issues/12575
Review & Testing Checklist for Human
message=str(e)on retry exhaustion is acceptable for rate-limit and non-rate-limit backoff exceptions.failure_typeon non-FAIL actions does not affect an unintended declarative connector pattern.Notes
Local verification after fixing CI failures:
poetry run pytest unit_tests/sources/declarative/requesters/error_handlers/test_default_error_handler.py unit_tests/sources/declarative/requesters/error_handlers/test_http_response_filter.py unit_tests/sources/streams/http/test_http_client.py -qpoetry run ruff check airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py airbyte_cdk/sources/streams/http/http_client.py unit_tests/sources/declarative/requesters/error_handlers/test_default_error_handler.py unit_tests/sources/declarative/requesters/error_handlers/test_http_response_filter.py unit_tests/sources/streams/http/test_http_client.pypoetry run ruff format --check airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py airbyte_cdk/sources/streams/http/http_client.py unit_tests/sources/declarative/requesters/error_handlers/test_default_error_handler.py unit_tests/sources/declarative/requesters/error_handlers/test_http_response_filter.py unit_tests/sources/streams/http/test_http_client.pyLink to Devin session: https://app.devin.ai/sessions/fbed94f0038b405e96d866a04e1daca9