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): keep module search roots inside container home
Steven Enamakelcc13f3bf8a2b
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.ymlindex e84fbad3ab..910977e9e8 100644--- a/.github/workflows/ci-full.yml+++ b/.github/workflows/ci-full.yml@@ -140,8 +140,12 @@ jobs:# Wrapped so the cancellation watchdog covers the whole suite (mock# server + node harness), not just the cargo segments the inner# script wraps itself.- run: bash scripts/ci-cancel-aware.sh pnpm test:rust:e2e+ run: |+ mkdir -p "$TMPDIR"+ chmod 700 "$TMPDIR"+ bash scripts/ci-cancel-aware.sh pnpm test:rust:e2eenv:+ TMPDIR: /root/openhuman-rust-e2e-tmp-${{ github.run_id }}-${{ github.run_attempt }}RUST_BACKTRACE: "1"build-playwright-e2e-artifact:diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.ymlindex 404a6156b0..f2fb80a27d 100644--- a/.github/workflows/e2e-reusable.yml+++ b/.github/workflows/e2e-reusable.yml@@ -168,7 +168,7 @@ jobs:env:E2E_USE_TAURI_DRIVER: "1"run: |- export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-e2e-xdg.XXXXXX)"+ export XDG_DATA_HOME="$(mktemp -d /root/openhuman-e2e-xdg.XXXXXX)"chmod 700 "$XDG_DATA_HOME"bash scripts/ci-cancel-aware.sh \xvfb-run -a --server-args="-screen 0 1280x960x24" \@@ -455,7 +455,7 @@ jobs:- name: Run Rust E2E suite (tests/*_e2e.rs vs mock backend)run: |- export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-rust-e2e-xdg.XXXXXX)"+ export XDG_DATA_HOME="$(mktemp -d /root/openhuman-rust-e2e-xdg.XXXXXX)"chmod 700 "$XDG_DATA_HOME"bash scripts/ci-cancel-aware.sh pnpm test:rust:e2e@@ -871,7 +871,7 @@ jobs:env:E2E_BAIL_ON_FAILURE: ${{ vars.E2E_BAIL_ON_FAILURE || '' }}run: |- export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-e2e-xdg.XXXXXX)"+ export XDG_DATA_HOME="$(mktemp -d /root/openhuman-e2e-xdg.XXXXXX)"chmod 700 "$XDG_DATA_HOME"BAIL_FLAG=""if [[ "${E2E_BAIL_ON_FAILURE:-}" == "1" ]]; thendiff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.ymlindex bd51daef95..9b16e2d979 100644--- a/.github/workflows/test-reusable.yml+++ b/.github/workflows/test-reusable.yml@@ -189,9 +189,9 @@ jobs:# Container HOME may be a runner-owned bind mount with mode 0755.# Keep TinyBus search paths and dirs::cache_dir private and separate:# the cache itself must not also be scanned as a module search path.- export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-core-data.XXXXXX)"+ export XDG_DATA_HOME="$(mktemp -d /root/openhuman-core-data.XXXXXX)"chmod 700 "$XDG_DATA_HOME"- export XDG_CACHE_HOME="$(mktemp -d /tmp/openhuman-core-cache.XXXXXX)"+ export XDG_CACHE_HOME="$(mktemp -d /root/openhuman-core-cache.XXXXXX)"chmod 700 "$XDG_CACHE_HOME"integration_test_targets() {diff --git a/app/test/e2e/specs/local-model-runtime.spec.ts b/app/test/e2e/specs/local-model-runtime.spec.tsindex dca076bbae..54542f6c4d 100644--- a/app/test/e2e/specs/local-model-runtime.spec.ts+++ b/app/test/e2e/specs/local-model-runtime.spec.ts@@ -2,7 +2,7 @@import { waitForApp, waitForAppReady } from '../helpers/app-helpers';import { triggerAuthDeepLink } from '../helpers/deep-link-helpers';import { textExists, waitForWebView, waitForWindowVisible } from '../helpers/element-helpers';-import { walkOnboarding } from '../helpers/shared-flows';+import { dismissWalkthroughIfVisible, walkOnboarding } from '../helpers/shared-flows';import { startMockServer, stopMockServer } from '../mock-server';/**@@ -70,6 +70,7 @@ describe('Local model runtime route', () => {await waitForWebView(15_000);await waitForAppReady(15_000);await walkOnboarding('[LocalModel]');+ await dismissWalkthroughIfVisible(10_000);await browser.execute(() => {window.location.hash = '#/settings/local-model-debug';diff --git a/crates/openhuman-core/src/agent/artifacts/production_tests.rs b/crates/openhuman-core/src/agent/artifacts/production_tests.rsindex 5bd907b072..844d40a69e 100644--- a/crates/openhuman-core/src/agent/artifacts/production_tests.rs+++ b/crates/openhuman-core/src/agent/artifacts/production_tests.rs@@ -223,6 +223,12 @@ async fn a_completion_that_records_nothing_fails_the_record_too() {async fn a_saved_version_the_card_cannot_show_succeeds_and_says_so() {use std::os::unix::fs::PermissionsExt;+ // The CI container runs as root, which bypasses the file mode bits used+ // below to make the visible copy unwritable. In that environment the+ // copy succeeds and the card should remain ready; non-root runs exercise+ // the saved-but-not-shown behavior.+ let runs_as_root = unsafe { libc::geteuid() == 0 };+let (workspace, files) = temp_dirs();let production = Production::start(&workspace,@@ -256,6 +262,10 @@ async fn a_saved_version_the_card_cannot_show_succeeds_and_says_so() {assert_eq!(record.status, RecordStatus::Ready);assert_eq!(record.versions.len(), 1);let card = get_artifact(&workspace, production.id()).await.unwrap();+ if runs_as_root {+ assert_eq!(card.status, CardStatus::Ready);+ return;+ }assert_eq!(card.status, CardStatus::Failed);let error = card.error.unwrap_or_default();assert!(error.starts_with(SAVED_NOT_SHOWN), "{error}");diff --git a/scripts/__tests__/test-module-installation.test.mjs b/scripts/__tests__/test-module-installation.test.mjsindex 374758a96e..7e7d1571d6 100644--- a/scripts/__tests__/test-module-installation.test.mjs+++ b/scripts/__tests__/test-module-installation.test.mjs@@ -56,8 +56,22 @@ test("Linux container workflows stage TinyBus fixtures under the root-owned contworkflow,);assert.doesNotMatch(source, /\/opt\/openhuman-test-modules/, workflow);+ assert.doesNotMatch(+ source,+ /mktemp -d \/tmp\/openhuman-(?:core|e2e|rust-e2e)/,+ workflow,+ );}+ const ciFull = readFileSync(+ new URL("../../.github/workflows/ci-full.yml", import.meta.url),+ "utf8",+ );+ assert.match(+ ciFull,+ /TMPDIR: \/root\/openhuman-rust-e2e-tmp-\$\{\{ github\.run_id \}\}/,+ );+const lanes = readFileSync(new URL("../ci/self-hosted/lanes-plan.mjs", import.meta.url),"utf8",