ci: Run meson tests in strace if it's available and can be used
authorMichel Dänzer <mdaenzer@redhat.com>
Thu, 4 Mar 2021 11:58:56 +0000 (12:58 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Mar 2021 15:32:33 +0000 (15:32 +0000)
commit16fc6b87bb5aaeb65e5b6d263e600185b4d425a1
tree25b186f47baf20ead2fb8bd653743cb8c69bf3f6
parentacd6117fe03d485f01ea6d6bb1d32aa0187545b8
ci: Run meson tests in strace if it's available and can be used

Keep the strace logs in job artifacts for tests which timed out.

This can be useful for figuring out why a timeout occurred.

strace cannot be used in jobs where ASAN is enabled, because ASAN's
leak checker also uses ptrace(), which isn't possible within strace.

Suggested-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9472>
.gitlab-ci.yml
.gitlab-ci/meson/build.sh
.gitlab-ci/meson/time-strace.sh [new file with mode: 0755]
.gitlab-ci/meson/time.sh [moved from .gitlab-ci/meson/test-wrapper.sh with 100% similarity]