Repository navigation
Parallelize chroot image builds with per-image timings - #11766
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
SIGTERM during wait can trigger cleanup before pending image logs are replayed, deleting the only copies and losing diagnostics for cancelled or timed-out builds.
1 open issue
What changed in this PR
Reduces chroot integration build latency by building images concurrently while preserving existing cache scopes and test configuration. Hosted-runner performance gains remain unmeasured.
Changes:
- Runs squid, agent, and browser-only api-proxy builds concurrently, with grouped logs and per-image timings.
- Collects build and inspection results, waits before failure cleanup, and prunes once.
- Expands regression coverage for concurrency, log isolation, cache scopes, and failure propagation.
| File | Description |
|---|---|
scripts/ci/chroot-image-cache.test.ts |
Verifies concurrent startup, grouped logs, timings, and failure handling. |
scripts/ci/build-chroot-images.sh |
Adds parallel builds, buffered logs, timings, and coordinated cleanup. |
Review effort: Max (adaptive)
| # Import only today's package layers; never freeze apt/apk security updates. | ||
| cache_day=$(date -u +%F) | ||
| log_dir=$(mktemp -d) | ||
| trap 'rm -rf "$log_dir"' EXIT |
|
@copilot address review feedback |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Fixed in |
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Serial container builds dominate chroot integration runtime, with little observed benefit from warm caches. This change targets build latency without changing cache scopes or test configuration.