-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve OS migration script #251
Conversation
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.
LGTM 👍 , except the commit()
not respecting the dryrun flag.
@@ -1013,6 +1013,7 @@ def create_repository_folders(self, items): | |||
self.start_bundle_import(tmpdirname) | |||
|
|||
shutil.rmtree(tmpdirname) | |||
transaction.commit() |
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.
These should respect options.dryrun
.
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.
True, thanks!
As we anyway do the migration on a copy of the deployment, we can take the risk of committing during the migration to speed it up.
5767f0a
to
98c9501
Compare
All done. As discussed, the last commit will be tested in the next test-migration, see if it really speeds the migration up. |
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.
LGTM 👍
This would access the blobs, which we do not have during the migration.
@lukasgraf can you have a look at the last commit? I had to exclude reindexing the SearchableText as we won't have the blobs during migration. |
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.
LGTM 👍
Tests were also updated, see 4teamwork/opengever.core#6792
For https://4teamwork.atlassian.net/browse/CA-1472