Repository navigation
Conversation
Signed-off-by: hrushikeshramilla <[email protected]>
Hrushikesh-ramilla
requested review from
TerryHowe,
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
November 12, 2026 07:01
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2332 +/- ##
==========================================
+ Coverage 73.51% 73.54% +0.02%
==========================================
Files 157 157
Lines 6582 6574 -8
==========================================
- Hits 4839 4835 -4
+ Misses 1454 1450 -4
Partials 289 289 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
3 tasks done
4 tasks done
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.
Relates to #2280
All six TTY status handlers in
cmd/oras/internal/display/status/tty.go(TTYPushHandler,TTYPullHandler,TTYCopyHandler,TTYBackupHandler,TTYRestoreHandler,TTYBlobPushHandler) dereferencedtrackedwithout checking if tracking had started, so calling methods likeStopTracking,OnCopySkipped,PostCopy,OnMounted,OnNodeRestored,OnNodeSkipped, orOnBlobExistsbeforeTrackTarget/StartTrackingpanicked instead of returning an error.In addition,
NewTTYCopyHandlerdid not take acontent.Fetcher, soTTYCopyHandler.PostCopypassedch.trackedtograph.FilteredSuccessorsinstead of a configuredfetcherlikeTextCopyHandler,TTYPushHandler,TTYBackupHandler, andTTYRestoreHandler.This guards nil
trackedaccess across all six handlers via shared helpers (reportTracked,closeTracked,reportSkippedSuccessors) returningstatus tracking has not started, updatesNewTTYCopyHandleranddisplay.NewCopyHandlerto passfetcherintoTTYCopyHandler, and adds regression tests intty_test.go. Verified locally withgo vet ./...andgo test -race -count=1 -skip containersConfigFullStack ./...(skipping the two Linux-specificcerts.dcolon directory tests on Windows).Please check the following list: