progressui: handle active statuses for completed vertex #2689
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.
There seems to be a bug currently on daemon side on writing progress while importing remote cache. It looks like the status messages appear while the vertex messages show the current vertex as complete.
@sipsma I think the issue is that the vertex messages only come when
cache.Load
is called but that function doesn't actually pull the data. Later when blobs are lazily loaded only the status events come. I can repro it by:First build
docker buildx build --cache-to type=local,dest=/tmp/cache .
then prune cache, comment out the sleep line, and rundocker buildx build --cache-from type=local,src=/tmp/cache --progress=plain .
.I think we should fix it in the daemon side as well but not very familiar with that code. The current fix is to handle it on client-side and not write the suffix for the vertex when there are active status rows.
Signed-off-by: Tonis Tiigi [email protected]