Skip to content

Widen per-integration except clauses for library-agnostic HTTP exceptions#23046

Draft
mwdd146980 wants to merge 1 commit intomwdd146980/step3b-fixture-swapfrom
mwdd146980/step3c-widen-integration-excepts
Draft

Widen per-integration except clauses for library-agnostic HTTP exceptions#23046
mwdd146980 wants to merge 1 commit intomwdd146980/step3b-fixture-swapfrom
mwdd146980/step3c-widen-integration-excepts

Conversation

@mwdd146980
Copy link
Copy Markdown
Contributor

What does this PR do?

Motivation

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

…ions

Add library-agnostic exception types alongside existing requests-specific
exceptions in 7 integrations, preparing for Step 3d's MockHTTPResponse
migration. Also add HTTPInvalidURLError to the http_exceptions module.

Integrations: elastic, fly_io, harbor, octopus_deploy,
openstack_controller, proxmox, spark.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mwdd146980 mwdd146980 self-assigned this Mar 25, 2026
@mwdd146980 mwdd146980 marked this pull request as ready for review March 25, 2026 03:23
@mwdd146980 mwdd146980 requested a review from a team as a code owner March 25, 2026 03:23
@mwdd146980 mwdd146980 marked this pull request as draft March 25, 2026 03:24
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a039d8ce7b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +692 to 694
AgentHTTPConnectionError,
) as e:
if isinstance(e, ConnectionError) and self._should_suppress_connection_error(e, tags):
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve debouncing for agent HTTP connection errors

This catch block now includes AgentHTTPConnectionError, but the suppression path still only runs when isinstance(e, ConnectionError) is true. If the library-agnostic HTTP layer raises AgentHTTPConnectionError (the new case this PR adds), _should_suppress_connection_error is never called, so transient/terminal-pod connection failures that should be debounced start emitting CRITICAL service checks and raising immediately. Please include the agent-specific connection error in the suppression check so behavior stays consistent.

Useful? React with 👍 / 👎.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.38%. Comparing base (a38765d) to head (a039d8c).

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant