Run the E2E job with host networking so the homeserver replies reach it. (#109)
The homeserver ruv.wtf (192.168.10.4) is a macvlan interface on the caddy-caddy-1 container on the runner host pizzabox. Replies to a bridge-networked job arrive on br-f192811a98b7 and DOCKER-ISOLATION-STAGE-2 drops them, so the login E2E times out. Host networking keeps request and reply on one path.
This commit is contained in:
@@ -26,6 +26,12 @@ jobs:
|
|||||||
# PRs can be trusted with the E2E_PASSWORD secret.
|
# PRs can be trusted with the E2E_PASSWORD secret.
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# ruv.wtf is a macvlan interface on a container on the runner host, so the reply to a
|
||||||
|
# bridge-networked job arrives on that container's bridge and Docker's inter-bridge
|
||||||
|
# isolation drops it. Host networking keeps the request and reply on one path.
|
||||||
|
container:
|
||||||
|
image: docker.io/gitea/runner-images:ubuntu-latest
|
||||||
|
options: --network=host
|
||||||
env:
|
env:
|
||||||
# Dedicated test account on the homeserver, not a personal one.
|
# Dedicated test account on the homeserver, not a personal one.
|
||||||
E2E_HOMESERVER: ruv.wtf
|
E2E_HOMESERVER: ruv.wtf
|
||||||
|
|||||||
Reference in New Issue
Block a user