chore(ci): harden jemalloc cache resilience - #4043
Conversation
|
Claude finished @brbrr's task in 2m 12s —— View job Review: chore(ci): harden jemalloc cache resilienceThe core idea is sound — installing jemalloc before Important
No other correctness or safety issues found in the diff. |
| cache-dependency-path: | | ||
| go.mod | ||
| .jemalloc-libdir |
There was a problem hiding this comment.
Setting cache-dependency-path explicitly replaces actions/setup-go's default glob (**/go.sum) rather than adding to it. This list only hashes go.mod and .jemalloc-libdir — go.sum is no longer part of the Go module cache key, so a dependency bump that only touches go.sum (e.g. a new indirect requirement's checksum, or a go mod tidy that doesn't change go.mod's content) won't bust the module cache.
Since the goal here is cache resilience, this looks like it should include go.sum too:
cache-dependency-path: |
go.mod
go.sum
.jemalloc-libdir| cache-dependency-path: | | ||
| go.mod | ||
| .jemalloc-libdir |
There was a problem hiding this comment.
Same issue as in build-binaries.yml: this cache-dependency-path overrides actions/setup-go's default **/go.sum glob instead of extending it, so go.sum is dropped from the module cache key here too. Recommend adding it back:
cache-dependency-path: |
go.mod
go.sum
.jemalloc-libdir
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4043 +/- ##
==========================================
+ Coverage 79.28% 79.30% +0.02%
==========================================
Files 464 465 +1
Lines 35793 35785 -8
==========================================
+ Hits 28377 28381 +4
+ Misses 7407 7395 -12
Partials 9 9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
User description
This PR should improve cache resilience for jemalloc by adding jemalloc libdir into cache key
PR Type
Enhancement
Description
Add
jemalloclibdir to CI cache keysMove Jemalloc installs before Go setup
Remove later duplicate dependency installs
File Walkthrough
build-binaries.yml
Move Jemalloc setup and cache dependencies.github/workflows/build-binaries.yml
jemalloclibdir in.jemalloc-libdir.jemalloc-libdirinsetup-go cache-dependency-pathjuno-test.yml
Add Jemalloc cache dependency to tests.github/workflows/juno-test.yml
jemalloclibdir in.jemalloc-libdir.jemalloc-libdirinsetup-go cache-dependency-path