feat: pin CI cache keys to dependency file hashes#401
Merged
Conversation
|
Merging to
|
Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add CI dependency caching to improve execution time
feat: pin CI cache keys to dependency file hashes
Feb 20, 2026
|
👋 Development Partner is reviewing this PR. Will provide feedback shortly. |
There was a problem hiding this comment.
Pull request overview
This PR adds dependency file hash bindings to CI cache configurations, ensuring cache keys are properly invalidated when dependencies change and cache hits are reliably triggered.
Changes:
- Added
cache-dependency-glob: "uv.lock"to the uv-based performance testing workflow - Added
cache-dependency-path: 'requirements.txt'to the pip-based daily performance improver build action
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/performance.yml |
Binds uv cache key to uv.lock hash for the benchmark job |
.github/actions/daily-perf-improver/build-steps/action.yml |
Binds pip cache key to requirements.txt hash for build steps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI caches lacked dependency file bindings, meaning cache keys weren't invalidated when dependencies changed and cache hits weren't reliably triggered.
Changes
daily-perf-improver/build-steps/action.yml— addedcache-dependency-path: 'requirements.txt'to the existingcache: 'pip'setup, tying the pip cache key to therequirements.txthashperformance.yml— addedcache-dependency-glob: "uv.lock"toastral-sh/setup-uv@v4, tying the uv cache key to the lock file hashsync.ymlalready had correct caching configured.bandit.ymldelegates to a third-party composite action with no directpip installstep.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.