Skip to content

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

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.yml
index 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: production
run: |
- 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-core
bash scripts/ci-cancel-aware.sh cargo build --release -p openhuman-tui --bin openhuman-tui
VERSION="${{ 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.yml
index 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: production
run: |
- 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-core
bash scripts/ci-cancel-aware.sh cargo build --release -p openhuman-tui --bin openhuman-tui
- name: Package and upload tarball to release
env:
diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.yml
index 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}" ] || continue
echo "[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=1
done < <(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}" ] || continue
echo "[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=1
done < <(
- 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}"
fi
done < <(integration_test_targets)
diff --git a/scripts/ci/rust-coverage-changed.sh b/scripts/ci/rust-coverage-changed.sh
index 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}" ] || continue
log "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 || return
done < <(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=1
else
- 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=1
llvm_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-targets
llvm_cov_package --no-report --no-fail-fast -p openhuman-tui --all-targets
while IFS= read -r target; do
[ -n "${target}" ] || continue