Skip to content

fix discovery teardown#479

Merged
jdolitsky merged 6 commits intoopencontainers:mainfrom
waynr:fix-discovery-teardown
Nov 13, 2023
Merged

fix discovery teardown#479
jdolitsky merged 6 commits intoopencontainers:mainfrom
waynr:fix-discovery-teardown

Conversation

@waynr
Copy link
Copy Markdown
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
Copy Markdown
Member

pls sign commits

waynr added 2 commits October 12, 2023 12:14
…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>
@waynr waynr force-pushed the fix-discovery-teardown branch from e671dec to 5afc3ee Compare October 12, 2023 18:17
Copy link
Copy Markdown
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.

@sudo-bmitch sudo-bmitch added this to the v1.1.0 milestone Nov 1, 2023
@sudo-bmitch
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

waynr commented Nov 11, 2023

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

Copy link
Copy Markdown
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
@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