opencontainers / distribution-spec

OCI Distribution Specification
https://opencontainers.org
Apache License 2.0
823 stars 202 forks source link

Question regarding refferres API conformance tests for push #518

Closed suleimi closed 6 months ago

suleimi commented 7 months ago

Hello!

With the release of v1.1.0 of the spec it seems there isn't the option to skip the conformance tests related to the referrers API alone. From https://github.com/opencontainers/distribution-spec/blob/main/spec.md#backwards-compatibility it seems the referrers API is optional .

Is my understanding correct that the referrers API is optional (and clients of registries will be responsible to implement the fallback if the API is not available)? and if this is indeed the case can we expose a flag in the conformance tests to enable older registries (that don't implement the referrers API) to skip referrers API tests specifically and not just all the service-discovery tests?

sudo-bmitch commented 7 months ago

The backward compatibility is for clients working with registries that implement the 1.0.x version of the spec. If you do not want to implement the latest APIs, and only want to support OCI 1.0.x, you can run older releases of the conformance tests.