-
Notifications
You must be signed in to change notification settings - Fork 27
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
Sync alienv to CVMFS automatically #1459
base: master
Are you sure you want to change the base?
Conversation
As discussed, make sure you back up the old version before deployment of the new one, so that people can use the "safe" version in case of accident. |
Is this okay to merge? |
publish/aliPublishS3
Outdated
# Create backup with timestamp if files are different | ||
if not filecmp.cmp(new_alienv, old_alienv, shallow=False): | ||
timestamp = datetime.now().strftime("%Y%m%d-%H%M%S") | ||
backup_alienv = f"/cvmfs/alice.cern.ch/bin/alienv.safe-{timestamp}" |
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.
Maybe we should have a separate folder for the backups (or limit the backups to just a few).
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.
Please followup the remaining comments.
I tried to make it as crash resistant as possible, so hopefully it doesn't
interfere with the regular publishing
CC @ktf