Skip to content

The agent that grows with you

test(runner): forward HERMES_E2E_REQUIRE_TUI, CI and GITHUB_ACTIONS through the hermetic env

teknium10988a997435d
diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh
index 7db21c42d69..550efb395a4 100755
--- a/scripts/run_tests.sh
+++ b/scripts/run_tests.sh
@@ -136,6 +136,10 @@ done
# subprocess rebuild the 5GB image from a cold builder cache instead
# (~4 min per worker per run, and the rebuilt image lacked the
# HERMES_GIT_SHA build-arg the workflow bakes in).
+# * HERMES_E2E_REQUIRE_TUI turns a missing Ink TUI build into a failure in
+# tests/e2e/core/terminal instead of a skip (set by the e2e CI job).
+# * CI / GITHUB_ACTIONS tell suites they run on a disposable runner (e.g.
+# tests/e2e/core/upgrade runs the real updater unsandboxed only there).
#
# These are test-infrastructure knobs, not credentials — same class as the
# HERMES_RUN_SLOW_PET_TESTS / HERMES_E2E_BROWSER / HERMES_RUN_E2E opt-ins
@@ -145,7 +149,7 @@ done
TEST_ENV=()
for _test_var in HERMES_TEST_IMAGE HERMES_TEST_WORKERS HERMES_TEST_PATHS \
HERMES_TEST_FILE_TIMEOUT HERMES_TEST_FILE_RETRIES HERMES_TEST_SLICE \
- HERMES_GATEWAY_LOCK_DIR; do
+ HERMES_GATEWAY_LOCK_DIR HERMES_E2E_REQUIRE_TUI CI GITHUB_ACTIONS; do
if [ -n "${!_test_var:-}" ]; then
TEST_ENV+=("$_test_var=${!_test_var}")
fi