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): supply disposable key to Embed coverage hosts
Steven Enamakelc9f1ce0656a1
diff --git a/scripts/__tests__/rust-coverage-status.test.mjs b/scripts/__tests__/rust-coverage-status.test.mjsindex 15c891bd06..14fa9424d8 100644--- a/scripts/__tests__/rust-coverage-status.test.mjs+++ b/scripts/__tests__/rust-coverage-status.test.mjs@@ -115,3 +115,20 @@ test("an integration target with all required product features runs", () => {assert.equal(result.status, 0, result.output);assert.match(result.output, /RAN-TARGET/);});+++test("headless Embed coverage gets an isolated disposable encryption key", () => {+ const result = withRunnerFunctions(+ ["llvm_cov_product_facade", "llvm_cov_embed"],+ [+ 'PRODUCT_FEATURES="channels"',+ 'export OPENHUMAN_KEYRING_MASTER_KEY=operator-key',+ 'export OPENHUMAN_KEYRING_MASTER_KEY_FILE=operator-file',+ 'bash() { [[ "${OPENHUMAN_KEYRING_MASTER_KEY:-}" =~ ^[0-9a-f]{64}$ ]] || return 9; [[ -z "${OPENHUMAN_KEYRING_MASTER_KEY_FILE:-}" ]] || return 10; echo DISPOSABLE-KEY; }',+ ].join("\n"),+ 'llvm_cov_embed --no-report -p openhuman-embed; [[ "$OPENHUMAN_KEYRING_MASTER_KEY" == operator-key ]]; [[ "$OPENHUMAN_KEYRING_MASTER_KEY_FILE" == operator-file ]]; echo PARENT-UNCHANGED',+ );+ assert.equal(result.status, 0, result.output);+ assert.match(result.output, /DISPOSABLE-KEY/);+ assert.match(result.output, /PARENT-UNCHANGED/);+});diff --git a/scripts/ci/rust-coverage.sh b/scripts/ci/rust-coverage.shindex 47a848f676..d4229f0e86 100755--- a/scripts/ci/rust-coverage.sh+++ b/scripts/ci/rust-coverage.sh@@ -42,11 +42,23 @@ llvm_cov_package() {bash scripts/ci-cancel-aware.sh cargo llvm-cov "$@"}-llvm_cov_embed() {+llvm_cov_product_facade() {bash scripts/ci-cancel-aware.sh cargo llvm-cov \--features "${PRODUCT_FEATURES}" "$@"}+llvm_cov_embed() {+ (+ # Embed's integration hosts persist fixture credentials with the real+ # encrypted backend. Supply only this suite a disposable master key;+ # core's missing-key regressions and the caller's environment stay intact.+ unset OPENHUMAN_KEYRING_MASTER_KEY_FILE+ OPENHUMAN_KEYRING_MASTER_KEY="$(od -An -N32 -tx1 /dev/urandom | tr -d ' \n')"+ export OPENHUMAN_KEYRING_MASTER_KEY+ llvm_cov_product_facade "$@"+ )+}+integration_test_targets() {find tests -maxdepth 1 -type f -name '*.rs' -print |sed -e 's#^tests/##' -e 's#\.rs$##' |@@ -220,7 +232,7 @@ fi# remaining crates do not expose that feature vocabulary.suite "openhuman-embed" llvm_cov_embed --no-report --no-fail-fast -p openhuman-embed --all-targetssuite "openhuman-rpc" llvm_cov_package --no-report --no-fail-fast -p openhuman-rpc --all-targets-suite "openhuman-tinyhumans" llvm_cov_embed --no-report --no-fail-fast -p openhuman-tinyhumans --all-targets+suite "openhuman-tinyhumans" llvm_cov_product_facade --no-report --no-fail-fast -p openhuman-tinyhumans --all-targets# The terminal frontend builds the core a third time (default features, not the# product set). It is on by default and on in the PR lane; OH_COV_TUI=0 is an# opt-out for local runs.