You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added crates/spur-acp/tests/native_shutdown_madsim.rs, gated with #![cfg(madsim)].
Mirrored cfg-gated madsim / madsim-tokio dev-deps in crates/spur-acp/Cargo.toml.
Added a small pure timing helper at crates/spur-acp/src/connection/native_shutdown.rs; no real subprocess or libc::kill calls are exercised by the harness.
Verified:
./scripts/spur-cargo check -p spur-acp exited 0.
RUSTFLAGS="--cfg madsim" ./scripts/spur-cargo test -p spur-acp --test native_shutdown_madsim exited 0 with 2 tests passed.
Determinism check: two runs with MADSIM_TEST_SEED=4242 produced the same test-level output and pass order; wrapper/cache counters differed as expected.
Recommendation: before replicating across more grace sites, consider a shared spur-test-madsim helper module/crate for the seed assertion and timing/event assertions. The harness shape is already repeating across crates.
PROGRESS: Replicated the madsim bounded-grace harness for the session notification-pump retire path in commit 3fa8052a. Added crates/spur-core/tests/session_pump_retire_madsim.rs to prove the 99 ms notification is delivered, the 101 ms notification is dropped after the 100 ms retire grace, and the pump is explicitly aborted at the deadline when the producer remains alive.
Activity
kevintruong commentedon May 27, 2026
[[spur-signal v1]]
{"signal_id":"3b1df65e-c984-48d8-9f48-3e3a44e1b68e","kind":"scope_drift","severity":0.82,"reason":"Required verification commands fail before the madsim test because cargo check -p spur-core compiles spur-pm, whose existing unsafe statfs blocks violate the workspace unsafe_code deny lint.","estimated_subtasks":1}
kevintruong commentedon May 27, 2026
Progress update for native shutdown madsim harness:
efd72225 test(spur-acp): #19 add madsim native shutdown timingcrates/spur-acp/tests/native_shutdown_madsim.rs, gated with#![cfg(madsim)].madsim/madsim-tokiodev-deps incrates/spur-acp/Cargo.toml.crates/spur-acp/src/connection/native_shutdown.rs; no real subprocess orlibc::killcalls are exercised by the harness../scripts/spur-cargo check -p spur-acpexited 0.RUSTFLAGS="--cfg madsim" ./scripts/spur-cargo test -p spur-acp --test native_shutdown_madsimexited 0 with 2 tests passed.MADSIM_TEST_SEED=4242produced the same test-level output and pass order; wrapper/cache counters differed as expected.Recommendation: before replicating across more grace sites, consider a shared
spur-test-madsimhelper module/crate for the seed assertion and timing/event assertions. The harness shape is already repeating across crates.kevintruong commentedon May 27, 2026
PROGRESS: Replicated the madsim bounded-grace harness for the session notification-pump retire path in commit 3fa8052a. Added
crates/spur-core/tests/session_pump_retire_madsim.rsto prove the 99 ms notification is delivered, the 101 ms notification is dropped after the 100 ms retire grace, and the pump is explicitly aborted at the deadline when the producer remains alive.test(spur-core): #19 add madsim notification grace spike
test(spur-acp): #19 add madsim native shutdown timing
test(spur-core): #19 replicate session pump retire grace
test(spur-core): #19 add peer mailbox drain madsim coverage
test(spur-test-madsim): #19 add shared cfg(madsim) test helper crate
test(spur-core): #19 add madsim notification grace spike
test(spur-acp): #19 add madsim native shutdown timing
test(spur-core): #19 replicate session pump retire grace
test(spur-core): #19 add peer mailbox drain madsim coverage
test(spur-test-madsim): #19 add shared cfg(madsim) test helper crate
test(spur-core): #19 add madsim notification grace spike
test(spur-acp): #19 add madsim native shutdown timing
test(spur-core): #19 replicate session pump retire grace
test(spur-core): #19 add peer mailbox drain madsim coverage
test(spur-test-madsim): #19 add shared cfg(madsim) test helper crate