Skip to content

bake: add execution mode - #4044

Draft
crazy-max wants to merge 4 commits into
docker:masterfrom
crazy-max:bake-execution
Draft

bake: add execution mode#4044
crazy-max wants to merge 4 commits into
docker:masterfrom
crazy-max:bake-execution

Conversation

@crazy-max

@crazy-max crazy-max commented Aug 31, 2026

Copy link
Copy Markdown
Member

This carries forward the syncable output work from #1197 and expands it into a general --execution option for Bake. The new option keeps the default behavior as fail-fast, adds sync-output so multi-target builds only write output after all selected targets reach the output boundary successfully, adds defer-error so independent targets can continue after another target fails, and supports parallel=N as a comma-separated execution option for limiting target concurrency.

This addresses the same class of partial-output and multi-target coordination problems discussed in #1089, #1668, #3297, #3428, and #3989. The sync-output mode is the piece needed for atomic-ish local output across targets, including failures during ref evaluation such as missing files. The defer-error mode covers workflows that need all independent targets to finish before reporting failure. The parallel option provides explicit target-level concurrency control without changing BuildKit internal parallelism.

@crazy-max crazy-max changed the title bake: add sync-output execution mode bake: add execution mode Aug 31, 2026
@crazy-max
crazy-max force-pushed the bake-execution branch 4 times, most recently from fe99490 to 4da73e4 Compare August 31, 2026 13:44
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment