Skip to content

feat: support warning in remote targets#1057

Merged
qweeah merged 56 commits into
oras-project:mainfrom
qweeah:warning
Aug 23, 2023
Merged

feat: support warning in remote targets#1057
qweeah merged 56 commits into
oras-project:mainfrom
qweeah:warning

Conversation

@qweeah

@qweeah qweeah commented Aug 9, 2023

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Fixes #898

qweeah added 10 commits August 8, 2023 03:32
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>
@qweeah qweeah changed the title feat: pack OCI image spec v1.1 manifests feat: support warning in remote targets Aug 9, 2023
@qweeah qweeah marked this pull request as draft August 9, 2023 01:34
qweeah added 5 commits August 9, 2023 03:22
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@codecov-commenter

codecov-commenter commented Aug 9, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1057 (9a9b387) into main (742b044) will decrease coverage by 0.02%.
The diff coverage is 89.70%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main    #1057      +/-   ##
==========================================
- Coverage   80.00%   79.99%   -0.02%     
==========================================
  Files          56       56              
  Lines        2896     2914      +18     
==========================================
+ Hits         2317     2331      +14     
- Misses        402      405       +3     
- Partials      177      178       +1     
Files Changed Coverage Δ
cmd/oras/internal/option/remote.go 77.38% <76.00%> (-0.21%) ⬇️
cmd/oras/root/discover.go 84.72% <85.71%> (ø)
cmd/oras/internal/option/target.go 84.69% <100.00%> (+0.31%) ⬆️
cmd/oras/root/attach.go 81.89% <100.00%> (ø)
cmd/oras/root/blob/delete.go 82.60% <100.00%> (ø)
cmd/oras/root/blob/fetch.go 68.26% <100.00%> (ø)
cmd/oras/root/blob/push.go 83.69% <100.00%> (ø)
cmd/oras/root/cp.go 86.56% <100.00%> (ø)
cmd/oras/root/login.go 72.22% <100.00%> (ø)
cmd/oras/root/manifest/delete.go 82.19% <100.00%> (ø)
... and 8 more

qweeah added 8 commits August 10, 2023 00:57
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>
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
qweeah added 2 commits August 22, 2023 03:25
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah

qweeah commented Aug 22, 2023

Copy link
Copy Markdown
Contributor Author

@Wwwsylvia test fixed, can you help review again.

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but I am not a maintainer

Comment thread cmd/oras/root/discover.go Outdated
qweeah added 3 commits August 22, 2023 15:47
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
qweeah added 5 commits August 22, 2023 13:57
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>
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go Outdated
Comment thread cmd/oras/internal/option/remote.go
qweeah added 5 commits August 23, 2023 16:22
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

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should ImageSpec.PackType be changed to ImageSpec.PackVersion?

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@TerryHowe

Copy link
Copy Markdown
Member

Hmm, @Wwwsylvia has a comment

@qweeah

qweeah commented Aug 23, 2023

Copy link
Copy Markdown
Contributor Author

Should ImageSpec.PackType be changed to ImageSpec.PackVersion?

Good catch. This is not related to change here, I will do in another PR.

@qweeah qweeah merged commit 6319416 into oras-project:main Aug 23, 2023
@qweeah qweeah deleted the warning branch August 23, 2023 12:58
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.

show distribution warning headers as output on the ORAS CLI

5 participants