]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
CI: Add automatic retry for test.py jobs
authorTom Rini <trini@konsulko.com>
Wed, 12 Jul 2023 02:33:03 +0000 (22:33 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 20 Jul 2023 19:23:16 +0000 (15:23 -0400)
It is not uncommon for some of the QEMU-based jobs to fail not because
of a code issue but rather because of a timing issue or similar problem
that is out of our control. Make use of the keywords that Azure and
GitLab provide so that we will automatically re-run these when they fail
2 times. If they fail that often it is likely we have found a real issue
to investigate.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
.azure-pipelines.yml
.gitlab-ci.yml

index db6d676a132ea0b08125512ce26746ec1bf2e5e0..b7dc7e860fb1b128c9cd47716eb0873fdba3ee42 100644 (file)
@@ -460,6 +460,7 @@ stages:
           fi
           # Some tests using libguestfs-tools need the fuse device to run
           docker run "$@" --device /dev/fuse:/dev/fuse -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
+        retryCountOnTaskFailure: 2 # QEMU may be too slow, etc.
 
 - stage: world_build
   jobs:
index 99b1e73f0fe13006440a5935e9246c619fb55b67..98195c7108511382bff4fd9b5a7f274a1d366633 100644 (file)
@@ -20,6 +20,7 @@ stages:
 
 .buildman_and_testpy_template: &buildman_and_testpy_dfn
   stage: test.py
+  retry: 2 # QEMU may be too slow, etc.
   before_script:
     # Clone uboot-test-hooks
     - git config --global --add safe.directory "${CI_PROJECT_DIR}"