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/workflows/ci-slang-test.yml | |
| 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/workflows/ci-slang-test.yml')
| -rw-r--r-- | .github/workflows/ci-slang-test.yml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/.github/workflows/ci-slang-test.yml b/.github/workflows/ci-slang-test.yml index 4e4a880d9..04d11bdde 100644 --- a/.github/workflows/ci-slang-test.yml +++ b/.github/workflows/ci-slang-test.yml @@ -62,8 +62,6 @@ jobs: fi # Build common slang-test arguments slang_test_args=( - "-use-test-server" - "-server-count" "${{ inputs.server-count }}" "-category" "${{ inputs.test-category }}" "-expected-failure-list" "tests/expected-failure-github.txt" "-skip-reference-image-generation" @@ -71,6 +69,12 @@ jobs: "-enable-debug-layers" "${{ inputs.enable-debug-layers }}" ) + # Add test server arguments only if server count > 1 + if [ "${{ inputs.server-count }}" -gt 1 ]; then + slang_test_args+=("-use-test-server") + slang_test_args+=("-server-count" "${{ inputs.server-count }}") + fi + # Add no-GPU failure list for non-GPU tests if [[ "${{ inputs.full-gpu-tests }}" != "true" ]]; then slang_test_args+=("-expected-failure-list" "tests/expected-failure-no-gpu.txt") @@ -154,9 +158,6 @@ jobs: steps: - uses: actions/checkout@v4 - with: - submodules: "recursive" - fetch-depth: "1" - name: Common Test Setup uses: ./.github/actions/common-test-setup @@ -166,6 +167,12 @@ jobs: platform: ${{ inputs.platform }} config: ${{ inputs.config }} + - name: Setup Python + if: ${{ runner.environment != 'self-hosted' }} + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Run slangpy tests run: | python --version |
