Commit 5cf364c
committed
ci: optimize code coverage performance from 13min to ~3-5min
## Performance Optimizations
### Major Improvements
- **Use taiki-e/install-action** instead of cargo install for tarpaulin
- Pre-built binaries vs compiling from source (~5-7min savings)
- Cached installation for subsequent runs
- **Add cargo caching** to coverage job
- Use Swatinem/rust-cache@v2 like test jobs
- Avoid recompiling dependencies every run (~2-3min savings)
- **Add timeout protection** to prevent hanging
- 300 second timeout for coverage generation
- Better failure handling for long-running tests
### Expected Results
- **Before**: ~13 minutes (cargo install + full recompile)
- **After**: ~3-5 minutes (cached tools + dependencies)
- **Improvement**: 60-75% faster coverage runs
### Technical Details
- taiki-e/install-action uses pre-built binaries when available
- Cargo cache reuses compiled dependencies across runs
- Timeout prevents CI from hanging on problematic tests
This should significantly improve developer experience by reducing
PR feedback time while maintaining the same comprehensive coverage.1 parent 798624c commit 5cf364c
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
0 commit comments