Skip to content
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

Make the result stream of Images::build continuous #134

Merged
merged 1 commit into from
Aug 28, 2022

Conversation

marhkb
Copy link
Contributor

@marhkb marhkb commented Aug 28, 2022

What did you implement:

Currently, when the Images::build endpoint is called, no continuous
stream is returned: once an image is successfully built, a single
ImageBuildLibpod200Response is returned with the entire output of the
build process.

This is especially bad for user interfaces, as no feedback can be
provided to the user.

To make the stream continuous, the implementation of the endpoint is
rewritten. Here, the implementation of the endpoint Images::pull is
used as a template.

How did you verify your change:

I tested it locally: no stream item was returned before building was completed.

What (if anything) would need to be called out in the CHANGELOG for the next release:

(BREAKING) Make the result stream of Images::build continuous

@marhkb marhkb force-pushed the refactor/make-images-pull-continuous branch from 7d0b226 to da0e9eb Compare August 28, 2022 18:28
Currently, when the `Images::build` endpoint is called, no continuous
stream is returned: once an image is successfully built, a single
`ImageBuildLibpod200Response` is returned with the entire output of the
build process.

This is especially bad for user interfaces, as no feedback can be
provided to the user.

To make the stream continuous, the implementation of the endpoint is
rewritten. Here, the implementation of the endpoint `Images::pull` is
used as a template.
@marhkb marhkb force-pushed the refactor/make-images-pull-continuous branch from da0e9eb to daba393 Compare August 28, 2022 18:45
@vv9k vv9k merged commit 0890eb1 into vv9k:master Aug 28, 2022
@vv9k
Copy link
Owner

vv9k commented Aug 28, 2022

Awesome work, thanks for handling this.

@marhkb marhkb deleted the refactor/make-images-pull-continuous branch August 28, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants