-
Notifications
You must be signed in to change notification settings - Fork 2
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
Deployment script deletes old deployments #710
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #710 +/- ##
=======================================
Coverage 86.89% 86.89%
=======================================
Files 102 102
Lines 6908 6908
=======================================
Hits 6003 6003
Misses 905 905
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks mostly good, just some minor comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good!
for deployment in sorted_deployments[MAX_DEPLOYMENTS:] | ||
} | ||
|
||
# Removes old deployments with symlinks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know i just approved but I think this comment is a bit misleading actually - sounds like we're deleting the deployments with symlinks
These changes add a --prune-deployments flag, keeping 4 most recent deployments, and deleting the excess if not symlinked to hyperion_stable or hyperion_latest, following #272