diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-09-07 10:07:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-07 17:07:24 +0000 |
| commit | c0d7405d831faa6208b27fe56bf66fb0b138dcc5 (patch) | |
| tree | 01834ad9425079b801b3f6e20dd005cd067d9ecb /.github/actions/common-test-setup | |
| parent | bc6b82666fa4deda932c36cea93ee2059e0992b2 (diff) | |
Enhances CI reliability and debug logging (#8393)
1. Adds retry logic - Implements 3-attempt retry mechanism for
intermittent test failures
2. Reduces parallelism for Linux - Changes server counts back to 1 for
more stable execution, given the test is short in Linux for now
3. Adds detailed error logging - Enhanced diagnostic information for
test parsing failures
4. Add Python 3.10 setup for slangpy tests for github runners
5. Removes submodule checkout for slang and slasngpy tests
6. Adds check-ci job - Implements consolidated CI status for simplified
branch protection rule
---------
Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to '.github/actions/common-test-setup')
| -rw-r--r-- | .github/actions/common-test-setup/action.yml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/.github/actions/common-test-setup/action.yml b/.github/actions/common-test-setup/action.yml index 3fc6dd617..1b1698e1a 100644 --- a/.github/actions/common-test-setup/action.yml +++ b/.github/actions/common-test-setup/action.yml @@ -72,11 +72,20 @@ runs: run: | echo "Checking supported backends" # Capture the output of slang-test while also displaying it - if ! smokeResult=$("$bin_dir/slang-test" tests/render/check-backend-support-on-ci.slang 2>&1); then - echo "❌ ERROR: slang-test failed to run" - echo "Output: $smokeResult" - exit 1 - fi + # Add retry logic for intermittent failures + for attempt in 1 2 3; do + if smokeResult=$("$bin_dir/slang-test" "tests/render/check-backend-support-on-ci.slang" 2>&1); then + break + else + echo "⚠️ Attempt $attempt failed, retrying..." + if [ $attempt -eq 3 ]; then + echo "❌ ERROR: slang-test failed to run after 3 attempts" + echo "Output: $smokeResult" + exit 1 + fi + sleep 2 + fi + done supportedBackends="$(echo "$smokeResult" | grep 'Supported backends: ')" echo "$smokeResult" echo "$supportedBackends" |
