Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(saas_isolation): remove leftover pin-after-turn experiment

Steven Enamakelff060c3107a7
diff --git a/tests/saas_isolation/storm.rs b/tests/saas_isolation/storm.rs
index d00c511a68..35421614f6 100644
--- a/tests/saas_isolation/storm.rs
+++ b/tests/saas_isolation/storm.rs
@@ -129,42 +129,3 @@ fn an_eviction_storm_keeps_live_turns_controllable() {
}
eprintln!("[isolation] storm took {:.1}s", started.elapsed().as_secs_f64());
}
-
-#[test]
-fn zz_experiment_pin_after_turn() {
- let d = deployment(true);
- let llm = mock_llm();
- let node = start_node_logging(&d, "1", None, "max_profiles_open = 1\nidle_evict_secs = 0\n",
- Some(llm.port), "info,openhuman_core::profiles=debug,openhuman_core::web_chat=debug");
- for (user, name) in USERS.iter().enumerate() {
- provision(&client(), &node.base, name);
- operator(&node, "openhuman.profiles_set_credential",
- json!({ "profile_id": name, "kind": "session", "token": credential(user) }));
- }
- let t0 = Instant::now();
- let (s, _, b) = call(&node, "bob", "openhuman.threads_upsert", json!({"id":"x","title":"x","created_at":"2026-10-10T00:00:00Z"}));
- eprintln!("bob upsert {s} {b}");
- let (s, _, _) = call(&node, "carol", "core.ping", json!({}));
- eprintln!("carol after bob upsert only: {s}");
- let (s, _, _) = call(&node, "bob", "openhuman.channel_web_chat", json!({"client_id":"c1","thread_id":"x","message":"hi"}));
- eprintln!("bob chat {s}");
- wait_until("bob turn", &node, Duration::from_secs(30), || !active(&node, "bob", "x"));
- eprintln!("bob turn done at {:?}; backend requests so far {}", t0.elapsed(), llm.recorded().len());
- let before = llm.recorded().len();
- for _ in 0..40 {
- let (s, _, _) = call(&node, "carol", "core.ping", json!({}));
- if s == 200 {
- eprintln!("carol admitted at {:?}", t0.elapsed());
- let log = std::fs::read_to_string(&node.log).unwrap_or_default();
- for l in log.lines().filter(|l| l.contains("DEBUGSENDERS")) { eprintln!("{l}"); }
- return;
- }
- std::thread::sleep(Duration::from_millis(500));
- }
- eprintln!("carol never admitted; inference requests: {}", llm.recorded().iter().filter(|r| r.is_inference()).count());
- let paths: Vec<String> = llm.recorded().iter().skip(before).map(|r| r.path.clone()).collect();
- eprintln!("backend paths: {paths:?}");
- let log = std::fs::read_to_string(&node.log).unwrap_or_default();
- let pins: Vec<&str> = log.lines().filter(|l| l.contains("DEBUGSENDERS") || l.contains("DEBUGBRIDGE") || l.contains("did not drain")).collect();
- eprintln!("PINS {}", pins[pins.len().saturating_sub(5)..].join("\n"));
-}