-
Notifications
You must be signed in to change notification settings - Fork 988
Deploying a function does not respect the cleanup policy and deletes old containers #8421
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
Comments
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information. |
Hey @canbal, I'm trying to reproduce this, but so far previous revisions are not being deleted on successful function deployments. Here's the clean up policy I have set up: And here's the revisions for the function. The container images from each revision is still available when opening the link Based on the clean up policy you have set, only artifacts older than 10 days should be deleted. Just to verify, in your case, after running By any chance, do you have any other clean up policy set up? |
Thanks for checking @aalej. I don't have another clean up policy set up, the one I shared is the only one. However I have a couple of new observations:
Is there a local cache I have to clear, or is it possible that the policy somehow isn't properly covering specific functions? If there is a way to run a gcloud command or run a script to fetch the policy that the cli tool is relying on, I'd be happy to run it and report back. |
@aalej not sure what changed, but it seems like the older images are now retained even for the existing functions. We can close this issue. |
[REQUIRED] Environment info
firebase-tools: 14.1.0
Platform: macOS
[REQUIRED] Test case
This has been supported in the past as an experimental configuration since #6861, but #8324 has removed it with the assumption that cleanup policy should be respected instead. In my case the clean-up policy is not respected and the new function deploys always destroy previous containers.
For reference, here's the policy I have set in my project:
[REQUIRED] Steps to reproduce
firebase deploy --only functions:myFunction
[REQUIRED] Expected behavior
Any revision that was created before the clean-up period comes along should be available
[REQUIRED] Actual behavior
The previous revisions are all removed immediately followed by a successful new deployment
The text was updated successfully, but these errors were encountered: