refactor(progress): generic progress tracking#1524
Conversation
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1524 +/- ##
==========================================
- Coverage 84.33% 84.27% -0.06%
==========================================
Files 120 121 +1
Lines 5464 5566 +102
==========================================
+ Hits 4608 4691 +83
- Misses 608 621 +13
- Partials 248 254 +6 ☔ View full report in Codecov by Sentry. |
Wwwsylvia
left a comment
There was a problem hiding this comment.
Built the code and tested a little bit. Got "panic: send on closed channel" error when running oras push localhost:5000/test:v1 foo.
A ha. This PR indeed requires further refactoring. |
5444f0a to
41eef7a
Compare
It's the skip. Thanks for catching it. And it is fixed. |
qweeah
left a comment
There was a problem hiding this comment.
LGTM with minor suggestions.
Tracker.Update and some private methods in status.go can be further improved but it can be done in another PR.
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>


This PR is an implementation of oras-project/oras-go#839. The goal is to refactor the core code of progress reporting from the
orasCLI code base in order to put it intooras-gofor others to implement their own progress reporting method. The refactored code is in theinternal/progresspackage.This PR refactors and unit tests the
cmd/oras/internal/display/status/progresspackage.This PR improves the UX with the changes below:
✗when error occurs