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
chore: files changed scripts/ci/rust-coverage.sh
Steven Enamakel5551e0c9ef51
diff --git a/scripts/ci/rust-coverage.sh b/scripts/ci/rust-coverage.shindex b78922c40e..d3e21014ad 100755--- a/scripts/ci/rust-coverage.sh+++ b/scripts/ci/rust-coverage.sh@@ -71,6 +71,25 @@ llvm_cov_embed() {llvm_cov_product_facade "$@"}+# The nextest runner builds every product-feature package with ONE Cargo+# argument set and varies only the nextest filter between suites. Cargo hashes+# each unit by its resolved feature set, and the core's feature graph differs+# per selected package set (core alone, embed/tinyhumans, and the cli, which+# drops the core's `default` alias), so separate `-p` invocations each compile+# the core and its dependencies again. With the same packages, `--all-targets`+# and `--features` on every invocation, the first suite builds them once and+# the rest find them fresh. Suites, reports and execution order are unchanged;+# each filter selects what the old per-package arguments built and ran:+# core its only target is the lib (`--lib --bins`)+# embed `--all-targets`+# tinyhumans `--all-targets`+# cli `--tests -E 'kind(test)'` (integration targets only)+UNIFIED_PRODUCT_ARGS=(-p openhuman -p openhuman-embed -p openhuman-tinyhumans -p openhuman-cli --all-targets)+FILTER_CORE='package(=openhuman)'+FILTER_EMBED='package(=openhuman-embed)'+FILTER_TINYHUMANS='package(=openhuman-tinyhumans)'+FILTER_CLI_TESTS='package(=openhuman-cli) & kind(test)'+integration_test_targets() {find tests -maxdepth 1 -type f -name '*.rs' -print |sed -e 's#^tests/##' -e 's#\.rs$##' |@@ -264,7 +283,8 @@ trap 'exit 143' TERM HUPif [ "${OH_COV_RUNNER:-cargo}" = "nextest" ]; then# One process per test isolates process globals without separate target dirs.- suite "openhuman lib+bins (nextest)" llvm_cov --no-report --no-fail-fast -p openhuman --lib --bins+ suite "openhuman lib+bins (nextest)" llvm_cov --no-report --no-fail-fast \+ "${UNIFIED_PRODUCT_ARGS[@]}" -E "${FILTER_CORE}"else# Keep the aggregate unit-test process aligned with the canonical Rust runner.# The isolated reaper test installs one-shot process globals, so it cannot run@@ -280,10 +300,20 @@ fi# Run every root-workspace Rust support crate rather than only crates named by# changed paths. Product features are forwarded to the embedding facade; the# remaining crates do not expose that feature vocabulary.-suite "openhuman-embed" llvm_cov_embed --no-report --no-fail-fast -p openhuman-embed --all-targets+if [ "${OH_COV_RUNNER:-cargo}" = "nextest" ]; then+ suite "openhuman-embed" llvm_cov --no-report --no-fail-fast \+ "${UNIFIED_PRODUCT_ARGS[@]}" -E "${FILTER_EMBED}"+else+ suite "openhuman-embed" llvm_cov_embed --no-report --no-fail-fast -p openhuman-embed --all-targets+fisuite "openhuman-rpc" llvm_cov_package --no-report --no-fail-fast -p openhuman-rpc --all-targets \--features storage-sqlite,storage-file-suite "openhuman-tinyhumans" llvm_cov_product_facade --no-report --no-fail-fast -p openhuman-tinyhumans --all-targets+if [ "${OH_COV_RUNNER:-cargo}" = "nextest" ]; then+ suite "openhuman-tinyhumans" llvm_cov --no-report --no-fail-fast \+ "${UNIFIED_PRODUCT_ARGS[@]}" -E "${FILTER_TINYHUMANS}"+else+ suite "openhuman-tinyhumans" llvm_cov_product_facade --no-report --no-fail-fast -p openhuman-tinyhumans --all-targets+fiif [ "${OH_COV_RUNNER:-cargo}" = "nextest" ]; then# Contributor/default features are distinct from product features. Keep both# configurations instrumented rather than dropping the default-only surface.@@ -323,14 +353,14 @@ if [ "${OH_COV_RUNNER:-cargo}" = "nextest" ]; theninventory_env="$(bash scripts/ci-cancel-aware.sh cargo llvm-cov show-env --sh)" || exit $?eval "${inventory_env}"bash scripts/ci-cancel-aware.sh cargo nextest list --message-format json --features "${CORE_PRODUCT_FEATURES}" \- -p openhuman-cli --tests -E 'kind(test)' >"${expected_inventory}"+ "${UNIFIED_PRODUCT_ARGS[@]}" -E "${FILTER_CLI_TESTS}" >"${expected_inventory}")suite "openhuman-cli test inventory" cli_inventoryfiNEXTEST_EXPECTED_TARGETS="${expected_targets}" \NEXTEST_EXPECTED_INVENTORY="${expected_inventory}" \suite "openhuman-cli integration tests (nextest)" llvm_cov \- --no-report --no-fail-fast -p openhuman-cli --tests -E 'kind(test)'+ --no-report --no-fail-fast "${UNIFIED_PRODUCT_ARGS[@]}" -E "${FILTER_CLI_TESTS}"elsewhile IFS= read -r target; do[ -n "${target}" ] || continue