Skip to content

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

ci: follow split test paths in quality gates\n\n

Steven Enamakel3295915cf916
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.yml
index 8b70c2b23c..9c7a684b97 100644
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@ -155,6 +155,7 @@ jobs:
# lane FAILS, so they arm it for the same reason.
- 'scripts/ci/assert-coverage-presence.sh'
- 'scripts/ci/coverage-presence-allowlist.txt'
+ - 'scripts/ci/check-openhuman-rust-layout.mjs'
- 'Cargo.toml'
- 'Cargo.lock'
- 'build.rs'
@@ -616,23 +617,23 @@ jobs:
core/jsonrpc_tests.rs
core/legacy_aliases.rs
core/runtime/services.rs
- openhuman/agent/harness/builtin_definitions.rs
+ openhuman/agent/harness/builtin_definitions_tests.rs
openhuman/agent/harness/definition_tests.rs
- openhuman/agent/harness/session/tests.rs
- openhuman/agent/harness/subagent_runner/tool_prep.rs
- openhuman/agent/registry/agents/loader.rs
+ openhuman/agent/harness/session/session_tests_part_01_tests.rs
+ openhuman/agent/harness/subagent_runner/tool_prep_tests.rs
+ openhuman/agent/registry/agents/loader_tests_part_01_tests.rs
+ openhuman/agent/registry/agents/loader_tests_part_02_tests.rs
+ openhuman/agent/registry/agents/loader_tests_part_03_tests.rs
openhuman/config/migrations/retire_local_whisper_stt_tests.rs
- openhuman/mcp/server/resources.rs
- openhuman/memory/people/mod.rs
- openhuman/platform/socket/event_handlers.rs
- openhuman/platform/socket/ops.rs
- openhuman/tools/registry/ops_tests.rs
- openhuman/tools/registry/schemas.rs
+ openhuman/memory/people/mod_contacts_gate_tests_tests.rs
openhuman/tools/ops_tests.rs
- openhuman/voice/compile_status.rs
- openhuman/web3/stub.rs
+ openhuman/tools/ops_tests_part_01_tests.rs
+ openhuman/tools/ops_tests_part_03_tests.rs
+ openhuman/tools/ops_tests_part_04_tests.rs
+ openhuman/tools/registry/ops_tests.rs
+ openhuman/tools/registry/schemas_tests.rs
+ openhuman/voice/compile_status_tests.rs
openhuman/web3/wallet/stub.rs
- openhuman/web3/x402/stub.rs
embed/harness/builder_tests.rs
tui/runner.rs
EOF
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index c274d968ab..3eac14c312 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -28,7 +28,8 @@ const failures = [];
for (const file of rustFiles(ROOT)) {
const source = fs.readFileSync(file, "utf8");
const lineCount = source.split("\n").length - (source.endsWith("\n") ? 1 : 0);
- const legacyLimit = LEGACY_LIMITS.get(file);
+ const portableFile = file.split(path.sep).join("/");
+ const legacyLimit = LEGACY_LIMITS.get(portableFile);
if (lineCount > (legacyLimit ?? LINE_LIMIT)) {
failures.push(
`${file}: ${lineCount} lines (limit ${legacyLimit ?? LINE_LIMIT})`,
diff --git a/scripts/test-rust-with-mock.sh b/scripts/test-rust-with-mock.sh
index 90c388b4a3..d986299c83 100755
--- a/scripts/test-rust-with-mock.sh
+++ b/scripts/test-rust-with-mock.sh
@@ -120,7 +120,7 @@ run_archivist_tree_tests() {
phase2_ingested_content_is_raw_prose_not_recap \
phase2_flush_also_triggers_tree_ingest; do
echo "[test-rust-with-mock] archivist tree test: ${test_name}"
- cargo_test --lib "openhuman::agent::harness::archivist::tests::${test_name}" -- --exact --test-threads=1 "$@"
+ cargo_test --lib "openhuman::agent::harness::archivist::tests::part_01_tests::${test_name}" -- --exact --test-threads=1 "$@"
done
}