From d0df34c3913874947aacedc82492dc22ebf56ca2 Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Thu, 14 Jul 2022 00:29:59 -0300 Subject: [PATCH] ci/lava: Add delay before calling lava-test-case Sleep a bit before executing `lava-test-case` to give time for bash to dump shell xtrace messages into the console, which may cause interleaving with `LAVA_SIGNAL_STARTTC` in some devices like a618. The same approach worked for `LAVA_SIGNAL_STARTRUN` since https://gitlab.freedesktop.org/mesa/mesa/-/commit/3b8d10d270413a1f49ccce5563c1e4e96e10b6ef#deafdd86b8d9d0108bc692f479c3b31c4c7d5635_161_164 was merged. Closes: #6867 Signed-off-by: Guilherme Gallo Reviewed-by: David Heidelberg Part-of: --- .gitlab-ci/lava/lava_job_submitter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci/lava/lava_job_submitter.py b/.gitlab-ci/lava/lava_job_submitter.py index 5d9c22749b1..bb9e3a22c34 100755 --- a/.gitlab-ci/lava/lava_job_submitter.py +++ b/.gitlab-ci/lava/lava_job_submitter.py @@ -168,6 +168,11 @@ def generate_lava_yaml(args): 'wget -S --progress=dot:giga -O- {} | tar -xz -C {}'.format(args.build_url, args.ci_project_dir), 'wget -S --progress=dot:giga -O- {} | tar -xz -C /'.format(args.job_rootfs_overlay_url), + # Sleep a bit to give time for bash to dump shell xtrace messages into + # console which may cause interleaving with LAVA_SIGNAL_STARTTC in some + # devices like a618. + 'sleep 1', + # Putting CI_JOB name as the testcase name, it may help LAVA farm # maintainers with monitoring f"lava-test-case 'mesa-ci_{args.mesa_job_name}' --shell /init-stage2.sh",