Skip to content

Commit c8d2d1e

Browse files
committed
[KYUUBI #7571] [INFRA] Redirect build/mvn fallback message to stderr to avoid corrupting captures
### Why are the changes needed? For example, the Spark version was wrongly captured as `Falling back to archive.apache.org to download Maven` https://github.com/apache/kyuubi/actions/runs/29387027103/job/87262361668?pr=7570 ### How was this patch tested? Merge then monitor CI. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #7571 from pan3793/mvn-echo. Closes #7571 83b48e1 [Cheng Pan] [INFRA] Redirect build/mvn fallback message to stderr to avoid corrupting captures Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org> (cherry picked from commit 6a68db3) Signed-off-by: Cheng Pan <chengpan@apache.org>
1 parent cbd916d commit c8d2d1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

build/mvn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ install_app() {
5454
wget ${wget_opts} -O "${local_tarball}" "${remote_tarball}"
5555
# if both were unsuccessful, exit
5656
[ ! -f "${local_tarball}" ] && \
57-
echo -n "ERROR: Cannot download $2 with cURL or wget; " && \
58-
echo "please install manually and try again." && \
57+
echo -n "ERROR: Cannot download $2 with cURL or wget; " 1>&2 && \
58+
echo "please install manually and try again." 1>&2 && \
5959
exit 2
6060
cd "${_DIR}" && tar -xzf "$2"
6161
rm -rf "$local_tarball"
@@ -85,7 +85,7 @@ install_mvn() {
8585
if [ $(command -v curl) ]; then
8686
if ! curl -L --output /dev/null --silent --head --fail "${APACHE_MIRROR}/${FILE_PATH}/${MVN_TARBALL}${MIRROR_URL_QUERY}" ; then
8787
# Fall back to archive.apache.org for older Maven
88-
echo "Falling back to archive.apache.org to download Maven"
88+
echo "Falling back to archive.apache.org to download Maven" 1>&2
8989
APACHE_MIRROR="https://archive.apache.org/dist"
9090
MIRROR_URL_QUERY=""
9191
fi

0 commit comments

Comments
 (0)