Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refill missing status for push copy and attach #481

Merged
merged 11 commits into from
Aug 12, 2022

Conversation

qweeah
Copy link
Contributor

@qweeah qweeah commented Aug 4, 2022

This PR fixes a bug: if multiple files shares identical content, some status output will be lost during pushing, attaching or copying between registries. The logs are lost because the correspond content upload is deduplicated in oras-go.

I added a new status Skipped for the deduplicated content: If file Foo and Bar have identical content and the blob upload is committed for Foo, then the status of Bar will be printed as Skipped. (Detailed in #443 (comment))

Fixes #443

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah changed the title Fix missing status for push copy and attach command fix: refill missing status for push copy and attach Aug 8, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2022

Codecov Report

Merging #481 (1eef5c2) into main (8bd58d0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #481   +/-   ##
=======================================
  Coverage   59.47%   59.47%           
=======================================
  Files           7        7           
  Lines         306      306           
=======================================
  Hits          182      182           
  Misses        103      103           
  Partials       21       21           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@shizhMSFT shizhMSFT merged commit 0c1856e into oras-project:main Aug 12, 2022
TerryHowe pushed a commit to TerryHowe/oras that referenced this pull request Feb 2, 2023
…ct#481)

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
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.

push attach copy commands display partial transfer status
3 participants