Skip to content

feat(cit): run test containers on the host network inside a jail - #89

Merged
ahze merged 1 commit into
mainfrom
feat/cit-host-network
Nov 16, 2026
Merged

ahze merged 1 commit into
mainfrom
feat/cit-host-network

Conversation

@ahze

@ahze ahze commented Nov 16, 2026

Copy link
Copy Markdown
Member

dbuild test starts its containers with --network=podman. Inside a jail
that shares the host's network stack (a forgejo-runner container on
host networking), podman cannot set up the bridge, so every test
fails before the container starts.

Pick the network per environment: host when running in a jail without
its own vnet, podman otherwise. With host networking the health checks
go to 127.0.0.1 instead of the container's bridge address.

DBUILD_TEST_NETWORK overrides the choice.

dbuild test starts its containers with --network=podman. Inside a jail
that shares the host's network stack (a forgejo-runner container on
host networking), podman cannot set up the bridge, so every test
fails before the container starts.

Pick the network per environment: host when running in a jail without
its own vnet, podman otherwise. With host networking the health checks
go to 127.0.0.1 instead of the container's bridge address.

DBUILD_TEST_NETWORK overrides the choice.
@ahze
ahze merged commit 642b6ab into main Nov 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant