Skip to content

Commit fbb8392

Browse files
shayne-fletchermeta-codesync[bot]
authored andcommitted
ping_pong: audit tests (#2007)
Summary: Pull Request resolved: #2007 this completes the audit for ping_pong.rs. the single test here (test_sim_ping_pong) is V0-specific: it exercises the old multiprocess topology (`SystemActor` + `ProcActor` + `System::attach`) running over simulated networking. that model doesn't exist in V1, and while simnet itself is still available, there isn't a direct parity test to port — doing so would amount to adding new fault-injection coverage rather than closing a gap. the test is therefore annotated as V0-only. with this file done, the V0→V1 test audit across hyperactor_multiprocess is complete. every V0 test is now categorized as V0-only, V1-equivalent, or needing V1 coverage (the only gap was stop-timeout/abort, which has already been added to V1). V0 tests remain in place until hyperactor_multiprocess is removed, but they are now explicitly marked so it’s clear which parts of the tree are legacy. Reviewed By: dulinriley Differential Revision: D87931337 fbshipit-source-id: 7ac7bff4a644955043a8252a22bef3169b201d31
1 parent 60c5129 commit fbb8392

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

hyperactor_multiprocess/src/ping_pong.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ mod tests {
2929
use crate::proc_actor::spawn;
3030
use crate::system_actor::ProcLifecycleMode;
3131

32+
// V0-specific test - no V1 equivalent (but could be valuable).
33+
// Tests V0's multiprocess infrastructure (SystemActor, ProcActor,
34+
// System::attach) with simulated networking (simnet). Spawns 2
35+
// ProcActors, spawns PingPongActors on them, verifies cross-proc
36+
// message passing through simulated network channels.
37+
//
38+
// V1 port considerations:
39+
// - Simnet is available in hyperactor crate (not V0-specific)
40+
// - V1 port would test ProcMesh/ActorMesh with simulated channels
41+
// - Could validate mesh coordination, fault tolerance, network
42+
// delays
43+
// - Would be a *new* test capability, not equivalent coverage
44+
// - V1 already has real-process integration tests (adequate for
45+
// basic correctness)
46+
// - Main value would be deterministic fault injection testing
47+
// (network partitions, message loss, etc.)
48+
// - Decision: Not porting for coverage parity. Could revisit for
49+
// advanced fault scenario testing if needed.
3250
#[tracing_test::traced_test]
3351
#[tokio::test]
3452
async fn test_sim_ping_pong() {

0 commit comments

Comments
 (0)