Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apt_dpkg: retry on HTTP 429 'Too Many Requests'
Running the system tests on different releases in parallel can cause some tests of `test_packaging_apt_dpkg` fail: ``` __________________ test_install_packages_dependencies[deb822] __________________ [...] apport/packaging_impl/apt_dpkg.py:1326: SystemExit ----------------------------- Captured stderr call ----------------------------- ERROR: Package download error, try again later: Failed to fetch http://ddebs.ubuntu.com/pool/main/p/pcre2/libpcre2-8-0-dbgsym_10.39-3build1_amd64.ddeb 429 Too Many Requests [IP: 185.125.190.18 80] Failed to fetch http://ddebs.ubuntu.com/pool/main/libs/libselinux/libselinux1-dbgsym_3.3-1build2_amd64.ddeb 429 Too Many Requests [IP: 185.125.190.18 80] ``` Retry package download if HTTP 429 'Too Many Requests' errors can be found in the `apt.cache.FetchFailedException` error. The download is retries with an exponential backoff and giving up after around one hour. Signed-off-by: Benjamin Drung <[email protected]>
- Loading branch information