Skip to content

feat(client): additionally handle retries for request timeouts#3405

Open
benjamb wants to merge 1 commit into
python-gitlab:mainfrom
benjamb:timeout-retries
Open

feat(client): additionally handle retries for request timeouts#3405
benjamb wants to merge 1 commit into
python-gitlab:mainfrom
benjamb:timeout-retries

Conversation

@benjamb
Copy link
Copy Markdown
Contributor

@benjamb benjamb commented May 29, 2026

Changes

Adds requests.exceptions.Timeout to the list of things to handle as part of the retry logic, since most of the time this is caused by transient network issues.

Fixes #2991 (already closed as stale).

Documentation and testing

Please consider whether this PR needs documentation and tests. This is not required, but highly appreciated:

@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.78%. Comparing base (a4cbecb) to head (c22428c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3405      +/-   ##
==========================================
+ Coverage   92.23%   95.78%   +3.54%     
==========================================
  Files         100      100              
  Lines        6172     6172              
==========================================
+ Hits         5693     5912     +219     
+ Misses        479      260     -219     
Flag Coverage Δ
api_func_v4 83.91% <0.00%> (?)
cli_func_v4 78.74% <0.00%> (ø)
unit 90.32% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/client.py 98.55% <100.00%> (+1.98%) ⬆️

... and 22 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Handle retries for instances of requests.exceptions.Timeout

1 participant