mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
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. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/tinyhumansai/openhuman/pull/2326?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: aqilaziz <gonzes7@gmail.com> Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
This commit is contained in:
co-authored by
Steven Enamakel
parent
01a8227827
commit
235b0d2bd7
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user