You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Document CI testing strategy for TiDB version caching
Add documentation explaining why we cache each TiDB version separately
in CI rather than caching all versions together. This helps prevent
cache timeout issues and optimizes CI performance.
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,3 +251,14 @@ make acceptance
251
251
# or to test only one mysql version:
252
252
make testversion8.0
253
253
```
254
+
255
+
### CI Testing Strategy
256
+
257
+
Our CI workflow tests against multiple TiDB versions (latest of each minor series) to ensure compatibility across different releases. To optimize cache performance and avoid timeouts, we cache each TiDB version separately rather than caching all versions together. This approach:
258
+
259
+
- Prevents cache upload timeouts (each cache is ~700-800MB instead of 4.5GB)
260
+
- Allows each test job to download and cache only the version it needs
261
+
- Shares the TiUP binary cache across all tests for efficiency
262
+
- Automatically cleans up unused caches after 7 days
263
+
264
+
This strategy balances test coverage with CI performance and reliability.
0 commit comments