From f5dd5a45f081c036c5041439d8b8f7d4eff8ff43 Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Tue, 29 Sep 2026 15:58:43 -0400 Subject: [PATCH 1/2] ci(#7751): start the Podman API socket with systemd in functional-tests Since the move to OpenShell 0.1.2, functional-tests fails at "Install OpenShell CLI": the gateway restarts in a loop with "no responsive Podman API socket found". OpenShell 0.1 pins the podman compute driver and checks the socket when the gateway starts; 0.0.116 did not. The workflow started the Podman API with a background `podman system service` from a step. action.yml, which e2e runs successfully on the same hosted runners, starts it with `systemctl --user start podman.socket` instead. Do the same here and wait until the socket answers. Assisted-by: Claude Signed-off-by: Wayne Sun --- .github/workflows/functional-tests.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index d0453450e9..6215343c68 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -180,16 +180,19 @@ 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; } - fi + for _i in $(seq 1 30); do + podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1 && break + sleep 1 + done + podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1 \ + || { echo "::error::Podman socket not ready at ${SOCKET_PATH}"; exit 1; } # After Podman: the gateway pins compute_driver = "podman" and does not # start without the Podman API socket. From 03dd949466ad3ccc2391a0ad7b66ee9425d545e7 Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Tue, 29 Sep 2026 16:08:44 -0400 Subject: [PATCH 2/2] ci(#7751): show podman.socket status and journal when the socket never answers If the readiness wait times out, print the systemd status and recent journal of podman.socket and podman.service before failing, as install-openshell.sh does for the gateway, so the failure can be diagnosed from the log. Assisted-by: Claude Signed-off-by: Wayne Sun --- .github/workflows/functional-tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 6215343c68..024630c257 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -191,8 +191,12 @@ jobs: podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1 && break sleep 1 done - podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1 \ - || { echo "::error::Podman socket not ready at ${SOCKET_PATH}"; exit 1; } + 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 # start without the Podman API socket.