diff options
author | Matt Martz <matt@sivel.net> | 2023-04-12 15:13:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 15:13:45 -0500 |
commit | dab364052716530f770b2cef3588e6d03456a2b9 (patch) | |
tree | d784c9f3f1176aba62f7d6461fbe933c982ed92e /hacking | |
parent | 2e50a9e4826f946fe200b7e647e59189175f48bc (diff) | |
download | ansible-dab364052716530f770b2cef3588e6d03456a2b9.tar.gz |
[stable-2.13] ansible-galaxy collection install retry improvements (#80180) (#80275)
* clog frag
* Fix retries so that each explicit call to _call_galaxy is retried for the correct number of attempts. Fixes #80174
* Extend retry logic to common URL related connection errors. Fixes #80170
* Extend retries to downloading artifacts
* Extend param docs for change
* Rework the exception handling
* Don't be overly broad, reduce to TimeoutError, and BadStatusLine for now
* _download_file needs to raise AnsibleError.orig_exc
* Remove unused import
* Add IncompleteRead
* Add socket.timeout for py39
* Add 502 to retry codes
* Move http error code checking first
* Use itertools.tee to replay the backoff_iterator instead of using a callable
* Actually set a CLI default of 60s for timeout, to prevent implicit galaxy from using 10s as default from Request.open
* Import typing
* fix type hints
* Use http.HTTPStatus instead of int HTTP error codes where feasible
* Split exception handling
* Add missing import
---------
.
(cherry picked from commit 2ae013667ef226635fe521be886efd1bf58cd46f)
Diffstat (limited to 'hacking')
0 files changed, 0 insertions, 0 deletions