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
[forge] Add a test for validation set changes #4279
Conversation
b1a072b
to
c6cd22f
Compare
c6cd22f
to
80ab611
Compare
a3b2932
to
92a97c5
Compare
@zcchahaha - Is this ready for review? |
@sitalkedia Not yet. Still try to figure out some dependencies issues. https://aptos-org.slack.com/archives/C036SHTFHGR/p1663364319592519 |
226409d
to
7a4cb71
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1e9f946
to
023620c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
023620c
to
137eb93
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
eb56c27
to
45b5278
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
45b5278
to
71011b9
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Some comments inline, but overall looks good
|
||
let mut cli = runtime.block_on(async { | ||
CliTestFramework::new( | ||
swarm.validators().next().unwrap().rest_api_endpoint(), |
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.
use rest_client.clone() here?
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.
The parameter is a URL, not a rest client.
.await | ||
.unwrap(); | ||
|
||
reconfig( |
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.
oh, you should probably do reconfig once at the end, this will create bunch of epochs.
we also want to test that they can all ask to leave simultaneously
in the follow-up randomized test you are mentioning below, you can randomly select how many validators to leave simulatenously, before reconfig.
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.
Added a reconfig after the loop.
for operator_index in validator_cli_indices.iter().rev().take(num_validators / 3) { | ||
cli.join_validator_set(*operator_index, None).await.unwrap(); | ||
|
||
reconfig( |
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.
same, to reconfig once , after the loop
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.
ditto
71011b9
to
dbf36e3
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
Description
add_move_file
function compilation conditional due to some move dependencies issues when introducingCliTestFramework
to forge. https://aptos-org.slack.com/archives/C036SHTFHGR/p1663364319592519This change is