debian-koji-osbuild/test/unit
Ondřej Budai d38e11ea8a builder: add retries to composer API calls
The status calls are sometimes failing on:
upstream connect error or disconnect/reset before headers. reset reason:
connection termination

Since all requests are going through the company proxy, I think that the
networking isn't working 100% reliably. This commit adds a retry mechanism
provided by the urllib3 library. It will retry on all networking issues and
also on some 5xx errors that makes sense to retry (like gateway failures).

A test is added that runs the compose waiting code against a mock server
that fails every second request. This is imho sufficient to mimick a flaky
networking.
2022-08-05 14:53:37 +02:00
..
plugintest.py test: use importlib instead of imp 2021-10-05 12:18:46 +02:00
test_builder.py builder: add retries to composer API calls 2022-08-05 14:53:37 +02:00
test_cli.py plugins: add support for customizations 2022-05-03 12:28:05 +02:00
test_hub.py plugins: ability to skip the tagging 2020-11-16 17:00:40 +01:00