ci/lava: Increase boot timeout
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Wed, 20 Jul 2022 02:11:53 +0000 (23:11 -0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Jul 2022 02:24:20 +0000 (02:24 +0000)
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 <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17646>

.gitlab-ci/lava/utils/log_section.py

index 3796075..a722570 100644 (file)
@@ -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