Skip to content

Share one HTTP client across Lando requests and tell temporary errors apart - #7772

Open
evgenyrp wants to merge 3 commits into
test-repair-backoutfrom
lando-client-refactor
Open

evgenyrp wants to merge 3 commits into
test-repair-backoutfrom
lando-client-refactor

Conversation

@evgenyrp

@evgenyrp evgenyrp commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #7105. Split out of #7104 to keep it to the backout action.

Addresses the client review comments from #7104:

  • LandoClient keeps one httpx.AsyncClient with the base URL, User-Agent and timeout, including the bearer token, and a request() that parses the answer, following bugzilla-client. Try pushes and backouts both go through it.
  • A 4xx raises LandoRequestError; a 5xx or 429 raises LandoUnavailableError.
  • Nothing is resent automatically, since Lando's write endpoints are not idempotent; a failed action can be re-applied.
  • A backout that fails because Lando is unavailable says to retry it later.

@evgenyrp
evgenyrp force-pushed the lando-client-refactor branch from 0f2b370 to b80759e Compare December 2, 2026 18:41
@evgenyrp
evgenyrp marked this pull request as ready for review December 2, 2026 18:44
@evgenyrp
evgenyrp requested a review from a team as a code owner December 2, 2026 18:44
@evgenyrp
evgenyrp added this pull request to stack #7107 December 2, 2026 18:45
@evgenyrp

evgenyrp commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@suhaibmujahid @ayoubdiourin7 please have another look

@ayoubdiourin7 ayoubdiourin7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

This branch has not been deployed

No deployments
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.

3 participants