Skip to content

Commit

Permalink
[CI] Fix du failling if cache restore fails (#5206)
Browse files Browse the repository at this point in the history
Follow up to #5202

It's currently failing with the error
```
du: /Users/runner/.triton/**: No such file or directory
Error: Process completed with exit code 1.
```
which happens because even though the `.triton` directory exists, it is
empty. This instead uses du on `.triton` with a depth of 1.
  • Loading branch information
peterbell10 authored Nov 21, 2024
1 parent 6b6f4a2 commit 9c7a8c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 28 deletions.
36 changes: 12 additions & 24 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,10 @@ jobs:
- name: Inspect cache directories
run: |
mkdir -p ~/.triton
ls -alh ~/.triton
du -sh ~/.triton/**
du -h -d 1 ~/.triton
mkdir -p ~/.ccache
ls -alh ~/.ccache
du -sh ~/.ccache
du -h -d 1 ~/.ccache
- name: Update PATH
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -295,12 +293,10 @@ jobs:
- name: Inspect cache directories
run: |
mkdir -p ~/.triton
ls -alh ~/.triton
du -sh ~/.triton/**
du -h -d 1 ~/.triton
mkdir -p ~/.ccache
ls -alh ~/.ccache
du -sh ~/.ccache
du -h -d 1 ~/.ccache
- # If we're on branch `main`, save the ccache Triton compilation artifacts
# to the cache so they can be used by other (non-main) CI runs.
#
Expand Down Expand Up @@ -391,12 +387,10 @@ jobs:
- name: Inspect cache directories
run: |
mkdir -p ~/.triton
ls -alh ~/.triton
du -sh ~/.triton/**
du -h -d 1 ~/.triton
mkdir -p ~/.ccache
ls -alh ~/.ccache
du -sh ~/.ccache
du -h -d 1 ~/.ccache
- name: Update PATH
run: |
echo "/opt/rocm/llvm/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -467,12 +461,10 @@ jobs:
- name: Inspect cache directories
run: |
mkdir -p ~/.triton
ls -alh ~/.triton
du -sh ~/.triton/**
du -h -d 1 ~/.triton
mkdir -p ~/.ccache
ls -alh ~/.ccache
du -sh ~/.ccache
du -h -d 1 ~/.ccache
- # If we're on branch `main`, save the ccache Triton compilation artifacts
# to the cache so they can be used by other (non-main) CI runs.
#
Expand Down Expand Up @@ -566,12 +558,10 @@ jobs:
- name: Inspect cache directories
run: |
mkdir -p ~/.triton
ls -alh ~/.triton
du -sh ~/.triton/**
du -h -d 1 ~/.triton
mkdir -p ~/.ccache
ls -alh ~/.ccache
du -sh ~/.ccache
du -h -d 1 ~/.ccache
- name: Update PATH
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -599,12 +589,10 @@ jobs:
- name: Inspect cache directories
run: |
mkdir -p ~/.triton
ls -alh ~/.triton
du -sh ~/.triton/**
du -h -d 1 ~/.triton
mkdir -p ~/.ccache
ls -alh ~/.ccache
du -sh ~/.ccache
du -h -d 1 ~/.ccache
- # If we're on branch `main`, save the ccache Triton compilation artifacts
# to the cache so they can be used by other (non-main) CI runs.
#
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/integration-tests.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,10 @@ jobs:
name: Inspect cache directories
run: |
mkdir -p ~/.triton
ls -alh ~/.triton
du -sh ~/.triton/**
du -h -d 1 ~/.triton

mkdir -p ~/.ccache
ls -alh ~/.ccache
du -sh ~/.ccache
du -h -d 1 ~/.ccache

- name: Update PATH
run: |
Expand Down

0 comments on commit 9c7a8c6

Please sign in to comment.