mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[CI] upload only test/unit/operators cache to artifacts and rely on kernel names in cache to compare artifacts (#2111)
This commit is contained in:
26
.github/workflows/integration-tests.yml
vendored
26
.github/workflows/integration-tests.yml
vendored
@@ -92,7 +92,7 @@ jobs:
|
||||
if: ${{ env.BACKEND == 'CUDA' && env.ENABLE_TMA == '1' && env.ENABLE_MMA_V3 == '1'}}
|
||||
run: |
|
||||
cd python/test/unit
|
||||
python3 -m pytest -n 8 --ignore=runtime --ignore=language/test_line_info.py
|
||||
python3 -m pytest -n 8 --ignore=runtime --ignore=operators --ignore=language/test_line_info.py
|
||||
# run runtime tests serially to avoid race condition with cache handling.
|
||||
python3 -m pytest runtime/
|
||||
# run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
|
||||
@@ -102,17 +102,33 @@ jobs:
|
||||
if: ${{ env.BACKEND == 'CUDA' && env.ENABLE_TMA == '0' && env.ENABLE_MMA_V3 == '0'}}
|
||||
run: |
|
||||
cd python/test/unit
|
||||
python3 -m pytest -n 8 --ignore=runtime --ignore=hopper --ignore=language/test_line_info.py
|
||||
python3 -m pytest -n 8 --ignore=runtime --ignore=hopper --ignore=operators --ignore=language/test_line_info.py
|
||||
# run runtime tests serially to avoid race condition with cache handling.
|
||||
python3 -m pytest runtime/
|
||||
# run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
|
||||
TRITON_DISABLE_LINE_INFO=0 python3 -m pytest language/test_line_info.py
|
||||
|
||||
- name: Clear cache
|
||||
run: |
|
||||
rm -rf ~/.triton
|
||||
|
||||
- name: Run partial tests on CUDA with ENABLE_TMA=1 and ENABLE_MMA_V3=1
|
||||
if: ${{ env.BACKEND == 'CUDA' && env.ENABLE_TMA == '1' && env.ENABLE_MMA_V3 == '1'}}
|
||||
run: |
|
||||
cd python/test/unit
|
||||
python3 -m pytest -n 8 operators
|
||||
|
||||
- name: Run partial tests on CUDA with ENABLE_TMA=0 and ENABLE_MMA_V3=0
|
||||
if: ${{ env.BACKEND == 'CUDA' && env.ENABLE_TMA == '0' && env.ENABLE_MMA_V3 == '0'}}
|
||||
run: |
|
||||
cd python/test/unit
|
||||
python3 -m pytest -n 8 operators
|
||||
|
||||
- name: Create artifacts archive
|
||||
if: ${{(matrix.runner[0] == 'self-hosted') && (matrix.runner[1] == 'V100' || matrix.runner[1] == 'A100' || matrix.runner[1] == 'H100')}}
|
||||
run: |
|
||||
cd ~/.triton
|
||||
tar -czvf artifacts.tar.gz cache
|
||||
tar -czf artifacts.tar.gz cache
|
||||
|
||||
- name: Upload artifacts archive
|
||||
if: ${{(matrix.runner[0] == 'self-hosted') && (matrix.runner[1] == 'V100' || matrix.runner[1] == 'A100' || matrix.runner[1] == 'H100')}}
|
||||
@@ -140,6 +156,7 @@ jobs:
|
||||
|
||||
Integration-Tests-Third-Party:
|
||||
needs: Runner-Preparation
|
||||
if: false
|
||||
|
||||
runs-on: ${{ matrix.runner }}
|
||||
|
||||
@@ -320,7 +337,7 @@ jobs:
|
||||
- name: Compare artifacts
|
||||
run: |
|
||||
set +e
|
||||
python3 python/test/tools/compare_files.py --path1 reference --path2 current --kernels python/test/kernel_comparison/kernels.yml
|
||||
python3 python/test/tools/compare_files.py --path1 reference --path2 current
|
||||
exit_code=$?
|
||||
set -e
|
||||
echo $exit_code
|
||||
@@ -334,7 +351,6 @@ jobs:
|
||||
echo "Error while comparing artifacts"
|
||||
echo "COMPARISON_RESULT=error" >> $GITHUB_ENV
|
||||
fi
|
||||
echo "COMPARISON_RESULT=env.COMPARISON_RESULT"
|
||||
- name: Check exit code and handle failure
|
||||
if: ${{ env.COMPARISON_RESULT == 'error' }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user