-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Swap to Reader in bake to avoid hangs on output #12984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
c1b1773 to
6359318
Compare
ndeloof
approved these changes
Jun 27, 2025
Contributor
ndeloof
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Just a note, once docker/buildx#2967 is fixed we could get rid of this and just use json.NewDecoder(pipe)
ndeloof
reviewed
Jun 27, 2025
Signed-off-by: Nathan Scott <[email protected]>
6359318 to
dde2d29
Compare
glours
approved these changes
Jun 27, 2025
Contributor
glours
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Jul 6, 2025
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [docker/compose](https://github.com/docker/compose) | minor | `v2.37.3` -> `v2.38.1` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>docker/compose (docker/compose)</summary> ### [`v2.38.1`](https://github.com/docker/compose/releases/tag/v2.38.1) [Compare Source](docker/compose@v2.38.0...v2.38.1) #### What's Changed ##### ✨ Improvements - implement `model_variable` by [@​ndeloof](https://github.com/ndeloof) in docker/compose#13001 ##### ⚙️ Dependencies - bump compose-go to version v2.7.1 by [@​glours](https://github.com/glours) in docker/compose#13000 **Full Changelog**: docker/compose@v2.38.0...v2.38.1 ### [`v2.38.0`](https://github.com/docker/compose/releases/tag/v2.38.0) [Compare Source](docker/compose@v2.37.3...v2.38.0) #### What's Changed ##### ✨ Improvements - introduce support for models by [@​ndeloof](https://github.com/ndeloof) in docker/compose#12976 - Add volumes command by [@​leoperegrino](https://github.com/leoperegrino) in docker/compose#12954 - remove publish limitation on bind mount by [@​glours](https://github.com/glours) in docker/compose#12997 - mount /var/run/docker.sock for --use-api-socket by [@​ndeloof](https://github.com/ndeloof) in docker/compose#12995 ##### 🐛 Fixes - only expose API socket to service asking for it by [@​ndeloof](https://github.com/ndeloof) in docker/compose#12972 - check progress default value instead of empty string to use BUILDKIT\_PROGRESS env variable value by [@​glours](https://github.com/glours) in docker/compose#12982 - exclude provider services from the list of dependencies that Compose should wait for by [@​glours](https://github.com/glours) in docker/compose#12983 - don't fail down cmd if services with pre\_stop hook already stopped/removed by [@​glours](https://github.com/glours) in docker/compose#12986 - Swap to Reader in bake to avoid hangs on output by [@​nscott](https://github.com/nscott) in docker/compose#12984 - make sure the post\_start hooks fails by [@​glours](https://github.com/glours) in docker/compose#12996 - remove error message from exec outpout by default by [@​glours](https://github.com/glours) in docker/compose#12992 - fix: typos by [@​hezhizhen](https://github.com/hezhizhen) in docker/compose#12963 - pass project.environment to bake by [@​ndeloof](https://github.com/ndeloof) in docker/compose#12994 - fix provider concurrent environment map accesses by [@​glours](https://github.com/glours) in docker/compose#12999 - e2e compose run --env by [@​ndeloof](https://github.com/ndeloof) in docker/compose#12967 ##### ⚙️ Dependencies - build(deps): bump github.com/docker/cli from 28.2.2+incompatible to 28.3.0+incompatible by [@​dependabot](https://github.com/dependabot) in docker/compose#12974 - build(deps): bump github.com/docker/docker from 28.2.2+incompatible to 28.3.0+incompatible by [@​dependabot](https://github.com/dependabot) in docker/compose#12975 #### New Contributors - [@​nscott](https://github.com/nscott) made their first contribution in docker/compose#12984 - [@​hezhizhen](https://github.com/hezhizhen) made their first contribution in docker/compose#12963 - [@​leoperegrino](https://github.com/leoperegrino) made their first contribution in docker/compose#12954 **Full Changelog**: docker/compose@v2.37.3...v2.38.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
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.
What I did
I reproduced a build problem where my build hangs for what was an unknown reason. This was due to the lack of handling an error -
compose buildshould have crashed. Instead, it appeared like a hang. The root cause was really that we can't predict the size of output frombuildx bake, so instead I swapped from a scanner with a hard buffer limit to a generic streaming reader.Related issue
This fixes #12973
(not mandatory) A picture of a cute animal, if possible in relation to what you did