Fix image pull progress bar moving backward - #526
Open
dominikschubert wants to merge 2 commits into
Open
dominikschubert wants to merge 2 commits into
dominikschubert wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
dominikschubert
force-pushed
the
devx-1114-make-image-pull-loading-more-stable-and-trustworthy
branch
from
September 30, 2026 19:13
27bb27c to
9a623fc
Compare
dominikschubert
marked this pull request as ready for review
September 30, 2026 19:27
dominikschubert
requested review from
a team and
peter-smith-phd
as code owners
September 30, 2026 19:27
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
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.
Motivation
While
lstk startpulls the emulator image, the progress bar jumps backward, which makes the pull feel broken and untrustworthy.Why the bar moved backward:
Solution
What changed:
Known tradeoff: if small layers finish before a large one starts, the bar can still run ahead early, then slow down. Fetching exact layer sizes from the manifest before pulling would avoid that. We chose not to, to avoid an extra registry request.
Tests:
lstk startruns against a fake Docker Engine API that streams the real pull. It checks every rendered frame. It fails on main, with 17 backward frames and the counter ending at 4/7, and passes with the fix.lstk startneeds the fixed service port range 4510-4559, which the Docker-backed tests also use.Docs
Nothing to document. The pull progress bar behaves differently, but no commands, flags, env vars or config are added or changed.
Review
Human review advised: this changes user-facing terminal behavior and adds a new fake Docker Engine test helper.
That said, to make review easier, I've recorded the new behavior here:
Old
Screen.Recording.2026-09-30.at.21.03.34.mov
New
Screen.Recording.2026-09-30.at.21.05.41.mov
Note
The layer counter now matches the image's real layer count. For
localstack/localstack-pro:latestit shows 23/23 instead of 24, because the "Pulling from" header line and non-layer blobs are no longer counted.Follow-ups
Co-Authored-By: Claude noreply@anthropic.com
馃 Generated with Claude Code
Closes DEVX-1114