Commit 43ab5ca
committed
Optimize caching to include componentize-py git checkouts
The main bottleneck in CI was that componentize-py rebuilds CPython from
source (Often 20+ 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 caches1 parent f00b95d commit 43ab5ca
1 file changed
Lines changed: 8 additions & 22 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 | + | |
103 | 89 | | |
104 | 90 | | |
105 | 91 | | |
106 | | - | |
| 92 | + | |
107 | 93 | | |
108 | 94 | | |
109 | 95 | | |
| |||
0 commit comments