Skip to content

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

test(storage): align tinyjuice blob prefix in fixtures

Steven Enamakela13e2de74471
diff --git a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
index 4736157836..ac0d510951 100644
--- a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
@@ -141,7 +141,7 @@ fn tinyjuice_reaches_only_its_blob_prefix() {
&grant,
Object::Blobs,
"Get",
- json!({"key": "tinyjuice_ccr/abc"})
+ json!({"key": "tinyjuice_ccr_private/abc"})
));
}
diff --git a/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs b/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs
index 2b3e2e2a46..454645e05d 100644
--- a/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs
@@ -31,7 +31,9 @@ async fn a_blob_over_the_bus_frame_round_trips_through_a_peer_bound_stream() {
let rig = rig("tinyjuice").await;
// 20 MiB: over the 16 MiB frame no inline call could carry.
let len = 20 * MIB;
- let stored = rig.member("StreamPut", ("tinyjuice_ccr/streamed", len)).await;
+ let stored = rig
+ .member("StreamPut", ("tinyjuice_ccr/streamed", len))
+ .await;
assert_eq!(stored["ok"]["len"], len, "{stored}");
// It is in the module's own scope, byte for byte.
let handle = rig.backend.for_scope(&rig.scope("tinyjuice")).unwrap();
@@ -89,7 +91,9 @@ async fn a_streamed_blob_is_still_bound_by_the_grant_and_the_length() {
"{denied_get}"
);
// The module keeps working after a refusal.
- let after = rig.member("StreamPut", ("tinyjuice_ccr/after", 3 * MIB)).await;
+ let after = rig
+ .member("StreamPut", ("tinyjuice_ccr/after", 3 * MIB))
+ .await;
assert_eq!(after["ok"]["len"], 3 * MIB, "{after}");
}
@@ -119,7 +123,9 @@ async fn an_inline_blob_no_frame_can_carry_fails_fast_instead_of_hanging() {
.await
.unwrap()
.is_none());
- let after: Value = rig.member("PutBlob", ("tinyjuice_ccr/after", 2048usize)).await;
+ let after: Value = rig
+ .member("PutBlob", ("tinyjuice_ccr/after", 2048usize))
+ .await;
assert!(
after.get("ok").is_some(),
"the module keeps working: {after}"
@@ -241,7 +247,10 @@ async fn a_second_module_cannot_read_or_take_the_first_modules_streams() {
.peer_proxy(0, "Blobs")
.call(
"PutStream",
- (json!({"key": "tinyjuice_ccr/hijacked", "len": MIB}), reference),
+ (
+ json!({"key": "tinyjuice_ccr/hijacked", "len": MIB}),
+ reference,
+ ),
)
.await;
assert!(
diff --git a/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs b/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
index 6e23460402..a5a8c9ac4e 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
@@ -3,7 +3,7 @@
//!
//! The compress-cache-retrieve tier used to write each offloaded original to
//! `<workspace>/.tokenjuice/ccr/<token>`, expiring by file age. The module
-//! keeps them as expiring blobs `juice/ccr/<token>` in its own scope and writes
+//! keeps them as expiring blobs `tinyjuice_ccr/<token>` in its own scope and writes
//! no files. A model that was handed a recovery handle before the upgrade can
//! still fetch the original afterwards.
//!