Commit f60feac
committed
perf(ci): cache smoke downloads across runs + dedup portable + narrow detect
Three independent levers to cut smoke-CI time (was: every run re-downloads
xim:python/make, gcc/llvm toolchains, and every compat source archive — only
~/.mcpp/registry was cached).
1. Cross-run download cache: add actions/cache for the smoke download dir
(${runner.temp}/mcpp-smoke-cache) in smoke-full-linux AND smoke-portable,
keyed by MCPP_VERSION + a restore-keys prefix so a partial hit survives any
pkg/test edit (only changed archives re-download).
2. Portable within-run dedup: smoke-portable never set MCPP_INDEX_SMOKE_CACHE_DIR
and smoke_compat_portable.sh had only a restore half — so its 5 projects each
re-downloaded the full llvm toolchain + archives within one run. Add the
save_smoke_cache half (+ pbuild wrapper routing all 5 builds through it) and
wire MCPP_INDEX_SMOKE_CACHE_DIR in the portable job.
3. Narrow detect: smoke-full-linux and smoke-portable run disjoint scripts on
disjoint platforms, so split the single full=true into full_linux/full_portable.
A change to one platform's harness no longer triggers the other's suite
(a smoke_compat_portable.sh edit skips the ~12-min Linux job; a Linux smoke
script edit skips win+mac). Common harness, unclassified test changes, and
pkgs without an example still fall back to BOTH — no coverage is dropped.
Classification verified against 9 representative changed-file sets.
Diagnosis: see memory mcpp-index-ci-repeated-downloads. Python is pulled only by
compat.xcb (build-dep, transitively via x11/glfw), Linux-only.1 parent 8145abc commit f60feac
2 files changed
Lines changed: 88 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
115 | 126 | | |
116 | 127 | | |
117 | 128 | | |
118 | 129 | | |
119 | | - | |
| 130 | + | |
120 | 131 | | |
121 | 132 | | |
122 | 133 | | |
123 | 134 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 135 | | |
129 | 136 | | |
| 137 | + | |
130 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
131 | 154 | | |
132 | 155 | | |
133 | 156 | | |
134 | 157 | | |
135 | 158 | | |
136 | | - | |
137 | | - | |
| 159 | + | |
| 160 | + | |
138 | 161 | | |
139 | 162 | | |
140 | 163 | | |
| |||
143 | 166 | | |
144 | 167 | | |
145 | 168 | | |
| 169 | + | |
| 170 | + | |
146 | 171 | | |
| 172 | + | |
| 173 | + | |
147 | 174 | | |
148 | | - | |
| 175 | + | |
149 | 176 | | |
150 | 177 | | |
151 | 178 | | |
| |||
186 | 213 | | |
187 | 214 | | |
188 | 215 | | |
189 | | - | |
| 216 | + | |
190 | 217 | | |
191 | 218 | | |
192 | 219 | | |
| |||
197 | 224 | | |
198 | 225 | | |
199 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
200 | 239 | | |
201 | 240 | | |
202 | 241 | | |
| |||
230 | 269 | | |
231 | 270 | | |
232 | 271 | | |
233 | | - | |
| 272 | + | |
234 | 273 | | |
235 | 274 | | |
236 | 275 | | |
| |||
259 | 298 | | |
260 | 299 | | |
261 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
262 | 313 | | |
263 | 314 | | |
264 | 315 | | |
| |||
292 | 343 | | |
293 | 344 | | |
294 | 345 | | |
| 346 | + | |
| 347 | + | |
295 | 348 | | |
| 349 | + | |
296 | 350 | | |
297 | 351 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
| |||
196 | 214 | | |
197 | 215 | | |
198 | 216 | | |
199 | | - | |
| 217 | + | |
200 | 218 | | |
201 | 219 | | |
202 | 220 | | |
| |||
232 | 250 | | |
233 | 251 | | |
234 | 252 | | |
235 | | - | |
| 253 | + | |
236 | 254 | | |
237 | 255 | | |
238 | 256 | | |
| |||
356 | 374 | | |
357 | 375 | | |
358 | 376 | | |
359 | | - | |
| 377 | + | |
360 | 378 | | |
361 | 379 | | |
362 | 380 | | |
| |||
411 | 429 | | |
412 | 430 | | |
413 | 431 | | |
414 | | - | |
| 432 | + | |
415 | 433 | | |
416 | 434 | | |
417 | 435 | | |
| |||
447 | 465 | | |
448 | 466 | | |
449 | 467 | | |
450 | | - | |
| 468 | + | |
451 | 469 | | |
452 | 470 | | |
453 | 471 | | |
| |||
0 commit comments