-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 tests] also colocate vfns and vns for the pfn tests #9137
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.
Looks good! Only concern is reducing the number of PFNs for all tests 🤔
testsuite/forge-cli/src/main.rs
Outdated
@@ -1899,7 +1899,7 @@ fn pfn_const_tps( | |||
.with_initial_validator_count(NonZeroUsize::new(7).unwrap()) | |||
.with_initial_fullnode_count(7) | |||
.with_emit_job(EmitJobRequest::default().mode(EmitJobMode::ConstTps { tps: 100 })) | |||
.add_network_test(PFNPerformance::new(add_cpu_chaos, add_network_emulation)) | |||
.add_network_test(PFNPerformance::new(2, add_cpu_chaos, add_network_emulation)) |
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 are we reducing this? Do you require it for more accurate mempool experiments? If so, could we make this configurable? It's helpful on the state sync side because it allows us to test more cases.
608e07c
to
7786549
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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7786549
to
712aa1e
Compare
add all PFNs as a single colocated group
712aa1e
to
f237f14
Compare
let validator_peer_ids = swarm.validators().map(|v| v.peer_id()).collect::<Vec<_>>(); | ||
let fullnode_peer_ids = swarm.full_nodes().map(|v| v.peer_id()).collect::<Vec<_>>(); | ||
let (vfn_peer_ids, pfn_peer_ids) = | ||
fullnode_peer_ids.split_at(fullnode_peer_ids.len() - self.num_pfns as usize); |
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.
Discussed offline with Brian: all the PFNs have index set to 0, so this split will not work.
7d199d1
to
3a974b7
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.
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.
LGTM
This reverts commit 3a974b7.
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.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
### Description For the PFN tests, also colocate VFNs and VNs, and add the PFNs as a single colocated group. ### Test Plan Ensure the PFNs have the correct index (larger than the VFNs), via forge.
### Description For the PFN tests, also colocate VFNs and VNs, and add the PFNs as a single colocated group. ### Test Plan Ensure the PFNs have the correct index (larger than the VFNs), via forge.
Description
For the PFN tests, also colocate VFNs and VNs, and add the PFNs as a single colocated group.
Test Plan
Ensure the PFNs have the correct index (larger than the VFNs), via forge.