Skip to content

CLOUDDST-28603: Add retry on ErrataClient._call_et#666

Merged
rbikar merged 2 commits into
release-engineering:masterfrom
JAVGan:errata_client_retry
Oct 6, 2025
Merged

CLOUDDST-28603: Add retry on ErrataClient._call_et#666
rbikar merged 2 commits into
release-engineering:masterfrom
JAVGan:errata_client_retry

Conversation

@JAVGan

@JAVGan JAVGan commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

This commit adds a retry on ErrataClientBase._call_et in order to re-attempt failed requests with the Errata Tool.

Refers to CLOUDDST-28603

@JAVGan

JAVGan commented Jul 23, 2025

Copy link
Copy Markdown
Contributor Author

@rbikar @querti PTAL

@querti querti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM other than some minor comments. Though I can't give official approval because I'm not a code owner.

Comment thread tests/errata/test_errata_client.py Outdated
Comment thread src/pushsource/_impl/backend/errata_source/errata_client.py Outdated
@JAVGan JAVGan force-pushed the errata_client_retry branch from b8bf96b to 30acbd2 Compare July 24, 2025 12:31
@JAVGan

JAVGan commented Jul 24, 2025

Copy link
Copy Markdown
Contributor Author

@rajulkumar @chandwanitulsi PTAL as well

@JAVGan JAVGan force-pushed the errata_client_retry branch from 30acbd2 to 3d9e7a0 Compare July 25, 2025 17:56
@JAVGan

JAVGan commented Jul 25, 2025

Copy link
Copy Markdown
Contributor Author

@querti @rbikar @chandwanitulsi UPDATE: Just changed the retry function to be anonymous (lambda). I think it fits better the code 😃

See: diff

@midnightercz midnightercz self-requested a review August 4, 2025 12:25
This commit adds a retry on `ErrataClientBase._call_et` in order to
re-attempt failed requests with the Errata Tool.

Refers to CLOUDDST-28603

Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
@JAVGan JAVGan force-pushed the errata_client_retry branch from 3d9e7a0 to 38a5a91 Compare August 4, 2025 14:28
@JAVGan

JAVGan commented Aug 4, 2025

Copy link
Copy Markdown
Contributor Author

@midnightercz I've just rebased and fixed the conflict on requirements.txt. PTAL again

Comment thread requirements.txt Outdated
Comment thread src/pushsource/_impl/backend/errata_source/errata_client.py Outdated
@JAVGan JAVGan requested a review from rbikar August 6, 2025 20:10
@JAVGan JAVGan force-pushed the errata_client_retry branch 2 times, most recently from 3476021 to 2efa353 Compare October 3, 2025 12:43
This commit updates the `errata_client` module to use the retry
mechanism from `requests` library during the `_errata_service` session
definition.

Refers to CLOUDDST-28603

Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
@JAVGan JAVGan force-pushed the errata_client_retry branch from 2efa353 to 36d308f Compare October 3, 2025 12:45
@rbikar rbikar merged commit 1e51631 into release-engineering:master Oct 6, 2025
6 checks passed
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.

4 participants