Skip to content

Commit 2bbb8d6

Browse files
committed
fix(delete Chinese notes in pull-proto.sh)
1 parent 1b5839e commit 2bbb8d6

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

test/plugins/runner-helper/templates/windows-validator.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,32 @@ healthCheck() {
2727
HEALTH_CHECK_URL=$1
2828
STATUS=""
2929
TIMES=${TIMES:-120}
30-
30+
3131
# Debug: Parse URL and check host resolution
3232
echo "[HC-DEBUG] Checking URL: $HEALTH_CHECK_URL"
3333
host_part=${HEALTH_CHECK_URL#*://}
3434
host_part=${host_part%%[:/]*}
3535
echo "[HC-DEBUG] Host part: $host_part"
3636
echo "[HC-DEBUG] Host resolution:"
3737
getent hosts "$host_part" || echo "[HC-DEBUG] Host resolution failed for: $host_part"
38-
38+
3939
i=1
4040
while [[ $i -lt ${TIMES} ]];
4141
do
4242
echo "[HC-DEBUG] Attempt $i/$TIMES: Testing $HEALTH_CHECK_URL"
43-
43+
4444
# Debug: Show curl timing and response details
4545
echo "[HC-DEBUG] Curl timing test:"
4646
curl_timing=$(curl -s -o /dev/null -w "HTTP_CODE:%{http_code} CONNECT:%{time_connect}s STARTTRANSFER:%{time_starttransfer}s TOTAL:%{time_total}s" --max-time 3 "$HEALTH_CHECK_URL" 2>&1 || echo "curl_failed")
4747
echo "[HC-DEBUG] $curl_timing"
48-
48+
4949
# Original health check logic
5050
STATUS=$(curl --max-time 3 -is ${HEALTH_CHECK_URL} | grep -oE "HTTP/.*\s+200")
5151
if [[ -n "$STATUS" ]]; then
5252
echo "[HC-DEBUG] SUCCESS: ${HEALTH_CHECK_URL}: ${STATUS}"
5353
return 0
5454
fi
55-
55+
5656
echo "[HC-DEBUG] Attempt $i failed, sleeping 3s..."
5757
sleep 3
5858
i=$(($i + 1))

test/plugins/runner-helper/templates/wsl-scenarios.tpl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ export WINDOWS_HOST=`cat /etc/resolv.conf | grep nameserver | cut -d ' ' -f 2`
2323
sed -i "s/service:8080/$WINDOWS_HOST:8080/g" ./config/excepted.yml
2424
sed -i "s/HTTP_HOST=127\.0\.0\.1/HTTP_HOST=$WINDOWS_HOST/g" validator.sh
2525

26-
# Diagnostics for host resolution/connectivity
27-
echo "[wsl] WINDOWS_HOST=$WINDOWS_HOST"
28-
echo "[wsl] resolv.conf:" && cat /etc/resolv.conf || true
29-
echo "[wsl] getent hosts for WINDOWS_HOST:" && getent hosts "$WINDOWS_HOST" || true
30-
echo "[wsl] getent hosts for host.docker.internal:" && getent hosts host.docker.internal || true
31-
32-
# Enable verbose validator healthcheck diagnostics
33-
sed -i '1i export DEBUG_HEALTHCHECK=1' validator.sh
34-
3526
compose_version=$(docker-compose version --short)
3627

3728
if [[ $compose_version =~ ^(v)?1 ]]; then

tools/protocols/pull-proto.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ echo "Modifying import paths in generated Go files..."
128128
find "$OUTPUT_BASE_DIR" -name "*.pb.go" \
129129
-exec sed -i 's|"skywalking\.apache\.org/repo/goapi/|"github.com/apache/skywalking-go/protocols/|g' {} \;
130130

131-
# 重新组织目录结构,去掉所有中间目录
131+
132132
echo "Reorganizing directory structure..."
133133
if [ -d "$OUTPUT_BASE_DIR/skywalking.apache.org" ]; then
134-
# 将 repo/goapi/collect/... 直接移动到 protocols/collect/...
134+
135135
if [ -d "$OUTPUT_BASE_DIR/skywalking.apache.org/repo/goapi/collect" ]; then
136136
mv "$OUTPUT_BASE_DIR/skywalking.apache.org/repo/goapi/collect" "$OUTPUT_BASE_DIR/"
137137
fi
138-
# 清理空目录
138+
139139
rm -rf "$OUTPUT_BASE_DIR/skywalking.apache.org" 2>/dev/null || true
140140
fi
141141

0 commit comments

Comments
 (0)