Commit 84bbe54
authored
chore: speed up prebuild checkout with blobless partial clone (#9684)
* chore: speed up prebuild checkout with blobless partial clone
The prebuild job checkout (fetch-depth: 0) was intermittently timing
out on release builds where two parallel instances contend for git
bandwidth. PR/dev checkouts are consistently ~40-45s, but release
launcher checkouts hit 2-10 min in 4 of the last 7 releases.
Changes:
- Bump timeout-minutes 10 -> 20 as a safety net
- Add filter: blob:none (blobless partial clone) to keep the full
commit graph and tags for git describe --tags while skipping the
expensive blob download
- Skip checkout entirely for release builds where version is
supplied (no prebuild step needs the repo on that path)
- Guard changed-files behind pull_request event check (its output
is unused for non-PR triggers)
- Guard Debug Commit SHA behind the same checkout condition
* chore: deduplicate checkout predicate into a plan step
Address reviewer nit: the checkout condition was repeated in three
places (Checkout, Debug Commit SHA, Get version) with slightly
different formulations. Add a Plan checkout step that writes
checkout=true/false to GITHUB_OUTPUT, then reference
steps.plan.outputs.checkout from all three consumers.
This makes the coupling explicit and prevents drift that would
surface as an opaque action.yml-not-found error.1 parent 1debbcb commit 84bbe54
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
258 | 267 | | |
| 268 | + | |
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
| 272 | + | |
262 | 273 | | |
263 | 274 | | |
| 275 | + | |
264 | 276 | | |
265 | 277 | | |
266 | 278 | | |
| |||
353 | 365 | | |
354 | 366 | | |
355 | 367 | | |
356 | | - | |
| 368 | + | |
357 | 369 | | |
358 | 370 | | |
359 | 371 | | |
360 | 372 | | |
361 | 373 | | |
362 | 374 | | |
363 | 375 | | |
364 | | - | |
| 376 | + | |
365 | 377 | | |
366 | 378 | | |
367 | 379 | | |
| |||
0 commit comments