Skip to content

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

ci: isolate E2E module data and capture driver logs

Steven Enamakel826430e06b4b
diff --git a/app/scripts/e2e-run-all-flows.sh b/app/scripts/e2e-run-all-flows.sh
index d9d51eb2a6..433a080468 100755
--- a/app/scripts/e2e-run-all-flows.sh
+++ b/app/scripts/e2e-run-all-flows.sh
@@ -123,13 +123,14 @@ run() {
# capture (and Appium/chromedriver logs alongside).
# ---------------------------------------------------------------------------
_copy_failure_logs() {
- local logs
+ local logs driver_logs
logs=$(ls /tmp/openhuman-e2e-app-*.log 2>/dev/null || true)
- if [[ -z "$logs" ]]; then
+ driver_logs=$(ls "${RUNNER_TEMP:-${TMPDIR:-/tmp}}"/tauri-driver-*.log 2>/dev/null || true)
+ if [[ -z "$logs" && -z "$driver_logs" ]]; then
return
fi
mkdir -p "$E2E_ARTIFACTS_DIR"
- for f in $logs; do
+ for f in $logs $driver_logs; do
local dest="$E2E_ARTIFACTS_DIR/$(basename "$f" .log)-session.log"
cp "$f" "$dest" 2>/dev/null || true
done
diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.sh
index 98fe6fe23e..06dd9f5d4d 100755
--- a/scripts/test-rust-e2e.sh
+++ b/scripts/test-rust-e2e.sh
@@ -121,12 +121,25 @@ MOCK_API_PORT="${MOCK_API_PORT:-18505}"
MOCK_API_URL="http://127.0.0.1:${MOCK_API_PORT}"
MOCK_LOG="${MOCK_LOG:-/tmp/openhuman-rust-e2e-mock.log}"
MOCK_PID=""
+CREATED_XDG_DATA_HOME=""
+
+# TinyBus rejects module-search paths under a shared runner HOME mount. Keep
+# module state created by this test runner in an owner-only scratch directory.
+if [ -z "${XDG_DATA_HOME:-}" ]; then
+ XDG_DATA_HOME="$(mktemp -d "${TMPDIR:-/tmp}/openhuman-rust-e2e-xdg.XXXXXX")"
+ chmod 700 "$XDG_DATA_HOME"
+ export XDG_DATA_HOME
+ CREATED_XDG_DATA_HOME="$XDG_DATA_HOME"
+fi
cleanup() {
if [ -n "$MOCK_PID" ]; then
kill "$MOCK_PID" 2>/dev/null || true
wait "$MOCK_PID" 2>/dev/null || true
fi
+ if [ -n "$CREATED_XDG_DATA_HOME" ]; then
+ rm -rf "$CREATED_XDG_DATA_HOME" 2>/dev/null || true
+ fi
}
trap cleanup EXIT