bake: add execution mode - #4044
Draft
crazy-max wants to merge 4 commits into
Draft
Conversation
crazy-max
force-pushed
the
bake-execution
branch
from
August 31, 2026 13:00
b027761 to
05970de
Compare
crazy-max
force-pushed
the
bake-execution
branch
4 times, most recently
from
August 31, 2026 13:44
fe99490 to
4da73e4
Compare
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>
crazy-max
force-pushed
the
bake-execution
branch
from
August 31, 2026 15:09
7a76c27 to
1311cec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This carries forward the syncable output work from #1197 and expands it into a general
--executionoption for Bake. The new option keeps the default behavior asfail-fast, addssync-outputso multi-target builds only write output after all selected targets reach the output boundary successfully, addsdefer-errorso independent targets can continue after another target fails, and supportsparallel=Nas 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.