-
Notifications
You must be signed in to change notification settings - Fork 211
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
chore: Client Database Migrations (without state machine migrations) #4103
chore: Client Database Migrations (without state machine migrations) #4103
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4103 +/- ##
==========================================
- Coverage 58.36% 58.16% -0.21%
==========================================
Files 192 192
Lines 42646 43034 +388
==========================================
+ Hits 24890 25029 +139
- Misses 17756 18005 +249 ☔ View full report in Codecov by Sentry. |
35b017f
to
7534289
Compare
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.
Generally LGTM, with some minor comments.
One thing that it's not doing is touching active executor states. Do you think it's not neccessary (because meta on it is serialized in json, so it can be somewhat gradually handled?)
Video of my review: https://youtu.be/IwAWRa889jA
Thanks for the review!
Nope, I think this does need to be handled. I just wanted to do it in a separate PR since this one was rather big already. |
Big recovery refactor landed, good time to rebase and land. |
7534289
to
f7e9e7d
Compare
I added the |
f7e9e7d
to
16d027c
Compare
1def124
to
c656731
Compare
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.
Not the cleanest commit history, but an important step towards client version migrations 🎉
@@ -1,4 +1,4 @@ | |||
mod db; | |||
pub mod db; |
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'm ok with making this pub, but is there a reason for migration tests not to live in their respective crate (client or server)? We mainly have the tests crates for integration-testing client and server together.
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 originally did it just so all of the migration tests were in the same spot, but now I'm somewhat regretting it as it made me change all of these things to pub. Would you prefer if I moved them back? Probably best done in a separate 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.
I agree it's not worth uprooting this PR. Let's try to tidy up public interfaces in a separate PR. Not super high priority.
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.
Will leave this for now and handle in separate PR
c656731
to
2335e8c
Compare
2335e8c
to
7ee0d4a
Compare
Step 1 of #3417
This PR adds the equivalent tests and functions for client db migrations that the server side has.
Best to review this PR per commit, each module is a separate commit.
State machine db migrations will come next.