From 3f5c9077c59c1060a6cfd4eb6222d6ac858a9cb7 Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Wed, 17 May 2023 22:14:46 -0300 Subject: [PATCH] ci/lava: Tweak http-download timeout in SSH based jobs Found a problem with a radv-raven job [1], which took too long to boot due to a possibly network problem. If we set a reasonable timeout in the file download related action and enable LAVA retries in deploy action, we can retry the job if it times out without the need of re-queuing it. [1] https://gitlab.freedesktop.org/gallo/mesa/-/jobs/41942090#L227 Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/lava/utils/ssh_job_definition.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci/lava/utils/ssh_job_definition.py b/.gitlab-ci/lava/utils/ssh_job_definition.py index 7b827724e4a..ea8c1a84c38 100644 --- a/.gitlab-ci/lava/utils/ssh_job_definition.py +++ b/.gitlab-ci/lava/utils/ssh_job_definition.py @@ -169,7 +169,9 @@ def generate_lava_yaml_payload(args) -> dict[str, Any]: # container build deploy = { "namespace": "dut", + "failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT, "timeout": {"minutes": 10}, + "timeouts": {"http-download": {"minutes": 2}}, "to": "tftp", "os": "oe", "kernel": {"url": f"{args.kernel_url_prefix}/{args.kernel_image_name}"},