-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fails as it tries to delete the same package twice #37
Comments
I believe it's related to #36. Where multiple mult architecture manifests point to the same underlying image (which didn't not change between builds). I'm working on a fix for that right now. |
I've refactored the core logic df5575c, during which I discovered that this issue was that the child images where not being guarded against this scenario where different multi arch images reference the same platform image digest. I believe I've fixed this issue now (currently on main branch). I'll hopefully release later this week. If there is any way to test this that would be great. ghcr-cleanup-action/src/main.ts Line 258 in df5575c
|
Hi, I gave it a try in on Note, that the registry copy was created with |
That's great to hear. I'm planning to release v1.0.8 later this week to incorporate the latest fixes. |
Looking at your test run yesterday, I think it didn't recreate the same setup, likely as the images copied didn't contain references to the same platform images. Which your original log showed. I've implemented an additional test 7f993f3 which outputs the following action log, which is very close to your original (except fixed):
The important change is that it doesn't delete platform images where they are in use elsewhere. Which can happen by buildx cached images apparently. |
Thanks, much appreciated. Recreating these conditions on a registry is challenging, as you cannot easily create a 1 to 1 copy of an existing one. And you also don't want to test new features against production repos (we learned that the hard way when applying the |
That's why I came here also, haha. I couldn't find an action that didn't eat packages and seamlessly worked in forked repos. I've released v1.0.8/v1 ff99a6e, so closing this issue. Thanks for your feedback/help. |
Hi,
we tried to apply this action to the siemens/kas repository, but there it fails as it tries to delete the same package twice (in the same run):
Full CI output: https://github.com/siemens/kas/actions/runs/10011297384/job/27675632510
The text was updated successfully, but these errors were encountered: