Skip to content

Conversation

tonistiigi and others added 4 commits June 16, 2025 13:43
Signed-off-by: Tonis Tiigi <[email protected]>
(cherry picked from commit cb29cd0)
Signed-off-by: CrazyMax <[email protected]>
(cherry picked from commit 4a22b92)
Signed-off-by: CrazyMax <[email protected]>
(cherry picked from commit 989978a)
…conditions

Some minor fixes to the printer and how bake invokes it. Bake previously
had a race condition that could result in the display not updating on an
error condition, but it was much rarer because the channel communication
was much closer. The refactor added a proxy for the status channel so
there was more of an opportunity to surface the race condition.

When bake exits with an error when reading the bakefiles, it doesn't
wait for the printer to finish so it is possible for the printer to
update the display after an error is printed. This adds an extra `Wait`
in a defer to make sure the printer is finished.

`Wait` has also been fixed to allow it to be called multiple times and
have the same behavior. Previously, it only waited for the done channel
once so only the first wait would block.

The `onclose` method is now called every time the display is paused or
stopped. That was the previous behavior and it's been restored here.

The display only gets refreshed if we aren't exiting. There's no point
in initializing another display if we're about to exit.

The metric writer attached to the printer was erroneously removed. It is
now assigned properly.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
(cherry picked from commit 7660acf)
@tonistiigi tonistiigi merged commit 01e731b into docker:v0.25 Jun 16, 2025
139 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants