From 8bc51d78a577f2321be7ecb9bf86a8a193fe9018 Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Mon, 9 Jan 2023 17:43:38 -0300 Subject: [PATCH] ci/lava: Tweak LAVA jobs timeouts The Mesa CI LAVA job submitter was suffering from a bug in the LAVA software that made their timeouts related to sub-actions unreliable, such as waiting for the user login prompt automatic response. The following MR https://git.lavasoftware.org/lava/lava/-/merge_requests/1900 fixed this issue. So we can now better control job timeouts granularity, failing the job faster when there is something weird hanging the boot stage. Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/lava/lava_job_submitter.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci/lava/lava_job_submitter.py b/.gitlab-ci/lava/lava_job_submitter.py index 5c70a74fd81..6a594d697ed 100755 --- a/.gitlab-ci/lava/lava_job_submitter.py +++ b/.gitlab-ci/lava/lava_job_submitter.py @@ -74,11 +74,20 @@ def generate_lava_yaml_payload(args) -> dict[str, Any]: }, "timeouts": { "job": {"minutes": args.job_timeout}, - "action": {"minutes": 3}, "actions": { + "depthcharge-retry": { + # Could take between 1 and 1.5 min in slower boots + "minutes": 2 + }, + "depthcharge-start": { + # Should take less than 1 min. + "minutes": 1, + }, "depthcharge-action": { - "minutes": 3 * NUMBER_OF_ATTEMPTS_LAVA_BOOT, - } + # This timeout englobes the entire depthcharge timing, + # including retries + "minutes": 2 * NUMBER_OF_ATTEMPTS_LAVA_BOOT, + }, } }, }