-
Notifications
You must be signed in to change notification settings - Fork 184
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
ci: parameterize registry and add zot as another candidate #709
Conversation
Looks like there is very docker-specific env setup. Should probably standardize on that also. |
The env setup now is based on mount files in distribution storage layout. ZOT storage is designed based on OCI layout so it's not compatible. We will definitely standardize the setup process when CLI supports OCI layout target. |
Also specs related to docker images will be covered in ORAS E2E tests, @rchincha how to run those based on ZOT? |
@rchincha Hi Ramkumar, it seems this PR make the E2E testing fail. It has some tech limitations to adding Zot to the CI. BTW, I would like to add the Zot registry to the ORAS quick start, see oras-project/oras-www#71. |
Trying to understand the test setup a bit more. It appears data is manually loaded, which is unlikely to work with every registry. |
Yes, once oras CLI supports OCI layout, we can store test data in OCI layout. I created an issue for that. |
You can also do:
Basically two parts:
|
@rchincha Thanks for creating this PR for proposing zot as a candidate registry for oras E2E testing. In our current plan, we are using github.com/oras-project/distribution, which is a specially crafted fork of github.com/distribution/distribution, for the E2E testing. To achieve the best quality of E2E testing, we can't use
|
c554d34
to
f3e9d30
Compare
@shizhMSFT, behavior of As the e2e stands today, understood that it is tightly coupled to docker registry and sounds like you want to leave the e2e alone. My suggestion (also see above) would be to break the workflow into two parts - a registry-specific setup, after which oras makes its HTTP API calls. Updating the PR accordingly. See if this works for you. |
Codecov Report
@@ Coverage Diff @@
## main #709 +/- ##
=======================================
Coverage 72.12% 72.12%
=======================================
Files 14 14
Lines 513 513
=======================================
Hits 370 370
Misses 114 114
Partials 29 29 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This statement is not true.
That's why we made a testing registry (github.com/oras-project/distribution) and only for testing, which supports OCI and Docker. Although it is not suitable for production, we can easily modify it to test all scenarios. Again, we cannot use Docker-only registries since they don't support OCI. Similarly, we cannot use OCI-only registries since they don't support Docker. |
@shizhMSFT thanks for the clarification. Once this PR passes CI, maybe it can parameterized to included other registries - docker or OCI. |
Fixed the PR. Hopefully should pass the CI checks this time. |
3e418eb
to
525d44c
Compare
ca9acc8
to
2d37e58
Compare
rchincha#1 |
ba9bb05
to
11ff182
Compare
rchincha#1 |
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
PR updated after the oras-go bump. |
notaryproject/notation#493 |
/cc @qweeah |
run: | | ||
# upload images, zot can serve OCI image layouts directly like so | ||
mkdir /tmp/zot | ||
skopeo copy --format=oci docker://busybox:latest oci:/tmp/zot/busybox:latest |
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.
Seems like we could do this later with oras
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Closing as ZOT is already used as E2E backend since v1.1.0 |
Signed-off-by: Ramkumar Chinchani rchincha@cisco.com