Files
openwaf/.github/workflows
Pavlo Ratushnyi fb491a4041
ci / lint the workflow and the shell (push) Successful in 8s
ci / build the image and smoke it (push) Failing after 20s
ci / the operator page in a real browser (push) Failing after 49s
ci / build, test, smoke (push) Successful in 1m45s
the compose gates are pointed at the host address, because the job's own loopback is not where the ports are published
Run 2350 (b402ec4) got past the mount: the stack came up, the edge container
reached `healthy`, and the console gate died 8s later with curl exit 7 — a
connection refused to http://127.0.0.1:8090. The image job was further along but
showing the same face of it (empty curl bodies reaching a json decoder).

compose publishes the edge's port on the host. The job that curls it is a
container with its own network namespace, so 127.0.0.1:<published port> is not the
same place. The fix is the address the job's own default route names — the host's
address on that network — and compose publishes on 0.0.0.0, so the published port
is listening there. The step prints it into the log so the next run says which
address it asked.

Cross-reference for the platform, not invented here: ~/work/tskr documents the
same asymmetry from the other side in docker/test/workspace-mount.sh — the job
workspace is a named volume at /workspace/<owner>/<repo> that the host daemon
cannot see, `docker build` survives it because the context streams from the
client, and only `-v` is resolved daemon-side. tskr's answer is to run its gates
in sibling containers; openwaf's gates are shell + curl + node, so the smaller
answer is the volume for the file mount (previous commit) and the host address
for the port.
2026-10-05 21:18:58 +02:00
..