From 047d3953ee799d9a748765d4818263f1fb37d9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Roukala=20=28n=C3=A9=20Peres=29?= Date: Tue, 10 Dec 2024 09:56:37 +0200 Subject: [PATCH] ci/b2c: allow defining a boot watchdog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be helpful for DUTs that do not boot reliably due to firmware issue as it will allow us to specify a boot retry count that only counts towards booting linux and not other issues found during test execution (like hitting a GPU hang). Signed-off-by: Martin Roukala (né Peres) Reviewed-by: Eric Engestrom Part-of: --- .gitlab-ci/b2c/b2c.yml.jinja2.jinja2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci/b2c/b2c.yml.jinja2.jinja2 b/.gitlab-ci/b2c/b2c.yml.jinja2.jinja2 index dedff0e44bd..21997335aa4 100644 --- a/.gitlab-ci/b2c/b2c.yml.jinja2.jinja2 +++ b/.gitlab-ci/b2c/b2c.yml.jinja2.jinja2 @@ -27,6 +27,12 @@ timeouts: retries: 0 # no retries possible here + watchdogs: + boot: + minutes: {{ timeout_boot_wd_minutes | default(0, true) }} + seconds: {{ timeout_boot_wd_seconds | default(0, true) }} + retries: {{ timeout_boot_wd_retries | default(0, true) }} + console_patterns: session_end: regex: >- @@ -45,6 +51,20 @@ console_patterns: {{ job_warn_regex }} {% endif %} +{% if boot_wd_start_regex and boot_wd_stop_regex %} + watchdogs: + boot: + start: + regex: >- + {{ boot_wd_start_regex }} + reset: + regex: >- + {{ boot_wd_reset_regex | default(boot_wd_start_regex, true) }} + stop: + regex: >- + {{ boot_wd_stop_regex }} +{% endif %} + # Environment to deploy deployment: # Initial boot