Skip to content

Add handling of unknown fields to conformance tests#311

Merged
jdolitsky merged 1 commit intoopencontainers:mainfrom
imjasonh:conformance-unknown-fields
Dec 1, 2021
Merged

Add handling of unknown fields to conformance tests#311
jdolitsky merged 1 commit intoopencontainers:mainfrom
imjasonh:conformance-unknown-fields

Conversation

@imjasonh
Copy link
Copy Markdown
Member

@imjasonh imjasonh commented Dec 1, 2021

This change also removes the direct dependency on Go types defined in
the image-spec repo, since this made it difficult to define new fields.

Instead, the types are copied into this repo and modified to remove
unused fields, and add a new unspecified field for use in the test.

Signed-off-by: Jason Hall jasonhall@redhat.com


Note: I haven't run this against any real registries yet, I wanted to get feedback about the general direction before proceeding too much further.

cc @jdolitsky our beloved conformance czar 👑

This change also removes the direct dependency on Go types defined in
the image-spec repo, since this made it difficult to define new fields.

Instead, the types are copied into this repo and modified to remove
unused fields, and add a new unspecified field for use in the test.

Signed-off-by: Jason Hall <jasonhall@redhat.com>
@imjasonh imjasonh force-pushed the conformance-unknown-fields branch from f2548ed to 5de2081 Compare December 1, 2021 14:31
Copy link
Copy Markdown
Contributor

@jdolitsky jdolitsky left a comment

Choose a reason for hiding this comment

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

Fine with the general direction. Also tested this against bundlebar and zot with no issues

@jdolitsky jdolitsky merged commit 05097b7 into opencontainers:main Dec 1, 2021
@jdolitsky jdolitsky mentioned this pull request Sep 15, 2022
@sudo-bmitch sudo-bmitch mentioned this pull request Feb 1, 2024
8 tasks
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.

3 participants