Skip to content

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

chore(build): document the new in_process_all integration test aggregator

Steven Enamakel7cc694ef5e15
diff --git a/build.rs b/build.rs
index 8cb3fe34fa..043aec6ccd 100644
--- a/build.rs
+++ b/build.rs
@@ -1,7 +1,11 @@
//! Build script for the `openhuman` core crate.
//!
-//! Its sole job today is to generate the module list for the aggregated
-//! `raw_coverage_all` integration test target. The `tests/raw_coverage/`
+//! Its main job is to generate the module lists for the two aggregated
+//! integration test targets: `raw_coverage_all` (from `tests/raw_coverage/`)
+//! and `in_process_all` (from `tests/in_process/`, the gate-free router and
+//! public-API suites that used to be ~20 targets of their own). The text below
+//! describes the original `raw_coverage_all` case; `in_process_all` works the
+//! same way. The `tests/raw_coverage/`
//! directory holds ~76 auto-generated `*_raw_coverage_e2e.rs` coverage suites
//! that were previously ~76 separate `tests/*.rs` integration targets. Each
//! separate target statically relinks the entire (very large) `openhuman`
diff --git a/tests/README.md b/tests/README.md
index a50e7c49d4..bbed1592ce 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -12,7 +12,8 @@ the crate — but every file here compiles against and links `openhuman_core::`
| `*.rs` | Integration/E2E targets, one Cargo `[[test]]` per file. `json_rpc_e2e.rs` is the canonical home for JSON-RPC behavior (see `AGENTS.md`). |
| `raw_coverage/*.rs` | Coverage suites (~30 files, mostly `*_raw_coverage_e2e.rs` plus some `*_e2e.rs`) compiled as modules of a single `raw_coverage_all` target instead of standalone binaries. `raw_coverage/w4_shared/mod.rs` is a shared harness three of them pull in with `#[path]`, not a suite. |
| `raw_coverage_all.rs` | Aggregator: includes every top-level `raw_coverage/*.rs` file as a module. The module list is generated by root `build.rs` into `$OUT_DIR/raw_coverage_mods.rs`, so a new `raw_coverage/` file is picked up automatically with no manual registration. A file's own `#![cfg(...)]` gate still applies to just that module, and suites that mutate process-global env serialize on `SHARED_ENV_LOCK`, since they now share one process instead of one per file (see the file's own doc comment for the full rationale). |
-| `support/` | Helpers pulled into targets with `#[path]` (e.g. `noop_memory.rs`) because integration targets can't see `pub(crate)` items from the crate under test. |
+| `in_process/*.rs` | The in-process router and public-API suites (~20 files, formerly one `[[test]]` each) compiled as modules of a single `in_process_all` target, globbed by `build.rs` into `$OUT_DIR/in_process_mods.rs` exactly like `raw_coverage/`. No `required-features`. They share one process, so env mutation holds `env_guard::env_lock()`, the RPC bearer comes from `rpc_auth::rpc_token()` (never a per-file constant: `RPC_TOKEN` is first-writer-wins), and the backend transport is installed once through `tinyhumans_boot::boot()`. CI runs one process per module (`-- <module>::`). Run one with `cargo test -p openhuman-cli --test in_process_all <module>::`. |
+| `support/` | Helpers pulled into targets with `#[path]` (`env_guard.rs` for `EnvVarGuard` + `env_lock`, `rpc_auth.rs`, `tinyhumans_boot.rs`, `noop_memory.rs`, `memory_module.rs`, ...) because integration targets can't see `pub(crate)` items from the crate under test. |
| `fixtures/` | Test data: `composio_*.json` tool fixtures, `memory/`, `memory_golden/` (generated — see its own README, regenerate with `scripts/regen-memory-golden-fixture.sh`), `polymarket/`. |
There is no `Cargo.toml` here and this directory is not a Cargo workspace