Add a flag to defer errors occurring in matrix build targets
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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