Skip to content

Commit c989867

Browse files
committed
chore: reconcile file configuration with current master
2 parents 1079512 + 4d33568 commit c989867

156 files changed

Lines changed: 7698 additions & 408 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
set -euo pipefail
19+
20+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
21+
readonly SCRIPT_DIR
22+
test_dir="$(mktemp -d)"
23+
trap 'rm -f "${test_dir}/"*; rmdir "${test_dir}"' EXIT
24+
export TEST_DIR="${test_dir}"
25+
export PATH="${test_dir}:${PATH}"
26+
export CANCEL_SLEEP=0
27+
28+
cat > "${test_dir}/maven" <<'BASH'
29+
#!/usr/bin/env bash
30+
set -euo pipefail
31+
attempt=$(($(cat "${TEST_DIR}/count") + 1))
32+
echo "${attempt}" > "${TEST_DIR}/count"
33+
printf '%s\0' "$@" > "${TEST_DIR}/arguments"
34+
if [[ "${attempt}" -gt "${FAILURES}" ]]; then
35+
echo '[INFO] BUILD SUCCESS'
36+
exit 0
37+
fi
38+
cat "${TEST_DIR}/failure-${attempt}"
39+
exit 1
40+
BASH
41+
42+
cat > "${test_dir}/sleep" <<'BASH'
43+
#!/usr/bin/env bash
44+
echo "$1" >> "${TEST_DIR}/delays"
45+
if [[ "${CANCEL_SLEEP}" -eq 1 ]]; then
46+
kill -TERM "${PPID}"
47+
fi
48+
BASH
49+
chmod +x "${test_dir}/maven" "${test_dir}/sleep"
50+
51+
cat > "${test_dir}/reset" <<'LOG'
52+
[ERROR] Failed to execute goal on project shenyu-examples-eureka: Could not collect dependencies
53+
[ERROR] Failed to read artifact descriptor for org.glassfish.jersey.core:jersey-client:jar:3.0.5
54+
[ERROR] Caused by: Could not transfer artifact org.glassfish.jersey.core:jersey-client:pom:3.0.5 from/to central (https://repo.maven.apache.org/maven2): Connection reset
55+
[ERROR] -> [Help 1]
56+
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
57+
LOG
58+
59+
cat > "${test_dir}/parent" <<'LOG'
60+
[ERROR] The build could not read 1 project -> [Help 1]
61+
[ERROR] The project org.apache.shenyu:shenyu:2.7.2-SNAPSHOT (/workspace/pom.xml) has 1 error
62+
[ERROR] Non-resolvable parent POM for org.apache.shenyu:shenyu:2.7.2-SNAPSHOT: Could not transfer artifact org.apache:apache:pom:21 from/to central (https://repo.maven.apache.org/maven2): status code: 429, reason phrase: Too Many Requests (429) -> [Help 2]
63+
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
64+
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
65+
LOG
66+
67+
cat > "${test_dir}/compile" <<'LOG'
68+
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:compile on project shenyu-common: Compilation failure
69+
[ERROR] -> [Help 1]
70+
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
71+
LOG
72+
73+
cat > "${test_dir}/wagon-502" <<'LOG'
74+
[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.12:prepare-agent (default) on project shenyu: Execution default of goal org.jacoco:jacoco-maven-plugin:0.8.12:prepare-agent failed: Plugin org.jacoco:jacoco-maven-plugin:0.8.12 or one of its dependencies could not be resolved: Could not transfer artifact org.apache.maven.shared:file-management:jar:3.1.0 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-management/3.1.0/file-management-3.1.0.jar 502 Bad Gateway -> [Help 1]
75+
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
76+
LOG
77+
78+
cat > "${test_dir}/tests" <<'LOG'
79+
[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0
80+
[ERROR] DividePluginTest.testDivide: expected 200 but received 502 Bad Gateway
81+
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:test on project shenyu-common: There are test failures.
82+
[ERROR] -> [Help 1]
83+
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
84+
LOG
85+
86+
cat > "${test_dir}/missing" <<'LOG'
87+
[ERROR] Failed to execute goal on project shenyu-spring-boot-starter-client-beat: Could not resolve dependencies
88+
[ERROR] Could not find artifact org.apache.shenyu:shenyu-register-client-beat:jar:2.7.2-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots)
89+
[ERROR] -> [Help 1]
90+
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
91+
LOG
92+
93+
run_case() {
94+
local name="$1" fixture="$2" failures="$3" expected_count="$4" expected_status="$5"
95+
local status=0
96+
local attempt
97+
echo 0 > "${test_dir}/count"
98+
: > "${test_dir}/delays"
99+
for attempt in 1 2 3; do
100+
cp "${fixture}" "${test_dir}/failure-${attempt}"
101+
done
102+
FAILURES="${failures}" bash "${SCRIPT_DIR}/maven-with-retry.sh" "${test_dir}/maven" \
103+
'-Dmessage=two words' 'literal $(command); *' > "${test_dir}/output" 2>&1 || status=$?
104+
if [[ "${status}" -ne "${expected_status}" || "$(cat "${test_dir}/count")" -ne "${expected_count}" ]]; then
105+
echo "${name}: expected status/count ${expected_status}/${expected_count}, got ${status}/$(cat "${test_dir}/count")" >&2
106+
cat "${test_dir}/output" >&2
107+
exit 1
108+
fi
109+
echo "Passed: ${name}"
110+
}
111+
112+
run_case success "${test_dir}/reset" 0 1 0
113+
# shellcheck disable=SC2016 # Command substitution must remain a literal argument.
114+
printf '%s\0' '-Dmessage=two words' 'literal $(command); *' > "${test_dir}/expected-arguments"
115+
cmp "${test_dir}/expected-arguments" "${test_dir}/arguments"
116+
[[ ! -s "${test_dir}/delays" ]]
117+
118+
run_case reset "${test_dir}/reset" 1 2 0
119+
grep -Fq 'Connection reset' "${test_dir}/output"
120+
grep -Fq 'BUILD SUCCESS' "${test_dir}/output"
121+
run_case parent-429 "${test_dir}/parent" 1 2 0
122+
123+
for reason in 'status code: 502, reason phrase: Bad Gateway (502)' 'status: 502 Bad Gateway' 'Return code is: 502, ReasonPhrase: Bad Gateway'; do
124+
sed "s/Connection reset/${reason}/" "${test_dir}/reset" > "${test_dir}/http"
125+
run_case "${reason}" "${test_dir}/http" 1 2 0
126+
done
127+
128+
run_case wagon-502 "${test_dir}/wagon-502" 1 2 0
129+
130+
# mvnd prefixes module output, and Maven can emit ANSI colors and CRLF.
131+
sed 's/^/[shenyu-examples-eureka] /' "${test_dir}/reset" > "${test_dir}/prefixed"
132+
while IFS= read -r line; do
133+
printf '\033[1;31m%s\033[0m\r\n' "${line}"
134+
done < "${test_dir}/prefixed" > "${test_dir}/colored"
135+
run_case colored-mvnd "${test_dir}/colored" 1 2 0
136+
137+
run_case exhausted "${test_dir}/reset" 3 3 1
138+
printf '10\n20\n' > "${test_dir}/expected-delays"
139+
cmp "${test_dir}/expected-delays" "${test_dir}/delays"
140+
141+
for fixture in compile tests missing; do
142+
run_case "${fixture}" "${test_dir}/${fixture}" 3 1 1
143+
done
144+
sed 's/Connection reset/status code: 404, reason phrase: Not Found (404)/' "${test_dir}/reset" > "${test_dir}/not-found"
145+
run_case http-404 "${test_dir}/not-found" 3 1 1
146+
sed 's/from\/to central (https:\/\/repo.maven.apache.org\/maven2)/from\/to apache.snapshots (https:\/\/repository.apache.org\/snapshots)/' \
147+
"${test_dir}/reset" > "${test_dir}/other-repository"
148+
run_case other-repository "${test_dir}/other-repository" 3 1 1
149+
150+
# A reset in test output must not make a compiler failure retryable.
151+
cat "${test_dir}/reset" "${test_dir}/compile" > "${test_dir}/mixed"
152+
run_case mixed-failures "${test_dir}/mixed" 3 1 1
153+
cat "${test_dir}/tests" "${test_dir}/reset" > "${test_dir}/mixed"
154+
run_case mixed-failures-reversed "${test_dir}/mixed" 3 1 1
155+
156+
# Multiple missing dependencies can belong to one terminal Maven error.
157+
sed '/^\[ERROR\] ->/i\[ERROR] Could not find artifact org.apache.shenyu:missing:jar:2.7.2-SNAPSHOT' \
158+
"${test_dir}/reset" > "${test_dir}/mixed-dependencies"
159+
run_case mixed-dependencies "${test_dir}/mixed-dependencies" 3 1 1
160+
sed '/^\[ERROR\] ->/i\[ERROR] Could not transfer artifact org.example:other:pom:1 from/to central (https://repo.maven.apache.org/maven2): status code: 404' \
161+
"${test_dir}/reset" > "${test_dir}/mixed-transfers"
162+
run_case mixed-transfers "${test_dir}/mixed-transfers" 3 1 1
163+
164+
# ProjectBuildingException also covers unrelated POM errors.
165+
sed 's/has 1 error/has 2 errors/' "${test_dir}/parent" > "${test_dir}/invalid-model"
166+
echo '[ERROR] Unknown packaging: invalid' >> "${test_dir}/invalid-model"
167+
run_case invalid-model "${test_dir}/invalid-model" 3 1 1
168+
169+
# A later attempt must not reuse the preceding attempt's transfer error.
170+
echo 0 > "${test_dir}/count"
171+
cp "${test_dir}/reset" "${test_dir}/failure-1"
172+
cp "${test_dir}/compile" "${test_dir}/failure-2"
173+
status=0
174+
FAILURES=3 bash "${SCRIPT_DIR}/maven-with-retry.sh" "${test_dir}/maven" > "${test_dir}/output" 2>&1 || status=$?
175+
[[ "${status}" -eq 1 && "$(cat "${test_dir}/count")" -eq 2 ]]
176+
echo 'Passed: current-attempt-only'
177+
178+
export CANCEL_SLEEP=1
179+
run_case cancellation "${test_dir}/reset" 3 1 143
180+
181+
echo 'Maven transfer retry tests passed'
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
set -euo pipefail
19+
20+
log_file="$(mktemp)"
21+
trap 'rm -f "${log_file}"' EXIT
22+
trap 'exit 130' INT
23+
trap 'exit 143' TERM
24+
25+
is_transfer_failure() {
26+
awk '
27+
function finish_error( count, transfers, i) {
28+
if (error == "") {
29+
return
30+
}
31+
errors++
32+
count = split(error, transfers, /Could not transfer artifact /)
33+
if (count < 2 || error ~ /Could not find artifact /) {
34+
invalid = 1
35+
}
36+
for (i = 2; i <= count; i++) {
37+
if (transfers[i] !~ /from\/to central \(https:\/\/repo\.maven\.apache\.org\/maven2\)/ ||
38+
(transfers[i] !~ /Connection reset|([Ss]tatus code:|[Ss]tatus:|Return code is:)[ ]*(429|502)([^0-9]|$)/ &&
39+
transfers[i] !~ /Transfer failed for https:\/\/repo\.maven\.apache\.org\/maven2\/[^ ]+ 502 Bad Gateway/)) {
40+
invalid = 1
41+
}
42+
}
43+
error = ""
44+
}
45+
{
46+
# Maven and mvnd both color and prefix their error output.
47+
gsub(/\033\[[0-9;]*[mK]/, "")
48+
sub(/\r$/, "")
49+
if (!sub(/^.*\[ERROR\][ ]*/, "")) {
50+
next
51+
}
52+
if ($0 ~ /^\[Help [0-9]+\] https?:\/\//) {
53+
finish_error()
54+
references++
55+
if ($0 !~ /\/MAVEN\/(DependencyResolutionException|PluginResolutionException|ProjectBuildingException|UnresolvableModelException)$/) {
56+
invalid = 1
57+
}
58+
next
59+
}
60+
# Account for every POM error, including errors without a Help reference.
61+
if ($0 ~ /^The project .* has [0-9]+ errors?$/) {
62+
finish_error()
63+
sub(/^.* has /, "")
64+
model_errors += $1
65+
next
66+
}
67+
if ($0 ~ /^(Failed to execute goal |Plugin .* could not be resolved|Non-resolvable (parent|import) POM)/) {
68+
finish_error()
69+
if ($0 ~ /^Non-resolvable /) {
70+
classified_model_errors++
71+
}
72+
error = $0
73+
} else if (error != "") {
74+
error = error " " $0
75+
}
76+
if ($0 ~ /-> \[Help [0-9]+\]/) {
77+
finish_error()
78+
}
79+
}
80+
END {
81+
finish_error()
82+
exit !(errors > 0 && references > 0 && !invalid && model_errors == classified_model_errors)
83+
}
84+
' "${log_file}"
85+
}
86+
87+
for attempt in 1 2 3; do
88+
# Capture both statuses before another command replaces PIPESTATUS.
89+
set +e
90+
"$@" 2>&1 | tee "${log_file}"
91+
statuses=("${PIPESTATUS[@]}")
92+
set -e
93+
94+
if [[ "${statuses[0]}" -eq 0 ]]; then
95+
exit "${statuses[1]}"
96+
fi
97+
if [[ "${statuses[0]}" -ne 1 || "${statuses[1]}" -ne 0 || "${attempt}" -eq 3 ]] || ! is_transfer_failure; then
98+
exit "${statuses[0]}"
99+
fi
100+
101+
echo "Maven Central transfer failed; retrying in $((attempt * 10)) seconds (${attempt}/3)." >&2
102+
sleep "$((attempt * 10))"
103+
done

‎.github/scripts/resolve-test-case-matrix.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ add_integration_all() {
7373
add_unique integration_cases "shenyu-integrated-test-spring-cloud"
7474
add_unique integration_cases "shenyu-integrated-test-websocket"
7575
add_unique integration_cases "shenyu-integrated-test-rewrite"
76+
add_unique integration_cases "shenyu-integrated-test-tracing"
7677
add_unique integration_cases "shenyu-integrated-test-combination"
7778
add_unique integration_cases "shenyu-integrated-test-sdk-apache-dubbo"
7879
add_unique integration_cases "shenyu-integrated-test-sdk-http"
@@ -297,6 +298,9 @@ map_direct_case_path() {
297298
shenyu-integrated-test/shenyu-integrated-test-rewrite/*)
298299
add_unique integration_cases "shenyu-integrated-test-rewrite"
299300
;;
301+
shenyu-integrated-test/shenyu-integrated-test-tracing/*)
302+
add_unique integration_cases "shenyu-integrated-test-tracing"
303+
;;
300304
shenyu-integrated-test/shenyu-integrated-test-combination/*)
301305
add_unique integration_cases "shenyu-integrated-test-combination"
302306
;;
@@ -377,6 +381,13 @@ map_domain_path() {
377381
add_unique integration_cases "shenyu-integrated-test-rewrite"
378382
fi
379383
;;
384+
*tracing*)
385+
if [[ "${mode}" == "e2e" ]]; then
386+
add_unique e2e_cases "e2e-http-sync-compose"
387+
else
388+
add_unique integration_cases "shenyu-integrated-test-tracing"
389+
fi
390+
;;
380391
*https*)
381392
if [[ "${mode}" == "e2e" ]]; then
382393
add_unique e2e_cases "e2e-http-sync-compose"

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
- uses: actions/checkout@v3
7272
- name: Test CI case resolver
7373
run: bash .github/scripts/resolve-test-case-matrix-test.sh
74+
- name: Test Maven transfer retries
75+
run: bash .github/scripts/maven-with-retry-test.sh
7476
- name: Test storage Compose healthchecks
7577
run: bash shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/compose/script/compose-script-test.sh
7678
- uses: ./actions/paths-filter
@@ -189,7 +191,7 @@ jobs:
189191
MODULE_ARGS="-pl ${{ needs.changes.outputs.modules }} -am"
190192
fi
191193
192-
./mvnw ${MAVEN_ARGS} ${MODULE_ARGS} test ${TEST_ARGS}
194+
exec bash .github/scripts/maven-with-retry.sh ./mvnw ${MAVEN_ARGS} ${MODULE_ARGS} test ${TEST_ARGS}
193195
194196
build_local_repo:
195197
needs: changes

‎.github/workflows/e2e-k8s.yml‎

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,32 @@ jobs:
133133
echo "MVND_HOME=$HOME/.local/mvnd" >> $GITHUB_ENV
134134
fi
135135
136+
- name: Restore ShenYu Maven Repos
137+
id: restore-maven-cache
138+
uses: actions/cache/restore@v3
139+
with:
140+
path: ~/.m2/repository
141+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
142+
restore-keys: |
143+
${{ runner.os }}-maven-
144+
136145
- name: Build with Maven
137146
shell: bash
138147
run: |
139148
if mvnd --version > /dev/null 2>&1; then
140149
echo "Using mvnd for build"
141-
mvnd -B clean install -Prelease,docker -Dmaven.javadoc.skip=true -Drat.skip=true -Dmaven.test.skip=true -Djacoco.skip=true -DskipITs -DskipTests -T1C
150+
exec bash .github/scripts/maven-with-retry.sh mvnd -B clean install -Prelease,docker -Dmaven.javadoc.skip=true -Drat.skip=true -Dmaven.test.skip=true -Djacoco.skip=true -DskipITs -DskipTests -T1C
142151
else
143152
echo "Falling back to maven wrapper"
144153
if [[ "${{ runner.os }}" == "Windows" ]]; then
145-
./mvnw.cmd -B clean install -Prelease,docker -Dmaven.javadoc.skip=true -Drat.skip=true -Dmaven.test.skip=true -Djacoco.skip=true -DskipITs -DskipTests -T1C
154+
exec bash .github/scripts/maven-with-retry.sh ./mvnw.cmd -B clean install -Prelease,docker -Dmaven.javadoc.skip=true -Drat.skip=true -Dmaven.test.skip=true -Djacoco.skip=true -DskipITs -DskipTests -T1C
146155
else
147-
./mvnw -B clean install -Prelease,docker -Dmaven.javadoc.skip=true -Drat.skip=true -Dmaven.test.skip=true -Djacoco.skip=true -DskipITs -DskipTests -T1C
156+
exec bash .github/scripts/maven-with-retry.sh ./mvnw -B clean install -Prelease,docker -Dmaven.javadoc.skip=true -Drat.skip=true -Dmaven.test.skip=true -Djacoco.skip=true -DskipITs -DskipTests -T1C
148157
fi
149158
fi
150159
151160
- name: Save ShenYu Maven Repos
161+
if: steps.restore-maven-cache.outputs.cache-hit != 'true'
152162
uses: actions/cache/save@v3
153163
with:
154164
path: ~/.m2/repository
@@ -340,13 +350,13 @@ jobs:
340350
run: |
341351
if mvnd --version > /dev/null 2>&1; then
342352
echo "Using mvnd to build ${EXAMPLE_PROJECTS}"
343-
mvnd -B clean install -Pexample -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -pl "${EXAMPLE_PROJECTS}" -am -f ./shenyu-examples/pom.xml
353+
exec bash .github/scripts/maven-with-retry.sh mvnd -B clean install -Pexample -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -pl "${EXAMPLE_PROJECTS}" -am -f ./shenyu-examples/pom.xml
344354
else
345355
echo "Falling back to maven wrapper to build ${EXAMPLE_PROJECTS}"
346356
if [[ "${{ runner.os }}" == "Windows" ]]; then
347-
./mvnw.cmd -B clean install -Pexample -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -pl "${EXAMPLE_PROJECTS}" -am -f ./shenyu-examples/pom.xml
357+
exec bash .github/scripts/maven-with-retry.sh ./mvnw.cmd -B clean install -Pexample -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -pl "${EXAMPLE_PROJECTS}" -am -f ./shenyu-examples/pom.xml
348358
else
349-
./mvnw -B clean install -Pexample -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -pl "${EXAMPLE_PROJECTS}" -am -f ./shenyu-examples/pom.xml
359+
exec bash .github/scripts/maven-with-retry.sh ./mvnw -B clean install -Pexample -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -pl "${EXAMPLE_PROJECTS}" -am -f ./shenyu-examples/pom.xml
350360
fi
351361
fi
352362

0 commit comments

Comments
 (0)