Skip to content

chore(ux): improve error message for oras manifest fetch#1234

Merged
qweeah merged 1 commit into
oras-project:mainfrom
wangxiaoxuan273:manifest-fetch
Jan 16, 2024
Merged

chore(ux): improve error message for oras manifest fetch#1234
qweeah merged 1 commit into
oras-project:mainfrom
wangxiaoxuan273:manifest-fetch

Conversation

@wangxiaoxuan273

@wangxiaoxuan273 wangxiaoxuan273 commented Jan 8, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

improve error message for oras manifest fetch

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 #1211 and #1233

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?

Current display:
image

@codecov

codecov Bot commented Jan 8, 2024

Copy link
Copy Markdown

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (5bb6c76) 81.08% compared to head (9857173) 81.44%.

Files Patch % Lines
cmd/oras/root/attach.go 75.00% 0 Missing and 1 partial ⚠️
cmd/oras/root/pull.go 75.00% 0 Missing and 1 partial ⚠️
cmd/oras/root/tag.go 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1234      +/-   ##
==========================================
+ Coverage   81.08%   81.44%   +0.35%     
==========================================
  Files          67       67              
  Lines        3727     3740      +13     
==========================================
+ Hits         3022     3046      +24     
+ Misses        494      486       -8     
+ Partials      211      208       -3     

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

Comment thread cmd/oras/root/manifest/fetch.go Outdated
Comment thread cmd/oras/root/manifest/fetch.go Outdated
Comment thread cmd/oras/internal/errors/errors.go Outdated
Comment thread cmd/oras/internal/errors/errors.go Outdated
Comment thread cmd/oras/internal/errors/errors.go Outdated
Comment thread cmd/oras/internal/option/target.go Outdated
Comment thread cmd/oras/internal/option/target.go Outdated
Comment thread cmd/oras/internal/option/target.go Outdated
Comment thread cmd/oras/internal/errors/errors.go Outdated
Comment thread cmd/oras/internal/option/target.go Outdated
Comment thread test/e2e/suite/command/cp.go
Comment thread cmd/oras/internal/errors/errors.go Outdated

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

LGTM with minor suggestion.

@qweeah

qweeah commented Jan 16, 2024

Copy link
Copy Markdown
Contributor

I just merged another PR, @wangxiaoxuan273 can you help resolve the conflicts?

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.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 qweeah merged commit bbe42fd into oras-project:main Jan 16, 2024
@wangxiaoxuan273 wangxiaoxuan273 deleted the manifest-fetch branch January 19, 2024 09:12
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
…t#1234)

Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Feynman Zhou <feynmanzhou@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.

improve error message when no tag or digest provided

3 participants