Fail fast when the runner cannot reach the homeserver.
Tests / unit (pull_request) Successful in 17s
Tests / e2e (pull_request) Failing after 2m41s

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.
This commit is contained in:
2026-11-03 11:29:07 +11:00
parent 4eff64b251
commit f4fb8d2d28
+5
View File
@@ -60,6 +60,11 @@ jobs:
- name: Ensure a display for Electron - name: Ensure a display for Electron
run: command -v xvfb-run >/dev/null || (sudo apt-get update && sudo apt-get install -y xvfb) 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 - name: Run login E2E
run: xvfb-run -a npm run test:e2e run: xvfb-run -a npm run test:e2e