From f4fb8d2d28d3c6f1fe9d66033ce578de8eb2b30e Mon Sep 17 00:00:00 2001 From: litruv Date: Tue, 3 Nov 2026 11:29:07 +1100 Subject: [PATCH] Fail fast when the runner cannot reach the homeserver. The login form only renders after the auth-flows request succeeds. On the runner the form never appeared within the expect timeout, so the login request to ruv.wtf (192.168.10.4) is not reachable from the runner network. The check turns a 30s locator timeout into a clear message. --- .gitea/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 5506b8d..7aa5179 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -60,6 +60,11 @@ jobs: - name: Ensure a display for Electron run: command -v xvfb-run >/dev/null || (sudo apt-get update && sudo apt-get install -y xvfb) + # The login form only renders after the auth-flows request succeeds, so an + # unreachable homeserver shows up as a 30s locator timeout. Fail fast instead. + - name: Homeserver reachable from the runner + run: curl -sS --max-time 20 -o /dev/null -w '%{http_code}\n' "https://$E2E_HOMESERVER/.well-known/matrix/client" + - name: Run login E2E run: xvfb-run -a npm run test:e2e