-
Notifications
You must be signed in to change notification settings - Fork 121
Have storage migrations done explicitly #12568
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
Conversation
542606e to
f1250df
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12568 +/- ##
==========================================
- Coverage 90.55% 90.55% -0.01%
==========================================
Files 435 435
Lines 29940 29950 +10
==========================================
+ Hits 27112 27121 +9
- Misses 2828 2829 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
64f6475 to
83fe903
Compare
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
|
Add test using explicit storage migration Add option to postpone storage reload until migration done Fixup storage migration tests Avoid migration overwriting version information for backups
83fe903 to
b04fe58
Compare
| @staticmethod | ||
| def perform_migration(path: Path) -> None: | ||
| if LocalStorage.check_migration_needed(path): | ||
| with LocalStorage(path, Mode("w"), True) as storage: |
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.
This is a lot better than what is currently here, but would it be hard to get more separation and make the migration happen without opening a write storage storage?
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.
Perhaps. Regardless I think that should be part of a different PR.
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.
👍 Can you set up a followup issue when merging this?
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.
yngve-sk
left a comment
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
Issue
Resolves #12518
Approach
Short description of the approach
(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'just rapid-tests')When applicable