This is an automated email from the ASF dual-hosted git repository.
yhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new c8d7ca02867 Fix DinD Action failure (#36813)
c8d7ca02867 is described below
commit c8d7ca02867ced1cb3cd0476dbcaed48cedd8884
Author: Tarun Annapareddy <[email protected]>
AuthorDate: Fri Nov 14 07:15:07 2025 -0800
Fix DinD Action failure (#36813)
---
.github/actions/dind-up-action/action.yml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/actions/dind-up-action/action.yml
b/.github/actions/dind-up-action/action.yml
index 23cc8613bb6..54454a5ea2f 100644
--- a/.github/actions/dind-up-action/action.yml
+++ b/.github/actions/dind-up-action/action.yml
@@ -43,7 +43,7 @@ inputs:
storage-driver:
default: overlay2
additional-dockerd-args:
- default: ""
+ default: "--tls=false"
use-host-network:
description: "Run DinD with --network host instead of publishing a TCP
port."
default: "false"
@@ -206,20 +206,20 @@ runs:
run: |
set -euo pipefail
NAME="${{ inputs.container-name || 'dind-daemon' }}"
-
+
# Use host daemon to inspect the DinD container
nm=$(docker inspect -f '{{.HostConfig.NetworkMode}}' "$NAME")
echo "DinD NetworkMode=${nm}"
# Try to find the bridge network IP
ip=$(docker inspect -f '{{range
.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$NAME" || true)
-
+
# If still empty, likely host networking -> use loopback
if [[ -z "${ip}" || "${nm}" == "host" ]]; then
echo "No bridge IP found or using host network. Falling back to
127.0.0.1."
ip="127.0.0.1"
fi
-
+
echo "Discovered DinD IP: ${ip}"
echo "dind-ip=${ip}" >> "$GITHUB_OUTPUT"
@@ -237,7 +237,7 @@ runs:
hostport=$(docker port redis-smoke 6379/tcp | sed 's/.*://')
echo "Redis container started, mapped to host port ${hostport}"
echo "Probing connection to ${DIND_IP}:${hostport} ..."
-
+
timeout 5 bash -c 'exec 3<>/dev/tcp/$DIND_IP/'"$hostport"
if [[ $? -eq 0 ]]; then
echo "TCP connection successful. Port mapping is working."
@@ -272,4 +272,4 @@ runs:
shell: bash
run: |
echo "DOCKER_HOST=${{ steps.set-output.outputs.docker-host }}" >>
"$GITHUB_ENV"
- echo "DIND_IP=${{ steps.discover-ip.outputs.dind-ip }}" >>
"$GITHUB_ENV"
\ No newline at end of file
+ echo "DIND_IP=${{ steps.discover-ip.outputs.dind-ip }}" >>
"$GITHUB_ENV"