Commit 9c913cb
committed
Fix TiUP cache to save updates when versions change
- Add dynamic cache key that includes TiDB versions hash
- Cache key now includes workflow hash, go.mod hash, and TiDB versions hash
- This ensures cache updates are saved when TiDB versions change
- Both prepare-dependencies and tests jobs use same cache key for sharing
- Cache automatically cleans up after 7 days (no explicit cleanup needed)
Previously, static cache key caused 'not saving cache' on cache hits,
preventing updates from being saved. Now cache properly invalidates
and saves when versions change.1 parent 295391f commit 9c913cb
1 file changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | | - | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
191 | 205 | | |
| 206 | + | |
192 | 207 | | |
193 | 208 | | |
194 | 209 | | |
195 | 210 | | |
196 | 211 | | |
197 | | - | |
| 212 | + | |
| 213 | + | |
198 | 214 | | |
| 215 | + | |
199 | 216 | | |
200 | 217 | | |
201 | 218 | | |
| |||
0 commit comments