We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cfa652 commit 7a3c2aaCopy full SHA for 7a3c2aa
1 file changed
test/plugins/runner-helper/templates/wsl-scenarios.tpl
@@ -19,7 +19,18 @@
19
set -ex
20
cp -rf /mnt/d/a/skywalking-go/skywalking-go/test/plugins/workspace /root/repo/skywalking-go/test/plugins/
21
cd {{.Context.WorkSpaceDir}}
22
+echo "[DEBUG] WSL network debug:"
23
+echo "[DEBUG] - /etc/resolv.conf content:"
24
+cat /etc/resolv.conf
25
+echo "[DEBUG] - WSL version:"
26
+cat /proc/version
27
+echo "[DEBUG] - Network interfaces:"
28
+ip addr show || ifconfig
29
+echo "[DEBUG] - Route table:"
30
+ip route || route -n
31
+
32
export WINDOWS_HOST=`cat /etc/resolv.conf | grep nameserver | cut -d ' ' -f 2`
33
+echo "[DEBUG] WSL detected Windows host IP: $WINDOWS_HOST"
34
35
# Keep validator.sh using Windows host IP for healthcheck
36
sed -i "s/HTTP_HOST=127\.0\.0\.1/HTTP_HOST=$WINDOWS_HOST/g" validator.sh
0 commit comments