Skip to content

fix: discard tagging output when pushing with formatted output#1302

Merged
qweeah merged 20 commits into
oras-project:mainfrom
qweeah:fix-tagging
Apr 12, 2024
Merged

fix: discard tagging output when pushing with formatted output#1302
qweeah merged 20 commits into
oras-project:mainfrom
qweeah:fix-tagging

Conversation

@qweeah

@qweeah qweeah commented Mar 21, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR discards the tagging output of oras push to avoid corrupting formatted output

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1300

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

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

codecov Bot commented Mar 21, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 89.23077% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 84.53%. Comparing base (61557e0) to head (03135a9).

Files Patch % Lines
internal/listener/tag.go 83.33% 2 Missing and 2 partials ⚠️
cmd/oras/internal/display/metadata/json/push.go 0.00% 2 Missing ⚠️
cmd/oras/root/push.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1302      +/-   ##
==========================================
+ Coverage   84.49%   84.53%   +0.04%     
==========================================
  Files         101      103       +2     
  Lines        3637     3647      +10     
==========================================
+ Hits         3073     3083      +10     
- Misses        335      336       +1     
+ Partials      229      228       -1     

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

Comment thread cmd/oras/internal/display/status/interface.go
Comment thread cmd/oras/internal/display/status/discard.go Outdated

@shizhMSFT shizhMSFT 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.

Tagged xxx in oras push should be metadata output instead of status output.

qweeah added 10 commits April 12, 2024 00:16
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>

@shizhMSFT shizhMSFT 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.

LGTM

qweeah added 3 commits April 12, 2024 11:05
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>

@shizhMSFT shizhMSFT 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.

LGTM

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah merged commit 202bcf4 into oras-project:main Apr 12, 2024
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
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.

pushing with multiple tags will corrupt --format xxx output

3 participants