mesa/.gitlab-ci/common
Guilherme Gallo e9aef19e2b ci/lava: Trap init-stage2.sh background processes
Any daemon executed in init-stage2.sh may interfere with LAVA signals,
since any threaded output to console may clutter the signals, which are
based on the log output.
E.g: This job
https://gitlab.freedesktop.org/gallo/mesa/-/jobs/20779120#L2102
has failed because capture-devcoredump.sh was alive and emitting kernel
messages to the console during the LAVA signal handling, mangling the
output and making the LAVA to fail to check the results of the job.

Another problem is that CONFIG_DEBUG_STACK_USAGE Kconfig is enabled.
This causes process exit to dump a `RESULT=[  246.756067] lava-test-case
(156) used greatest stack depth: ... bytes left` kernel message to the
logs corrupting LAVA signal message. Empirically, it happens one in
every 280 jobs. To solve that, compose the lava-test-case custom script
with a short sleep to give time for kernel to dump the message clearly
and a exit command to keep the return code from init-stage2.sh script.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15938>
2022-04-28 06:33:46 +00:00
..
capture-devcoredump.sh ci/bare-metal: Move devcoredump capture to CI common 2021-06-15 14:02:44 +02:00
generate-env.sh ci/lava: Simplify passthrough of the request to upload results/ to minio. 2022-04-05 21:37:46 +00:00
init-stage1.sh ci/turnip: Increase the hangcheck timer to 2 seconds. 2022-03-18 19:07:24 +00:00
init-stage2.sh ci/lava: Trap init-stage2.sh background processes 2022-04-28 06:33:46 +00:00
intel-gpu-freq.sh ci: Add CPU frequency adjustment capability 2022-04-27 18:46:05 +03:00
start-x.sh ci: Disable Xorg's screensaver entirely. 2021-06-14 17:49:38 +00:00