From 28880818ee4eb5ddbe225ae1fdaf45fa78524f8e Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Tue, 19 Jul 2022 23:11:53 -0300 Subject: [PATCH] ci/lava: Increase boot timeout Empirically, a successful LAVA boot time should take less than 3 minutes. LAVA itself is configured to attempt thrice to boot the device, summing up to 9 minutes. It is better to retry the boot than cancel the job and re-submit to avoid the enqueue delay. Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/lava/utils/log_section.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/lava/utils/log_section.py b/.gitlab-ci/lava/utils/log_section.py index 37960759341..a722570830a 100644 --- a/.gitlab-ci/lava/utils/log_section.py +++ b/.gitlab-ci/lava/utils/log_section.py @@ -17,8 +17,13 @@ class LogSectionType(Enum): FALLBACK_GITLAB_SECTION_TIMEOUT = timedelta(minutes=10) DEFAULT_GITLAB_SECTION_TIMEOUTS = { - # Empirically, the devices boot time takes 3 minutes on average. - LogSectionType.LAVA_BOOT: timedelta(minutes=5), + # Empirically, successful device boot in LAVA time takes less than 3 + # minutes. + # LAVA itself is configured to attempt thrice to boot the device, + # summing up to 9 minutes. + # It is better to retry the boot than cancel the job and re-submit to avoid + # the enqueue delay. + LogSectionType.LAVA_BOOT: timedelta(minutes=9), # Test suite phase is where the initialization happens. LogSectionType.TEST_SUITE: timedelta(minutes=5), # Test cases may take a long time, this script has no right to interrupt