From ad67bc6eeab88b6cc48d0777bd44db1b37a07b36 Mon Sep 17 00:00:00 2001 From: Jasoet Martohartono Date: Mon, 30 Mar 2026 10:32:48 +0700 Subject: [PATCH] fix(ci): resolve podman socket dynamically instead of hardcoding Replace hardcoded DOCKER_HOST path with dynamic resolution via podman machine inspect. The /var/folders temp path could change, so resolving at runtime is more robust. --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6a2def..6250885 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,14 +47,20 @@ jobs: runs-on: [self-hosted, local, macOS, ARM64] continue-on-error: true env: - DOCKER_HOST: unix:///var/folders/t_/2n3gn82j2qv8lwtdcm67ryv00000gn/T/podman/podman-machine-default-api.sock TESTCONTAINERS_RYUK_DISABLED: "true" steps: - name: Checkout uses: actions/checkout@v6 - - name: Verify Podman - run: podman info --format '{{.Host.RemoteSocket.Path}}' || echo "Podman not available" + - name: Resolve Podman Socket + run: | + SOCK=$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}' 2>/dev/null || true) + if [ -S "$SOCK" ]; then + echo "DOCKER_HOST=unix://$SOCK" >> "$GITHUB_ENV" + echo "Podman socket: $SOCK" + else + echo "::warning::Podman socket not found — bao tests will likely fail" + fi - name: Bao Compatibility run: nix develop --command go test ./compatibility/bao/... -v -tags=bao_compatibility -timeout=10m -p=1