Commit 6cc0042
authored
Fix cache warmer: add Windows runner, timestamp-based cache keys (#1395)
## Summary
Two fixes for the forked PR dependency cache:
1. **Add Windows runner to warmer matrix.** GitHub Actions cache is
OS-scoped — a cache saved on Linux cannot be restored on Windows. The
warmer must run on both OS.
2. **Timestamp-based cache keys.** GitHub caches are immutable (can't
overwrite). Previously required manual deletion before re-running
warmer. Now uses key format `maven-deps-{timestamp}-{hash}`, so each run
creates a new entry. The restore step uses prefix `maven-deps-` to match
the latest. Old entries auto-expire after 7 days.
Also runs exact same Maven commands as PR CI workflows (8 steps) to
ensure all plugins are cached.
## Test plan
- [ ] Trigger warmer from this branch — verify both Linux and Windows
jobs pass
- [ ] After merge: trigger warmer on main, re-run PR #1371 CI
NO_CHANGELOG=true
This pull request was AI-assisted by Isaac.
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>1 parent 2fd7949 commit 6cc0042
1 file changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
179 | 197 | | |
180 | 198 | | |
181 | 199 | | |
182 | 200 | | |
183 | | - | |
| 201 | + | |
0 commit comments