Commit e224454
committed
ci: optimize caching to include componentize-py git checkouts
The main bottleneck in CI was that componentize-py rebuilds CPython from
source (~5 minutes) on every run. This was happening because:
1. componentize-py's build.rs builds CPython in its git checkout directory:
~/.cargo/git/checkouts/componentize-py-<hash>/<commit>/cpython/builddir/
2. We were only caching ~/.cargo/git/db/ (bare repos), not checkouts/
3. The separate componentize-py-cpython cache with wildcards was redundant
and potentially conflicting with the main cargo-deps cache
Changes:
- Add ~/.cargo/git/checkouts/ to cargo-deps cache (contains CPython build)
- Remove redundant componentize-py-cpython cache
- Remove sccache CC/CXX wrappers (caused 104 write errors, not needed)
- Improve cache key restore pattern for better hit rates
- Bump cache version to v3 to bust old caches
Expected improvement:
- Cold cache: 30-60 min (unchanged)
- Warm cache: 8min -> 2-5min (5min savings from cached CPython build)1 parent f00b95d commit e224454
1 file changed
Lines changed: 9 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
74 | 76 | | |
| 77 | + | |
75 | 78 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 79 | + | |
| 80 | + | |
91 | 81 | | |
92 | 82 | | |
93 | 83 | | |
94 | 84 | | |
95 | 85 | | |
96 | 86 | | |
97 | | - | |
98 | | - | |
99 | 87 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
103 | 91 | | |
104 | 92 | | |
105 | 93 | | |
| |||
0 commit comments