You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
Matt Martz 2ae013667e
ansible-galaxy collection install retry improvements (#80180)
* 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

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>

* Add missing import

---------

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
1 year ago
..
_vendor Revert "ansible-test - Fix import test when vendoring." 3 years ago
cli ansible-galaxy collection install retry improvements (#80180) 1 year ago
collections Clean up unused imports in core (#79900) 1 year ago
compat Clean up unused imports in core (#79900) 1 year ago
config ansible-playbook -K breaks when passwords have quotes (#79837) 1 year ago
errors add a worker queue to get updates from the main results thread (#79886) 1 year ago
executor add a worker queue to get updates from the main results thread (#79886) 1 year ago
galaxy ansible-galaxy collection install retry improvements (#80180) 1 year ago
inventory ansible-test - Update sanity test requirements. (#78528) 2 years ago
module_utils ansible-galaxy collection install retry improvements (#80180) 1 year ago
modules uri: improve force_basic_auth documentation (#80211) 1 year ago
parsing fix typo in plugin_docs.py (#80195) 1 year ago
playbook Raise an error on invalid FA.isa value (#80040) 1 year ago
plugins Fixed typo (#80184) 1 year ago
template Avoid redundant unsafe wrapping in ansible_eval_concat (#80143) 1 year ago
utils add a worker queue to get updates from the main results thread (#79886) 1 year ago
vars Clean up unused imports in core (#79900) 1 year ago
__init__.py Require Jinja2 3.0.0 (#75881) 3 years ago
__main__.py Python 3.9 min for controller (#77566) 2 years ago
constants.py add ansible_name/ansible_aliases attrs to plugin objects (#78700) 2 years ago
context.py Remove collections compat from controller code. 2 years ago
keyword_desc.yml Fixed typo in keyword_desc.yml (#76280) 3 years ago
release.py Bump devel to 2.15.0.dev0 (#78817) 2 years ago