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.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user