-
Notifications
You must be signed in to change notification settings - Fork 234
Improve manifests cleanup #597
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
base: main
Are you sure you want to change the base?
Conversation
Define functions to create and delete manifests. This way multiple issues are addressed: - Code readability improves a lot. - Response is strictly validated. - Keep track of created manifests to cleanup them all during teardown. Previously list of manifests to be cleanup was manually maintained and was error prone. Manifests are deleted in the reverse creation order to avoid dependency issues. This is a pure refactoring, no external changes can be observed. Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
Define functions to create and delete blobs. This way multiple issues are addressed: - Code readability improves a lot. - Response is strictly validated. - Keep track of created blobs to cleanup them all during teardown. Previously list of blobs to be cleanup was manually maintained and was error prone. Blobs are deleted in the reverse creation order to avoid dependency issues. This is a pure refactoring, no external changes can be observed. Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
@sudo-bmitch no I haven't seen it. You already recommended me over 1 year ago to wait for a refactoring of the conformance tests. But not seeing any movement for months and seeing in your personal webpage that you are semi-retired, I thought it wouldn't happen. So I started it before #588 was started. I will check if my fixes are already addressed in that PR. How close is that PR to get merged? Because my fixes are small steps that bring something and could possibly be merged straight away if that PR is going to need some time. |
Work on the v2 branch started over a year ago (the commit timestamps are all thrown off from rebases). I'm still an active maintainer here.
There's a list of remaining tasks in the PR. Once they are done, I'm guessing it will take time for the maintainers to review.
Looking at this diff, we have different definitions of "small steps". 😄 |
Then it's probably the same you mentioned 1 year ago, I thought it was a new one. If it's been open for over a year, I don't see a reason for blocking other people from improving the currently available setup. It also helps reducing the time pressure on the new version. I don't expect you to invest much time of it. I'm trying to prepare the patches to simplify the review as much as possible.
I mean "small" from a functional point of view. This step is mostly a refactoring, with a small fix (that nothing is left behind). |
Running the tests against a local ZOT registry it is possible to observe that the tests don't delete properly all pushed manifests and blobs. This PR introduces a list to keep track of pushed manifests and blobs to properly clean them up on test termination.
Additionally reducing code duplication through the introduction of functions for pushing and deleting manifests and blobs.