From 9987ccfc768d12b37350204e2535f20dc2870a11 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Thu, 15 May 2025 13:20:10 +0200 Subject: [PATCH] Retry iOS UI Tests (#3470) --- .github/workflows/ios-ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index df06cd954..bd14a7943 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -100,7 +100,25 @@ jobs: # run: bazel test //platform/ios/iosapp-UITests:uitest --test_output=errors --//:renderer=metal --features=tsan - name: Running iOS UI tests (Address+UB Sanitizer) - run: bazel test //platform/ios/iosapp-UITests:uitest --test_output=errors --//:renderer=metal --features=include_clang_rt --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined --copt=-fsanitize-recover=null --linkopt=-fsanitize-recover=null + run: | + retry_count=0 + max_retries=5 + while [ $retry_count -le $max_retries ]; do + bazel test //platform/ios/iosapp-UITests:uitest \ + --test_output=errors \ + --//:renderer=metal \ + --features=include_clang_rt \ + --copt=-fsanitize=undefined \ + --linkopt=-fsanitize=undefined \ + --copt=-fsanitize-recover=null \ + --linkopt=-fsanitize-recover=null && break + retry_count=$((retry_count+1)) + if [ $retry_count -eq $max_retries ]; then + echo "::error::Failed to run iOS UI tests after $max_retries attempts" + exit 1 + fi + echo "Attempt $retry_count failed. Retrying..." + done # render test