Skip to content

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

fix(tests): update artifact paths to include tool-results prefix

Steven Enamakel9e2958875aeb
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output_tests.rs
index c8b2d622fb..bcc85eaea6 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output_tests.rs
@@ -46,7 +46,7 @@ async fn same_tool_calls_persist_artifacts_under_distinct_call_ids() {
.await
.expect("second artifact is persisted");
- let root = temp.path().join("identity-session/echo");
+ let root = temp.path().join("tool-results/identity-session/echo");
assert_eq!(
std::fs::read_to_string(root.join("echo-1.txt")).expect("first artifact"),
"first result is deliberately oversized"
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs
index a77cde3a16..0fd4241ff9 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_artifact_tests.rs
@@ -80,9 +80,10 @@ async fn a_wrapped_read_of_a_persisted_artifact_is_paged_not_resummarized_or_rep
#[tokio::test]
async fn a_read_of_an_absolute_artifact_pointer_is_paged_not_repersisted() {
let tmp = tempfile::tempdir().unwrap();
- let storage = tmp.path().join("tool-results");
- let mw = artifact_mw(Some(summarized("SUMMARY")), &storage);
+ let storage = tmp.path();
+ let mw = artifact_mw(Some(summarized("SUMMARY")), storage);
let pointer = storage
+ .join("tool-results")
.join("session/shell/earlier.txt")
.to_string_lossy()
.into_owned();
@@ -108,7 +109,7 @@ async fn a_read_of_an_absolute_artifact_pointer_is_paged_not_repersisted() {
"the continuation must name the same absolute pointer: {rendered}"
);
assert!(
- !storage.join("session/file_read").exists(),
+ !storage.join("tool-results/session/file_read").exists(),
"reading an artifact must not persist it again as a new artifact"
);
}
@@ -133,7 +134,8 @@ async fn an_oversized_result_is_stored_as_the_tool_returned_it_not_as_rewritten(
result_text(&result)
);
let stored =
- std::fs::read_to_string(tmp.path().join("session/echo/c1.txt")).expect("artifact written");
+ std::fs::read_to_string(tmp.path().join("tool-results/session/echo/c1.txt"))
+ .expect("artifact written");
assert_eq!(
stored, raw,
"the artifact must hold the tool's own output, not the rewritten copy"
@@ -159,7 +161,8 @@ async fn a_raw_result_file_read_cannot_open_is_stored_as_the_processed_copy() {
.unwrap();
let stored =
- std::fs::read_to_string(tmp.path().join("session/echo/c1.txt")).expect("artifact written");
+ std::fs::read_to_string(tmp.path().join("tool-results/session/echo/c1.txt"))
+ .expect("artifact written");
assert_eq!(
stored, summary,
"a raw body over file_read's limit would be unreadable, so the processed copy is stored"
diff --git a/scripts/ci/module-pin-exemptions.json b/scripts/ci/module-pin-exemptions.json
index 70631ff109..ad6afd3206 100644
--- a/scripts/ci/module-pin-exemptions.json
+++ b/scripts/ci/module-pin-exemptions.json
@@ -26,6 +26,11 @@
"id": "tinycomputer",
"expect": "v0.9.1-2-g2b0ee5c",
"reason": "Pin carries the cpal 0.18 bump (tinycomputer#72, needed so cpal shares alsa-sys with tinyvoice) past the release tag; re-pin to the next release of this module."
+ },
+ {
+ "id": "tinyjuice",
+ "expect": "v0.5.2-5-g7f4de12f",
+ "reason": "Carries tinyjuice#55 footer guidance changes ahead of the v0.5.2 module artifact; reconcile to the next released module tag before shipping."
}
]
}