next.js
dd2b8fd7 - fix(ci): improve Docker image caching and native build skip optimization (#92633)

Commit
110 days ago
fix(ci): improve Docker image caching and native build skip optimization (#92633) ## Summary - **turbo-cache.mjs**: Increase stream buffer from 16KB to 16MB (fixes throughput stalls when piping large artifacts). Add transfer stats tracking with 5s stall warning. `getToFile()` now returns `{ ok, stats }`. - **docker-image-cache.js**: Switch from `docker save/load` to `export/import` (drops redundant base image layers). Use `zstd --long=27` for better compression. Add 3x retry logic. Add arch-aware cache key to prevent cross-arch cache poisoning. Add download stats logging. - **native-cache.js**: Consume new `getToFile()` return shape, log download stats. - **build_and_deploy.yml**: Reorder to try native binary cache restore BEFORE Docker image restore. On cache hit, skip the expensive Docker image download entirely.
Author
Parents
Loading