From a8db49abb8107a549dfd13d1331e87cc8399201e Mon Sep 17 00:00:00 2001
From: Cheng Pan <379377944@qq.com>
Date: Tue, 6 Jul 2021 00:35:25 +0800
Subject: [PATCH] [KYUUBI #756] [INFRA] Recover CODECOV
### _Why are the changes needed?_
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request
Closes #756 from pan3793/codecov.
Closes #756
0fc8a6dc [Cheng Pan] nit
52fc82d5 [Cheng Pan] MAVEN_OPTS
20bac836 [Cheng Pan] try recover codecov
Authored-by: Cheng Pan <379377944@qq.com>
Signed-off-by: Cheng Pan <379377944@qq.com>
---
build/mvn | 6 ++++++
pom.xml | 1 -
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/build/mvn b/build/mvn
index 9015b5230..37edd5bb2 100755
--- a/build/mvn
+++ b/build/mvn
@@ -21,6 +21,8 @@
_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Preserve the calling directory
_CALLING_DIR="$(pwd)"
+# Options used during compilation
+_COMPILE_JVM_OPTS="-Xms2g -Xmx2g -Xss8m -XX:ReservedCodeCacheSize=512m"
if [ "$CI" ]; then
export MAVEN_CLI_OPTS="--batch-mode --no-transfer-progress --errors --fail-fast"
@@ -108,5 +110,9 @@ install_scala
install_mvn
cd "${_CALLING_DIR}"
+
+# Set any `mvn` options if not already present
+export MAVEN_OPTS=${MAVEN_OPTS:-"$_COMPILE_JVM_OPTS"}
+
echo "Using \`mvn\` from path: $MVN_BIN" 1>&2
${MVN_BIN} $MAVEN_CLI_OPTS "$@"
diff --git a/pom.xml b/pom.xml
index 0c7a13cb8..52ce8a303 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1315,7 +1315,6 @@
${project.build.directory}/surefire-reports
.
TestSuite.txt
- -Xmx2g -Xms2g -Xss8m -XX:ReservedCodeCacheSize=512M
${project.build.directory}/work