The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ci): move core binary and integration tests to openhuman-cli crate
Steven Enamakel1e20c74594f4
diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.ymlindex 72e97422bf..996cb770cc 100644--- a/.github/workflows/release-packages.yml+++ b/.github/workflows/release-packages.yml@@ -83,7 +83,7 @@ jobs:OPENHUMAN_BUILD_SHA: ${{ github.sha }}OPENHUMAN_APP_ENV: productionrun: |- bash scripts/ci-cancel-aware.sh cargo build --release -p openhuman --bin openhuman-core+ bash scripts/ci-cancel-aware.sh cargo build --release -p openhuman-cli --bin openhuman-corebash scripts/ci-cancel-aware.sh cargo build --release -p openhuman-tui --bin openhuman-tuiVERSION="${{ github.event.release.tag_name }}"bash scripts/release/package-cli-tarball.sh \diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.ymlindex 56f69b9598..30842dc418 100644--- a/.github/workflows/release-production.yml+++ b/.github/workflows/release-production.yml@@ -531,7 +531,7 @@ jobs:OPENHUMAN_BUILD_SHA: ${{ needs.prepare-build.outputs.short_sha }}OPENHUMAN_APP_ENV: productionrun: |- bash scripts/ci-cancel-aware.sh cargo build --release -p openhuman --bin openhuman-core+ bash scripts/ci-cancel-aware.sh cargo build --release -p openhuman-cli --bin openhuman-corebash scripts/ci-cancel-aware.sh cargo build --release -p openhuman-tui --bin openhuman-tui- name: Package and upload tarball to releaseenv:diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.ymlindex 65ca30a2fd..f436780ec0 100644--- a/.github/workflows/test-reusable.yml+++ b/.github/workflows/test-reusable.yml@@ -226,7 +226,9 @@ jobs:# it `--bins` silently skips them and this lane goes green having# compiled none of them. fleet.rs carries a `#[cfg(test)] mod`, so those# tests would vanish too, with no error.- bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib --bins --features "${FEATURES}"+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib --features "${FEATURES}"+ # The core binary and developer bins live in the CLI crate.+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman-cli --bins --features "${FEATURES}"bash scripts/ci-cancel-aware.sh cargo test -p openhuman --doc --features "${FEATURES}"while IFS= read -r target; do@@ -235,7 +237,7 @@ jobs:while IFS= read -r module; do[ -n "${module}" ] || continueecho "[test-reusable] raw coverage module: ${module}"- bash scripts/ci-cancel-aware.sh cargo test -p openhuman --features "${FEATURES}" --test "${target}" -- "${module}::" --test-threads=1+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman-cli --features "${FEATURES}" --test "${target}" -- "${module}::" --test-threads=1done < <(raw_coverage_modules)elif [ "${target}" = "json_rpc_e2e" ]; then# JSON-RPC E2E cases change process-global provider routes and@@ -245,13 +247,13 @@ jobs:while IFS= read -r test_name; do[ -n "${test_name}" ] || continueecho "[test-reusable] JSON-RPC E2E test: ${test_name}"- bash scripts/ci-cancel-aware.sh cargo test -p openhuman --test "${target}" "${test_name}" -- --exact --test-threads=1+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman-cli --test "${target}" "${test_name}" -- --exact --test-threads=1done < <(- cargo test -p openhuman --test "${target}" -- --list \+ cargo test -p openhuman-cli --test "${target}" -- --list \| sed -n 's/: test$//p')else- bash scripts/ci-cancel-aware.sh cargo test -p openhuman --features "${FEATURES}" --test "${target}"+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman-cli --features "${FEATURES}" --test "${target}"fidone < <(integration_test_targets)diff --git a/scripts/ci/rust-coverage-changed.sh b/scripts/ci/rust-coverage-changed.shindex 2cbe3543df..fc15302374 100755--- a/scripts/ci/rust-coverage-changed.sh+++ b/scripts/ci/rust-coverage-changed.sh@@ -232,16 +232,16 @@ run_integration_target() {while IFS= read -r module; do[ -n "${module}" ] || continuelog "running raw coverage module: ${module}"- llvm_cov --no-report --no-fail-fast -p openhuman --test "${target}" -- "${module}::" --test-threads=1 || return+ llvm_cov --no-report --no-fail-fast -p openhuman-cli --test "${target}" -- "${module}::" --test-threads=1 || returndone < <(raw_coverage_modules)elif [ "${target}" = "json_rpc_e2e" ]; then# This target exercises process-global runtime/config state. Its tests take# an environment lock, but background agent tasks can outlive an individual# case briefly; keeping libtest serial prevents a successor from observing# that teardown window.- llvm_cov --no-report --no-fail-fast -p openhuman --test "${target}" -- --test-threads=1+ llvm_cov --no-report --no-fail-fast -p openhuman-cli --test "${target}" -- --test-threads=1else- llvm_cov --no-report --no-fail-fast -p openhuman --test "${target}"+ llvm_cov --no-report --no-fail-fast -p openhuman-cli --test "${target}"fi}@@ -249,7 +249,7 @@ compile_raw_coverage_target() {log "compiling raw coverage integration target for src/** change"bash scripts/ci-cancel-aware.sh cargo test \--features "${PRODUCT_FEATURES}" \- --test raw_coverage_all --no-run+ -p openhuman-cli --test raw_coverage_all --no-run}run_full() {@@ -261,7 +261,7 @@ run_full() {# make unrelated tests observe each other's temporary overrides. The five# build-only reaper test installs process globals and therefore runs in a# fresh process below, exactly as it does in the canonical runner.- llvm_cov --no-report --no-fail-fast -p openhuman --lib --bins -- \+ llvm_cov --no-report --no-fail-fast -p openhuman --lib -- \--test-threads=1 \--skip a_build_only_runtime_is_swept_before_it_can_be_invoked# This test deliberately boots a real harness-only CoreBuilder. Doing so@@ -272,6 +272,9 @@ run_full() {-- "openhuman::agent::tinyagents::reaper::tests::a_build_only_runtime_is_swept_before_it_can_be_invoked" \--exact --test-threads=1llvm_cov_embed --no-report --no-fail-fast -p openhuman-embed --all-targets+ # The core binary and the developer bins live in the CLI crate.+ llvm_cov --no-report --no-fail-fast -p openhuman-cli --bins+ llvm_cov_package --no-report --no-fail-fast -p openhuman-tinyhumans --all-targetsllvm_cov_package --no-report --no-fail-fast -p openhuman-tui --all-targetswhile IFS= read -r target; do[ -n "${target}" ] || continue