From 235b0d2bd795cb6861c79e0833cb5b7c63e510e1 Mon Sep 17 00:00:00 2001 From: Aqil Aziz Date: Thu, 21 May 2026 06:47:26 +0700 Subject: [PATCH] test(e2e): require runtime flag for test reset ## Summary - require `OPENHUMAN_E2E_MODE=1` before `openhuman.test_reset` can wipe state - export the runtime flag from the unified E2E session runner - document the E2E runtime flag in the E2E testing guide Closes #1863. ## Testing - [x] `cargo fmt --all --check` - [x] `git diff --check` - [x] `cargo test -p openhuman --features e2e-test-support test_support::rpc --lib` attempted locally; blocked before tests by missing `libclang`/`clang.dll` from `whisper-rs-sys` - [x] `bash -n app/scripts/e2e-run-session.sh` attempted locally; blocked because Bash resolves to WSL and WSL is not enabled on this machine ## Checklist - [x] I have tested my changes locally or explained why local testing was limited. - [x] I have added or updated tests for behavior changes. - [x] I have updated documentation where needed. ## Summary by CodeRabbit ## Release Notes * **Documentation** * Updated end-to-end testing documentation with new environment variable details. * **Tests** * Enhanced end-to-end testing infrastructure with explicit mode verification for test-support operations. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/tinyhumansai/openhuman/pull/2326?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) Co-authored-by: aqilaziz Co-authored-by: Steven Enamakel --- gitbooks/developing/e2e-testing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/gitbooks/developing/e2e-testing.md b/gitbooks/developing/e2e-testing.md index 5371200ff..c1fe9fbe9 100644 --- a/gitbooks/developing/e2e-testing.md +++ b/gitbooks/developing/e2e-testing.md @@ -125,6 +125,7 @@ Requires Docker Desktop or Colima. The repo is bind-mounted so builds persist be | `E2E_MOCK_PORT` | `18473` | Mock backend server port | | `OPENHUMAN_WORKSPACE` | (temp dir) | App workspace directory | | `OPENHUMAN_SERVICE_MOCK` | `0` | Enable service mock mode | +| `OPENHUMAN_E2E_MODE` | unset | Enables destructive test-support RPCs; the E2E runner sets this to `1` | | `OPENHUMAN_E2E_AUTH_BYPASS` | unset | Enable JWT bypass auth | | `DEBUG_E2E_DEEPLINK` | (verbose) | Set to `0` to silence deep link logs | | `E2E_FORCE_CARGO_CLEAN` | unset | Force cargo clean before E2E build |