Commit f0e61f1
[SharovBot] ci(kurtosis): cache third-party containers and erigon build layers (#19493)
**[SharovBot]**
## Summary
Two caching strategies for `assertoor_regular_test` and
`assertoor_pectra_test` to reduce runtime and eliminate Docker Hub
dependency on every run.
---
## 1. BuildKit GHA layer cache for the erigon Docker build
**Before:** bare `docker build -t test/erigon:current .` — no caching,
full recompile every run
**After:** `docker/build-push-action@v6` with `cache-from/cache-to:
type=gha`
- Caches all Docker layers (including Go module download) in GitHub
Actions cache
- Both jobs share scope `kurtosis-erigon-build` — same commit = same
layers, only one cold build per push
- **Expected speedup:** ~10–15 min cold → ~3–5 min warm on cache hit
## 2. `actions/cache` + `docker save/load` for pinned third-party
containers
| Image | Size (approx) |
|-------|--------------|
| `sigp/lighthouse:v7.0.1` | ~300 MB compressed |
| `consensys/teku:25.9.1` | ~250 MB compressed |
| `ethpandaops/assertoor:v0.0.17` | ~80 MB compressed |
- Cache key = all three image name+tag strings → auto-invalidates on any
version bump
- Both jobs use the same cache key (same images in both configs)
- On cache miss: pulls from Docker Hub + saves to cache; on hit: loads
from cache (no Docker Hub call)
- **Eliminates Docker Hub rate-limit risk** for these images (avoids the
login timeout issue entirely)
## Image versions as env vars
Extracted to top-level `env:` block for easy future bumps:
```yaml
LIGHTHOUSE_IMAGE: "sigp/lighthouse:v7.0.1"
TEKU_IMAGE: "consensys/teku:25.9.1"
ASSERTOOR_IMAGE: "ethpandaops/assertoor:v0.0.17"
```
Co-authored-by: SharovBot <sharovbot@erigon.ci>1 parent d07d250 commit f0e61f1
1 file changed
+76
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
51 | 68 | | |
52 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
53 | 92 | | |
54 | 93 | | |
55 | 94 | | |
| |||
91 | 130 | | |
92 | 131 | | |
93 | 132 | | |
94 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
95 | 145 | | |
96 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
97 | 169 | | |
98 | 170 | | |
99 | 171 | | |
| |||
0 commit comments