Skip to content

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

fix(observability): remove duplicate import and scope included test modules

Steven Enamakelabd2fc5bd7f3
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
index f010c03c76..de7dd902ff 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
@@ -6,6 +6,7 @@ use std::sync::atomic::Ordering;
use tinyagents_harness::events::{AgentEvent, EventListener, EventRecord};
use tinyagents_harness::cache::CacheLayoutEvent;
+use tinyagents_harness::events::{AgentEvent, EventListener, EventRecord};
use crate::progress::AgentProgress;
use tinytools::humanize_tool_name;
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs
index ba87c03aff..5bb240e14d 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs
@@ -432,7 +432,10 @@ fn emit_recovered_unknown_tool_call(sink: &EventSink, call_id: &str) {
});
}
-include!("observability_tests_tool_rows.rs");
+mod upstream_tool_rows {
+ use super::*;
+ include!("observability_tests_tool_rows.rs");
+}
#[path = "observability_projection_tests.rs"]
mod projection_tests;
diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
index f06826a4fd..0511e1e849 100644
--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
@@ -379,7 +379,10 @@ fn try_create_local_runtime_returns_none_for_managed_and_cloud() {
assert!(try_create_local_runtime_chat_model("chat", &cloud, &EgressLedger::none()).is_none());
}
-include!("factory_crate_native_cloud_tests.rs");
+mod upstream_cloud_tests {
+ use super::*;
+ include!("factory_crate_native_cloud_tests.rs");
+}
#[path = "factory_crate_native_managed_slug_tests.rs"]
mod managed_slug_tests;