ci: build the hang-detection tool into x86_test-vk
authorAndres Gomez <agomez@igalia.com>
Mon, 31 May 2021 11:41:21 +0000 (14:41 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Jun 2021 16:30:57 +0000 (16:30 +0000)
commitb090ad574d3749ab71bb2be18b06ca6f259c8d78
treec59cb29d334abdc78e5dce1888b10600be89222a
parent15e41b576b8ae8f2259b51f21f67b0e6e4309239
ci: build the hang-detection tool into x86_test-vk

hang-detection is a vulkan-based lightweight wrapper from
parallel-deqp-runner that periodically submits empty command buffers
and waits for their completions. If the completion never happens, the
GPU is considered hung, the wrapped script is killed, and the job
should get aborted.

This should have no negative impact on the runtime of dEQP/traces/...,
but will allow saving time when the GPU gets hung as we can abort the
job immediately rather than waiting for the timeout.

In the case of B2C, we are using this tool's error message as a way to
trigger the reboot of the test machine and start again.

v2:
  - Use hang-detection already with some jobs (Martin).

Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Martin Peres <martin.peres@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11087>
.gitlab-ci.yml
.gitlab-ci/container/build-hang-detection.sh [new file with mode: 0644]
.gitlab-ci/container/x86_test-vk.sh
.gitlab-ci/deqp-runner.sh
.gitlab-ci/piglit/run.sh
.gitlab-ci/vkd3d-proton/run.sh