Skip to content

Commit 8b8eedc

Browse files
Optimize CIFuzz workflow cache
- Remove unused bazel cache path. - Update cache key to hash dependency files (setup.py, pyproject.toml, requirements.txt) instead of all source files. This improves cache hit rate for PRs that do not modify dependencies. Co-authored-by: mhucka <1450019+mhucka@users.noreply.github.com>
1 parent c346e50 commit 8b8eedc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
with:
3434
path: |
3535
~/.cache/pip
36-
~/.cache/bazel
37-
key: ${{runner.os}}-cifuzz-${{hashFiles('cirq-*/**')}}
36+
key: ${{runner.os}}-cifuzz-${{hashFiles('setup.py', 'pyproject.toml', 'dev_tools/requirements/**/*.txt', 'cirq-*/setup.py', 'cirq-*/pyproject.toml', 'cirq-*/**/requirements.txt')}}
3837
restore-keys: ${{runner.os}}-cifuzz-
3938
- name: Build Fuzzers
4039
id: build

0 commit comments

Comments
 (0)