-
Notifications
You must be signed in to change notification settings - Fork 201
feat: show repo tags with --oci-layout-path
in repo tags
command
#1759
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
feat: show repo tags with --oci-layout-path
in repo tags
command
#1759
Conversation
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1759 +/- ##
==========================================
+ Coverage 85.39% 85.46% +0.07%
==========================================
Files 137 137
Lines 5950 5966 +16
==========================================
+ Hits 5081 5099 +18
+ Misses 618 616 -2
Partials 251 251 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds and refactors the functionality for showing repository tags using the new --oci-layout-path flag in the oras repo tags command.
- Added e2e tests for validating tags filtering in OCI layout.
- Updated the tag filtering logic in the repo tags command to support repository-scoped filtering.
- Extended the help message to demonstrate the new OCI layout usage.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
test/e2e/suite/command/repo.go | Added new test cases to verify correct tag filtering. |
cmd/oras/root/repo/tags.go | Updated tag filtering logic to enable OCI layout support. |
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Need to consider the case that |
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
c1d6eb3
to
2b8c9b9
Compare
2b8c9b9
to
fbbba33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What this PR does / why we need it:
This PR implements the new feature of showing repo tags with
--oci-layout-path
inrepo tags
command. This feature applies to the scenario where the user stores images from multiple repositories in the same OCI layout directory, and put the full references of the images as tags. For example, an OCI layout may contain the following tags:In this case, given the command
oras repo tags --oci-layout-path layout-dir test.com/bar
, the output would beas
v1
is the tag under the repositorytest.com/bar
.oras repo tags
command now has three functionalities (list tags, list associated tags and showing repo tags) and they are implemented in the code in a mixed way. I think it would be better if we can refactor the code.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 #1612
Please check the following list: