Repository navigation
fix: serialize progress console frames - #2292
Merged
TerryHowe merged 2 commits intoOct 24, 2026
Merged
Conversation
Signed-off-by: Emre K <[email protected]>
kocaemre
requested review from
TerryHowe,
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
October 24, 2026 10:53
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2292 +/- ##
==========================================
+ Coverage 60.92% 60.93% +0.01%
==========================================
Files 140 140
Lines 6098 6100 +2
==========================================
+ Hits 3715 3717 +2
Misses 2163 2163
Partials 220 220 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: Emre K <[email protected]>
kocaemre
force-pushed
the
fix/serialize-progress-render
branch
from
October 24, 2026 10:59
d818075 to
c71f688
Compare
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.
What this PR does / why we need it:
Serializes
manager.render()across the ticker andTrackpaths so one console frame finishes before another begins. The existing manager read lock protects status from writes but permits simultaneous renders and interleaved terminal cursor operations. A blocking-console regression exercises two concurrent renders without changing console or status behavior. AI-assisted implementation and test, locally verified.Which issue(s) this PR fixes:
Fixes #2291
Please check the following list:
Verification (Docker
golang:1.26.7, from repository root;GOMAXPROCS=4,go test -p 4):go test -p 4 ./cmd/oras/internal/display/status/progress -run '^Test_manager_render_serializes_console_frames$' -count=1 -v→ FAIL: second render wrote before first frame finished.-count=10→ 10 pass.go test -race -p 4 ./cmd/oras/internal/display/status/progress/... -count=1→ both packages pass.go vet -p 4 ./cmd/oras/internal/display/status/...andgo test -p 4 ./cmd/oras/internal/display/status/... -count=1→ pass (five packages).go test -p 4 ./... -count=1,gofmt -lon the two changed files (empty output), andgit diff --check origin/main...HEAD→ pass.