Skip to content

feat: poc for multiplatform attach - #1669

Closed
wangxiaoxuan273 wants to merge 1 commit into
oras-project:mainfrom
wangxiaoxuan273:attach-multiple-platform
Closed

wangxiaoxuan273 wants to merge 1 commit into
oras-project:mainfrom
wangxiaoxuan273:attach-multiple-platform

Conversation

@wangxiaoxuan273

@wangxiaoxuan273 wangxiaoxuan273 commented Mar 24, 2025 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR implements attaching annotations to multiple manifests of multiple platforms.

Run after build: oras attach --artifact-type doc/example --platform linux/386 --platform linux/mips64le --platform linux/ppc64le myregistry.registry.io/test:latest --annotation "key1=val1" --annotation "key2=val2"

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

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: Xiaoxuan Wang <[email protected]>
@codecov

codecov Bot commented Mar 24, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 60.60606% with 39 lines in your changes missing coverage. Please review.

Project coverage is 84.30%. Comparing base (86287e0) to head (e4db7c6).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
cmd/oras/root/attach.go 60.60% 28 Missing and 11 partials ⚠️

❌ Your patch status has failed because the patch coverage (60.60%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1669      +/-   ##
==========================================
- Coverage   84.52%   84.30%   -0.23%     
==========================================
  Files         126      126              
  Lines        5681     5721      +40     
==========================================
+ Hits         4802     4823      +21     
- Misses        625      640      +15     
- Partials      254      258       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant