Skip to content

Commit 9cfa9ac

Browse files
committed
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.
1 parent b29f9cf commit 9cfa9ac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,14 @@ make acceptance
251251
# or to test only one mysql version:
252252
make testversion8.0
253253
```
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

Comments
 (0)