-
Notifications
You must be signed in to change notification settings - Fork 31
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
keep-at-least parameter accounts only versions marked for deletion, not all versions #67
Comments
You're saying we're keeping too many images, when some tags are filtered out? |
When i'm reading the name of param "keep-at-least", i expect that all of images will be accounted in this number, not only marked for deletion. So yes, correct, too many images. May be it is better to rename this param or make effect of this parameter more predictable. |
Would you like to contribute a fix? Sounds like we could change the counting a little, and maybe have two iterations over the set of images, and it should be possible to make this work as you assumed. |
#68 |
The change in #68 has created a regression, it caused us to delete 25 images that would otherwise not be deleted. Here's the CI action run the day after the release of v2.1.3. Our configuration is:
Given On that note, it would be nice to have a failsafe option where you can configure the highest amount of deleted images. If that amount is exceeded I'd expect the action to fail, which would cause a maintainer to be notified about an anomaly. It would certainly make the action safer since a bug can have devastating results. |
Both a fix and a failsafe would be welcome. I'm unavailable for the next few days, but if anyone is able to put together either, I'll make sure they're reviewed and merged asap 👍 |
Hi everyone, I'm closing in on a fix for most of the open issues, and after reviewing all of our settings I'm not really seeing the benefit of a A bit of necessary context:
Reasons
After the rewrite, you will be able to specify something like:
Where specifically the So |
@lovromazgon, your problem will be addressed in the new release 👍 Sorry about that. |
I'll describe our use case in Conduit. We cut nightly releases every night, that include creating a docker image among other assets. Nightlies are only relevant for a short period of time, if we want to try out or showcase a feature we're working on, maybe testing regressions, performance improvements etc. We don't want to keep them around for too long, so we use this action to clean up older nightlies. Now, in our case we have a regular nightly release schedule, so we know exactly how many releases happened in a timespan. Specifying Once again, to be clear, I personally don't care about this functionality, as |
Hmm that's a good point @lovromazgon. I think one valid use-case that resembles your example would be if you want to keep the |
This issue has been fixed in the v3 release 👍 Sorry for the delay! The migration guide for v3 is included in the release post 👍 If you run into any issues, please share them in the issue opened for tracking the v3 release |
In my opinion, this is not that behavior what user expects to see.
The text was updated successfully, but these errors were encountered: