Skip to content

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

test(storage): log inline blob size and latency in cdylib test

Steven Enamakeldb77e9d86a74
diff --git a/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs b/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
index 9b7c5551c7..7d492a3232 100644
--- a/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
@@ -493,7 +493,10 @@ async fn a_blob_over_the_frame_cannot_go_inline() {
// nothing; the way for a big body is `PutStream` (#7781).
for (len, name) in [(2usize * 1024 * 1024, "over-cap"), (9_000_000, "over-frame")] {
let key = format!("tinyjuice_ccr/{name}");
+ eprintln!("[cdylib-test] inline blob {name} ({len} bytes)");
+ let started = std::time::Instant::now();
let big: Value = rig.probe.call("PutBlob", (key.as_str(), len)).await.unwrap();
+ eprintln!("[cdylib-test] {name} answered in {:?}: {}", started.elapsed(), big.to_string().chars().take(200).collect::<String>());
assert!(big.get("err").is_some(), "{name}: an oversized inline blob must fail: {big}");
let handle = rig.backend.for_scope(&rig.scope("tinyjuice")).unwrap();
assert!(handle.blobs().head(&key).await.unwrap().is_none(), "{name}");