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

cmd-cloud-prune: merge container-prune into cloud-prune #3940

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

gursewak1997
Copy link
Member

Merged the code of the container gc into the cloud one, and updated builds.json. Please go through the tags in base-oscontainer data in meta.json and prune every tag except the stream name, which are moving tags.

@gursewak1997 gursewak1997 added the hold waiting on something label Nov 13, 2024
@gursewak1997 gursewak1997 removed the hold waiting on something label Nov 13, 2024
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

Initial round of review

src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
subprocess.check_output(skopeo_args, stderr=subprocess.STDOUT)
print("Image deleted successfully.")
except subprocess.CalledProcessError as e:
raise Exception("An error occurred during deletion:", e.output.decode("utf-8"))
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if there is a way for us to gracefully exit here i.e. there was a lot of work done before this that would be nice to save (via updating builds.json). But maybe that's not too important.

Copy link
Member Author

@gursewak1997 gursewak1997 Nov 15, 2024

Choose a reason for hiding this comment

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

Agreed, and this applies to other actions as well. Initially, we discussed this and concluded that updating the builds.json file in every run didn’t make much sense. The focus was to minimize updates to the file with any kind of failure.
Ideally, subsequent runs shouldn’t take more than a few minutes, apart from the first iteration for each stream. Hence, it didn’t seem like a critical concern.

src/cmd-cloud-prune Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

maybe we should consider renaming this coreos-prune or something since it's doing it all now.

Let's only do that in a separate PR (or maybe one final commit once we're at the end of code review).

Copy link
Member Author

Choose a reason for hiding this comment

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

Will open another PR for this once this gets merged in.

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

Looking pretty good. A few more comments

src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
src/cmd-cloud-prune Outdated Show resolved Hide resolved
dustymabe
dustymabe previously approved these changes Nov 15, 2024
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

Feel free to merge once testing looks good.

src/cmd-cloud-prune Outdated Show resolved Hide resolved
Merged the code of the container gc into the cloud one, and update builds.json. Go through the tags
in base-oscontainer data in meta.json and prune every tag except the stream-name itself which
are moving tags.
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@gursewak1997 gursewak1997 merged commit 9708ec5 into coreos:main Nov 18, 2024
5 checks passed
@gursewak1997 gursewak1997 deleted the merge-containers-gc branch November 18, 2024 03:18
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.

2 participants