CI: retry valgrind jobs if they fail

Our valgrind jobs are very timing-sensitive so it's very common that
they fail with an error when the reason is just valgrind being slower
and we miss a deadline somewhere.

Retry them if they fail, hopefully that gives us more reliable
pipelines.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1040>
This commit is contained in:
Peter Hutterer 2024-09-06 14:21:06 +10:00 committed by Marge Bot
parent dc249b0ffe
commit 83be519fc2
2 changed files with 20 additions and 0 deletions

View file

@ -667,6 +667,8 @@ vm-valgrind-touchpad:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-tap:
stage: valgrind
@ -675,6 +677,8 @@ vm-valgrind-tap:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-touchpad-buttons:
stage: valgrind
@ -683,6 +687,8 @@ vm-valgrind-touchpad-buttons:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-tablet:
stage: valgrind
@ -691,6 +697,8 @@ vm-valgrind-tablet:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-gestures-device:
stage: valgrind
@ -699,6 +707,8 @@ vm-valgrind-gestures-device:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-backends:
stage: valgrind
@ -707,6 +717,8 @@ vm-valgrind-backends:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-misc:
stage: valgrind
@ -715,6 +727,8 @@ vm-valgrind-misc:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-other devices:
stage: valgrind
@ -723,6 +737,8 @@ vm-valgrind-other devices:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
vm-valgrind-pointer:
stage: valgrind
@ -731,6 +747,8 @@ vm-valgrind-pointer:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
.fedora-build@template:

View file

@ -445,6 +445,8 @@ vm-valgrind-{{suite.name}}:
variables:
MESON_TEST_ARGS: '--setup=valgrind'
LITEST_JOBS: 4
retry:
max: 2
{% endfor %}
{% endfor %}{# for if distro.use_for_qemu_tests #}