Skip to content

Commit

Permalink
[CI][AMD]Clean up ~/.triton after a failed build
Browse files Browse the repository at this point in the history
  • Loading branch information
yiqian1 committed Sep 12, 2024
1 parent eb58b22 commit a2afe2c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ jobs:
pip uninstall -y triton
cd python
pip install -v -e '.[tests]'
echo "Artificial erroring out"
exit 1
- name: Clean up after a failed build
if: failure()
run: |
rm -rf ~/.triton
- name: Run lit tests
run: |
cd python
Expand Down Expand Up @@ -415,8 +421,7 @@ jobs:
du -sh ~/.cache/ccache
- name: Clean up caches
run: |
rm -rf ~/.triton
rm -rf ~/.cache
rm -rf ~/.triton/cache
Build-Tests:
needs: Runner-Preparation
if: needs.Runner-Preparation.outputs.matrix-MACOS != ''
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/integration-tests.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ jobs:
pip uninstall -y triton
cd python
pip install -v -e '.[tests]'
echo "Artificial erroring out"
exit 1

- name: Clean up after a failed build
if: failure()
run: |
rm -rf ~/.triton

- *run-lit-tests-step

Expand Down Expand Up @@ -403,8 +410,7 @@ jobs:

- name: Clean up caches
run: |
rm -rf ~/.triton
rm -rf ~/.cache
rm -rf ~/.triton/cache

Build-Tests:
needs: Runner-Preparation
Expand Down

0 comments on commit a2afe2c

Please sign in to comment.