diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index d0453450e9..024630c257 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -180,15 +180,22 @@ jobs: - name: Start Podman API service if: steps.changes.outputs.relevant != 'false' run: | + # Socket-activated under the user's systemd, as in action.yml. The + # OpenShell gateway is a systemd user service that pins the podman + # driver and needs this socket to answer when it starts. With a + # `podman system service &` started from a step instead, it failed + # with "no responsive Podman API socket found". + systemctl --user start podman.socket SOCKET_PATH="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/podman/podman.sock" - if [ ! -S "${SOCKET_PATH}" ]; then - mkdir -p "$(dirname "${SOCKET_PATH}")" - podman system service --time=0 "unix://${SOCKET_PATH}" & - for _i in $(seq 1 30); do - [ -S "${SOCKET_PATH}" ] && podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1 && break - sleep 1 - done - [ -S "${SOCKET_PATH}" ] || { echo "::error::Podman socket not ready"; exit 1; } + for _i in $(seq 1 30); do + podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1 && break + sleep 1 + done + if ! podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1; then + echo "::error::Podman socket not ready at ${SOCKET_PATH}" + systemctl --user status podman.socket podman.service --no-pager || true + journalctl --user -u podman.socket -u podman.service --no-pager -n 40 || true + exit 1 fi # After Podman: the gateway pins compute_driver = "podman" and does not