-
Notifications
You must be signed in to change notification settings - Fork 83
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
Enable Forward Compatibility methods and add tests #650
Conversation
c83a0a3
to
4da1b1f
Compare
Codecov Report
@@ Coverage Diff @@
## master #650 +/- ##
==========================================
+ Coverage 82.21% 82.42% +0.21%
==========================================
Files 88 88
Lines 18306 18308 +2
==========================================
+ Hits 15050 15091 +41
+ Misses 3256 3217 -39
|
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 looks good so far, except for weirdness in the harness methods which I expect you can simplify.
In a follow-up, could you please also add an integration test under test_vm/tests
661a748
to
fa17fb6
Compare
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
fa17fb6
to
d4b6998
Compare
Signed-off-by: Jakub Sztandera <[email protected]>
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. I would like @ZenGround0 to take a look if possible, but if he doesn't get to it in a couple of days, let's merge and he can review afterwards.
@@ -546,7 +550,7 @@ fn upgrade_bad_post_dispute() { | |||
let store = &MemoryBlockstore::new(); | |||
let policy = Policy::default(); | |||
let (v, sector_info, worker, miner_id, deadline_index, partition_index, _) = | |||
create_miner_and_upgrade_sector(store); | |||
create_miner_and_upgrade_sector(store, false); |
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.
Why not test v2 for these tests?
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.
because it is unrelated to the changes, I can add these tests if we want to.
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]> Signed-off-by: Jakub Sztandera <[email protected]>
) * Enable Forward Compatibility methods and add tests Signed-off-by: Jakub Sztandera <[email protected]> * Address review Signed-off-by: Jakub Sztandera <[email protected]> * Add tests for ReplicaUpdate2 Signed-off-by: Jakub Sztandera <[email protected]> * Remove duplicate pub use Signed-off-by: Jakub Sztandera <[email protected]> * Test v2 pre-commit in integration test Signed-off-by: Jakub Sztandera <[email protected]> Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]> Signed-off-by: Jakub Sztandera <[email protected]>
Resolves: #521
Resolves: #13