Skip to content

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

fix: canonicalize storage probe test root

Steven Enamakelbfbd584b0274
diff --git a/crates/openhuman-core/src/channels/module_fixture_tests.rs b/crates/openhuman-core/src/channels/module_fixture_tests.rs
index 6f11e8b68e..9c229f4744 100644
--- a/crates/openhuman-core/src/channels/module_fixture_tests.rs
+++ b/crates/openhuman-core/src/channels/module_fixture_tests.rs
@@ -7,6 +7,7 @@
use crate::config::Config;
use crate::modules::client::ModuleClient;
+#[cfg(feature = "e2e-test-support")]
use tinychannels_bus::methods;
/// Return a client for the checksum-pinned TinyChannels test module.
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 cf2bcb6a3c..02eb334013 100644
--- a/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
@@ -22,7 +22,6 @@
//! pin, replace `streams_and_watches_are_refused_until_tinybus_binds_them` with
//! the >16 MiB `PutStream`/`GetStream` round trip and a watch signal.
-use super::*;
use std::path::{Path, PathBuf};
use std::sync::{Mutex, OnceLock};
@@ -185,7 +184,10 @@ async fn rig(module_id: &'static str) -> Rig {
trail.clone(),
));
attach(&modules, &host_connection, host).await.unwrap();
- let staged = tempfile::tempdir().unwrap();
+ let temp_root = std::env::temp_dir()
+ .canonicalize()
+ .expect("canonical temporary directory");
+ let staged = tempfile::tempdir_in(temp_root).unwrap();
let artifact = stage(staged.path());
modules.load_file(&artifact).expect("load the probe cdylib");
// `load_file` can return before the module's setup claims its name.