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

Deployment script deletes old deployments #710

Merged
merged 9 commits into from
Dec 17, 2024

Conversation

shihab-dls
Copy link
Collaborator

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

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.89%. Comparing base (0042db5) to head (1ce6515).
Report is 1 commits behind head on main.

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           
Components Coverage Δ
i24 SSX 72.69% <ø> (ø)
hyperion 96.88% <ø> (ø)
other 94.24% <ø> (ø)

Copy link
Contributor

@olliesilvester olliesilvester left a 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

utility_scripts/deploy/deploy_mx_bluesky.py Show resolved Hide resolved
utility_scripts/deploy/deploy_mx_bluesky.py Outdated Show resolved Hide resolved
utility_scripts/deploy/deploy_mx_bluesky.py Outdated Show resolved Hide resolved
utility_scripts/deploy/deploy_mx_bluesky.py Outdated Show resolved Hide resolved
utility_scripts/deploy/deploy_mx_bluesky.py Show resolved Hide resolved
utility_scripts/deploy/deploy_mx_bluesky.py Outdated Show resolved Hide resolved
utility_scripts/deploy/deploy_mx_bluesky.py Show resolved Hide resolved
utility_scripts/deploy/deploy_mx_bluesky.py Show resolved Hide resolved
Copy link
Contributor

@olliesilvester olliesilvester left a 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
Copy link
Contributor

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

@shihab-dls shihab-dls merged commit 48f9299 into main Dec 17, 2024
22 checks passed
@shihab-dls shihab-dls deleted the 272_deploy_deletes_old_deployments branch December 17, 2024 16:11
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