Skip to content

Commit 03eb523

Browse files
authored
[CI] Try to reduce the amount of cache we use (#7076)
The goal is to prevent us from running out of cache.
1 parent e1e5e6c commit 03eb523

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

.github/workflows/integration-tests-amd.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,6 @@ jobs:
6060
~/.triton/nvidia
6161
~/.triton/json
6262
key: ${{ runner.os }}-${{ runner.arch }}-llvm-${{ steps.cache-key.outputs.llvm }}-nvidia-${{ steps.cache-key.outputs.nvidia }}-json-${{ steps.cache-key.outputs.json }}
63-
- # Cache ~/.cache/ccache to speed up compilation.
64-
#
65-
# On branch `main` we always start from an empty cache, i.e. we skip the
66-
# "restore" step. This is to prevent the caches from accumulating stale
67-
# files over time.
68-
name: Restore cache of ccache and Triton compilation artifacts
69-
id: restore-build-cache
70-
if: github.ref != 'refs/heads/main'
71-
uses: actions/cache/restore@v4
72-
with:
73-
path: |
74-
~/.ccache
75-
# Restore the most recent cache entry.
76-
restore-keys: |
77-
triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-
78-
triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-
79-
# We expect this cache key never to hit and for us to fall back
80-
# unconditionally to the restore-key, so it doesn't actually matter
81-
# what we put here (so long as it doesn't hit an existing key).
82-
key: triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-${{ steps.cache-key.outputs.datetime }}
8363
- name: Inspect cache directories
8464
run: |
8565
mkdir -p ~/.triton
@@ -152,18 +132,6 @@ jobs:
152132
153133
mkdir -p ~/.ccache
154134
du -h -d 1 ~/.ccache
155-
- # If we're on branch `main`, save the ccache Triton compilation artifacts
156-
# to the cache so they can be used by other (non-main) CI runs.
157-
#
158-
# (It wouldn't be a problem to save the cache on every run, because github
159-
# evicts cache entries LRU, but maybe this saves a bit of time in CI.)
160-
name: Save ccache and Triton compilation artifacts to cache
161-
if: github.ref == 'refs/heads/main'
162-
uses: actions/cache/save@v4
163-
with:
164-
path: |
165-
~/.ccache
166-
key: triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-${{ steps.cache-key.outputs.datetime }}
167135
- name: Clean up caches
168136
# Always cleanup the worker, even if builds or tests failed
169137
if: always()

.github/workflows/integration-tests-nvidia.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,6 @@ jobs:
5757
~/.triton/nvidia
5858
~/.triton/json
5959
key: ${{ runner.os }}-${{ runner.arch }}-llvm-${{ steps.cache-key.outputs.llvm }}-nvidia-${{ steps.cache-key.outputs.nvidia }}-json-${{ steps.cache-key.outputs.json }}
60-
- # Cache ~/.cache/ccache to speed up compilation.
61-
#
62-
# On branch `main` we always start from an empty cache, i.e. we skip the
63-
# "restore" step. This is to prevent the caches from accumulating stale
64-
# files over time.
65-
name: Restore cache of ccache and Triton compilation artifacts
66-
id: restore-build-cache
67-
if: github.ref != 'refs/heads/main'
68-
uses: actions/cache/restore@v4
69-
with:
70-
path: |
71-
~/.ccache
72-
# Restore the most recent cache entry.
73-
restore-keys: |
74-
triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-
75-
triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-
76-
# We expect this cache key never to hit and for us to fall back
77-
# unconditionally to the restore-key, so it doesn't actually matter
78-
# what we put here (so long as it doesn't hit an existing key).
79-
key: triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-${{ steps.cache-key.outputs.datetime }}
8060
- name: Inspect cache directories
8161
run: |
8262
mkdir -p ~/.triton
@@ -130,15 +110,3 @@ jobs:
130110
131111
mkdir -p ~/.ccache
132112
du -h -d 1 ~/.ccache
133-
- # If we're on branch `main`, save the ccache Triton compilation artifacts
134-
# to the cache so they can be used by other (non-main) CI runs.
135-
#
136-
# (It wouldn't be a problem to save the cache on every run, because github
137-
# evicts cache entries LRU, but maybe this saves a bit of time in CI.)
138-
name: Save ccache and Triton compilation artifacts to cache
139-
if: github.ref == 'refs/heads/main'
140-
uses: actions/cache/save@v4
141-
with:
142-
path: |
143-
~/.ccache
144-
key: triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-${{ steps.cache-key.outputs.datetime }}

0 commit comments

Comments
 (0)