Skip to content

Commit f5b962d

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. - Format the cache key definition for better readability. Co-authored-by: mhucka <1450019+mhucka@users.noreply.github.com>
1 parent 8b8eedc commit f5b962d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/cifuzz.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ jobs:
3333
with:
3434
path: |
3535
~/.cache/pip
36-
key: ${{runner.os}}-cifuzz-${{hashFiles('setup.py', 'pyproject.toml', 'dev_tools/requirements/**/*.txt', 'cirq-*/setup.py', 'cirq-*/pyproject.toml', 'cirq-*/**/requirements.txt')}}
36+
key: >-
37+
${{runner.os}}-cifuzz-${{hashFiles(
38+
'setup.py',
39+
'pyproject.toml',
40+
'dev_tools/requirements/**/*.txt',
41+
'cirq-*/setup.py',
42+
'cirq-*/pyproject.toml',
43+
'cirq-*/**/requirements.txt'
44+
)}}
3745
restore-keys: ${{runner.os}}-cifuzz-
3846
- name: Build Fuzzers
3947
id: build

0 commit comments

Comments
 (0)