Skip to content

fix: copy prompt skipped was missing#1484

Merged
TerryHowe merged 3 commits into
oras-project:mainfrom
TerryHowe:fix-copy-prompt-skipped
Aug 22, 2024
Merged

fix: copy prompt skipped was missing#1484
TerryHowe merged 3 commits into
oras-project:mainfrom
TerryHowe:fix-copy-prompt-skipped

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

What this PR does / why we need it:

This is a bit confusing, but previously, OnCopySkipped prompted with "Exists" and PostCopy prompted with "Skipped". I think this was changed accidentally.

https://github.com/oras-project/oras/blob/release-1.2/cmd/oras/root/cp.go#L180:L189

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@codecov

codecov Bot commented Aug 19, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.54%. Comparing base (d4eccf4) to head (7e29fa1).
Report is 1 commits behind head on main.

Files Patch % Lines
cmd/oras/internal/display/status/text.go 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1484   +/-   ##
=======================================
  Coverage   85.54%   85.54%           
=======================================
  Files         113      113           
  Lines        3936     3936           
=======================================
  Hits         3367     3367           
  Misses        342      342           
  Partials      227      227           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Billy Zha <jinzha1@microsoft.com>

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, added unit test for that.

Comment thread cmd/oras/internal/display/status/text.go
@FeynmanZhou

Copy link
Copy Markdown
Member

The CodeCov scan seems failed in the CI. Should we fix it before merging this PR?

@TerryHowe

Copy link
Copy Markdown
Member Author

Coverage on this file is 90% from my reading, but it just happens that renaming successors happens to touch a part of the code that is not tested. I think it makes sense to merge anyway here.

@TerryHowe

Copy link
Copy Markdown
Member Author

I'm going to ignore the bogus coverage report.

@TerryHowe TerryHowe merged commit 5792c35 into oras-project:main Aug 22, 2024
@TerryHowe TerryHowe deleted the fix-copy-prompt-skipped branch September 11, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants