Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
waynesun09 marked this conversation as resolved.
Resolved
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
Expand Down
Loading