Skip to content
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

fix discovery teardown #479

Merged
merged 6 commits into from
Nov 13, 2023
Merged

Conversation

waynr
Copy link
Contributor

@waynr waynr commented Oct 10, 2023

Discovery test teardown was broken prior to this because it would attempt to
delete a blob before deleting at least five manifests left over from the setup
that still reference it. Most registries probably don't care about deleting
content that's referenced by other content, which is probably why this works
for others.

Also, I was seeing GET /v2/<name>/tags/list?n=0 requests and then out of
bounds indexing into the resulting slice because of the weird logic used to
calculate what the n parameter should be in the tag listing endpoint tests.

Fixes #457.

@mikebrow
Copy link
Member

pls sign commits

…list req

Signed-off-by: wayne warren <wayne.warren.s@gmail.com>
…te blobs, disregard 404 responses

Signed-off-by: wayne warren <wayne.warren.s@gmail.com>
Copy link
Contributor

@sudo-bmitch sudo-bmitch left a comment

Choose a reason for hiding this comment

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

Couple minor changes to align all the manifests.

conformance/03_discovery_test.go Show resolved Hide resolved
conformance/03_discovery_test.go Show resolved Hide resolved
conformance/03_discovery_test.go Show resolved Hide resolved
conformance/03_discovery_test.go Show resolved Hide resolved
@sudo-bmitch sudo-bmitch added this to the v1.1.0 milestone Nov 1, 2023
@sudo-bmitch
Copy link
Contributor

@waynr do you have time to work on the changes requested? If not, I can take a stab at it.

waynr and others added 4 commits November 10, 2023 18:40
Co-authored-by: Brandon Mitchell <git@bmitch.net>
Signed-off-by: wayne <wayne.warren.s@gmail.com>
Co-authored-by: Brandon Mitchell <git@bmitch.net>
Signed-off-by: wayne <wayne.warren.s@gmail.com>
Co-authored-by: Brandon Mitchell <git@bmitch.net>
Signed-off-by: wayne <wayne.warren.s@gmail.com>
Co-authored-by: Brandon Mitchell <git@bmitch.net>
Signed-off-by: wayne <wayne.warren.s@gmail.com>
@waynr
Copy link
Contributor Author

waynr commented Nov 11, 2023

@sudo-bmitch I accepted your suggested changes, thanks for the reminder!

Copy link
Contributor

@sudo-bmitch sudo-bmitch left a comment

Choose a reason for hiding this comment

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

LGTM. Should be squashed but that can be done on the merge if it's easier.

@jdolitsky jdolitsky merged commit 91ba954 into opencontainers:main Nov 13, 2023
5 checks passed
@jdolitsky jdolitsky mentioned this pull request Jan 11, 2024
8 tasks
@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.

Conformance Test: References teardown should expect 404 response
4 participants