docker / docker/buildx

Add a flag to defer errors occurring in matrix build targets

Open
#3,297 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement status/accepted
Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

Description

I have a large matrix build emitting a number of products from multiple sequential 5+ hour build stages.

If one of these matrix targets fails for whatever reason, I'd like the others to run to completion or failure.

Currently, the entire build process dies upon the first error encountered in any individual matrix target, throwing away a bunch of valuable work for other running matrix targets.

I'd like a flag, docker buildx bake --defer-exit (or whatever) that enables this behavior.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker buildx bake command and trace how matrix targets are scheduled and how the first error terminates the build. Check the existing bake execution flow and tests, then define the deferred-exit behavior so all matrix targets reach completion before the command reports failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.