Skip to content

Conversation

@Sineaggi
Copy link

@Sineaggi Sineaggi commented Mar 2, 2022

Based off of #1648

This adds additional retries for the 52x caused by cloudflare.

This adds tests for the 52x range and the requests.ConnectionError exception

@Sineaggi Sineaggi force-pushed the retry-additional-http-transient-errors branch 2 times, most recently from 413dd16 to 3e6fef1 Compare March 2, 2022 20:47
@f9n
Copy link

f9n commented Mar 8, 2022

Running perfectly 👍

# On requirements.txt
git+https://github.com/Sineaggi/python-gitlab@retry-additional-http-transient-errors#egg=python-gitlab

Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

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

Thanks for taking over @Sineaggi. I just have 2 quick questions here.

@Sineaggi Sineaggi force-pushed the retry-additional-http-transient-errors branch 4 times, most recently from 4928675 to 7f0d3d2 Compare March 14, 2022 17:50
@Sineaggi Sineaggi removed their assignment Mar 21, 2022
@Sineaggi
Copy link
Author

@nejch Can you re-review?

@Sineaggi Sineaggi requested a review from nejch March 21, 2022 19:35
Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

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

Thanks again @Sineaggi, I was on holiday so there was a bit of delay there. I just made one last pass and just noticed some duplicate code. Could you clean that up?

We could probably also make the test code a bit shorter but that's for later perhaps. Thanks!

I'll make sure this makes it into the next release so I can also pause the scheduled release for the 28th until this is merged, if needed.

@nejch nejch force-pushed the retry-additional-http-transient-errors branch from 7f0d3d2 to 5cbbf26 Compare April 4, 2022 21:34
@nejch nejch enabled auto-merge April 4, 2022 21:36
@nejch nejch merged commit 0353bd4 into python-gitlab:main Apr 4, 2022
gdubicki added a commit to gitlabform/gitlabform that referenced this pull request Feb 18, 2023
Based on python-gitlab/python-gitlab#1904

(We really need to switch to python-gitlab under the hood...)
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