Skip to content

Commit a744328

Browse files
committed
[KYUUBI #2582] Minimize Travis build and test
### _Why are the changes needed?_ The current Travis building is not reliable for the reason of resource limits and maybe some other restrictions. Because the server module has a lot of tests for different engines, spark, hive, etc, we run a lot of duplicated tests on Travis. In the PR, I change the jobs to run the tests with `-DwildcardSuites`, only those related to the corresponding module will be run in a particular job. ### _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 - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2582 from yaooqinn/travis2. Closes #2582 acf6953 [Kent Yao] Minimize Travis build and test dd7072a [Kent Yao] Minimize Travis build and test 22acfba [Kent Yao] Minimize Travis build and test Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org>
1 parent cad0bcd commit a744328

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ branches:
2626
only:
2727
- master
2828

29-
# https://releases.ubuntu.com/ use the latest LTS release of ubuntu
3029
language: scala
3130
scala:
3231
- 2.12.15
@@ -40,16 +39,16 @@ matrix:
4039
- ./build/mvn test $MVN_ARGS -pl kyuubi-common,kyuubi-zookeeper,kyuubi-ha,kyuubi-ctl,kyuubi-metrics,kyuubi-hive-beeline,kyuubi-hive-jdbc,extensions/server/kyuubi-server-plugin -am
4140
- name: Build Kyuubi Flink on Linux ARM64
4241
script:
43-
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-flink-sql-engine,kyuubi-server
42+
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-flink-sql-engine,kyuubi-server,integration-tests/kyuubi-flink-it -DwildcardSuites=org.apache.kyuubi.it.flink.operation
4443
- name: Build Kyuubi Spark on Linux ARM64
4544
script:
46-
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-spark-sql-engine,kyuubi-server
45+
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-spark-sql-engine,kyuubi-server -DwildcardSuites=org.apache.kyuubi.operation.KyuubiOperationPerUserSuite
4746
- name: Build Kyuubi Trino on Linux ARM64
4847
script:
49-
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-trino-engine,kyuubi-server
48+
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-trino-engine,kyuubi-server -DwildcardSuites=org.apache.kyuubi.engine.trino
5049
- name: Build Kyuubi Hive on Linux ARM64
5150
script:
52-
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-hive-sql-engine,kyuubi-server
51+
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-hive-sql-engine,kyuubi-server -DwildcardSuites=org.apache.kyuubi.operation.hive
5352

5453
cache:
5554
directories:
@@ -60,7 +59,7 @@ install:
6059

6160
before_script:
6261
- export JAVA_HOME="/usr/lib/jvm/adoptopenjdk-8-hotspot-arm64"
63-
- export MVN_ARGS="-Dmaven.javadoc.skip=true -V -B -ntp -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
62+
- export MVN_ARGS="-Dmaven.javadoc.skip=true -Drat.skip=true -Dscalastyle.skip=true -Dspotless.check.skip -V -B -ntp -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
6463
- ./build/mvn clean install -DskipTests $MVN_ARGS
6564

6665

@@ -69,5 +68,4 @@ after_success:
6968

7069
after_failure:
7170
- echo "Travis exited with ${TRAVIS_TEST_RESULT}"
72-
- for log in `find * -name "kyuubi-spark-sql-engine.log*"`; do echo "=========$log========="; grep "ERROR" $log -A 100 -B 20; done
73-
- for log in `find * -name "unit-tests.log"`; do echo "=========$log========="; grep "ERROR" $log -A 100 -B 20; done
71+
- for log in `find * -name "unit-tests.log"`; do echo "=========$log========="; grep "ERROR" $log -A 100 -B 5; done

0 commit comments

Comments
 (0)