[HUDI-4224] Fix CI issues (#5842)
- Upgrade junit to 5.7.2 - Downgrade surefire and failsafe to 2.22.2 - Fix test failures that were previously not reported - Improve azure pipeline configs Co-authored-by: liujinhui1994 <965147871@qq.com> Co-authored-by: Y Ethan Guo <ethan.guoyihua@gmail.com>
This commit is contained in:
@@ -21,12 +21,68 @@ trigger:
|
||||
pool:
|
||||
vmImage: 'ubuntu-18.04'
|
||||
|
||||
parameters:
|
||||
- name: job1Modules
|
||||
type: object
|
||||
default:
|
||||
- 'hudi-common'
|
||||
- 'hudi-flink-datasource/hudi-flink'
|
||||
- 'hudi-flink-datasource/hudi-flink1.13.x'
|
||||
- 'hudi-flink-datasource/hudi-flink1.14.x'
|
||||
- name: job2Modules
|
||||
type: object
|
||||
default:
|
||||
- 'hudi-client/hudi-spark-client'
|
||||
- name: job3Modules
|
||||
type: object
|
||||
default:
|
||||
- 'hudi-cli'
|
||||
- 'hudi-client/hudi-client-common'
|
||||
- 'hudi-client/hudi-flink-client'
|
||||
- 'hudi-client/hudi-java-client'
|
||||
- 'hudi-sync/hudi-adb-sync'
|
||||
- 'hudi-sync/hudi-datahub-sync'
|
||||
- 'hudi-sync/hudi-hive-sync'
|
||||
- 'hudi-sync/hudi-sync-common'
|
||||
- 'hudi-utilities'
|
||||
- name: job4Modules
|
||||
type: object
|
||||
default:
|
||||
- '!hudi-cli'
|
||||
- '!hudi-client'
|
||||
- '!hudi-client/hudi-client-common'
|
||||
- '!hudi-client/hudi-flink-client'
|
||||
- '!hudi-client/hudi-java-client'
|
||||
- '!hudi-client/hudi-spark-client'
|
||||
- '!hudi-common'
|
||||
- '!hudi-examples'
|
||||
- '!hudi-examples/hudi-examples-common'
|
||||
- '!hudi-examples/hudi-examples-flink'
|
||||
- '!hudi-examples/hudi-examples-java'
|
||||
- '!hudi-examples/hudi-examples-spark'
|
||||
- '!hudi-flink-datasource'
|
||||
- '!hudi-flink-datasource/hudi-flink'
|
||||
- '!hudi-flink-datasource/hudi-flink1.13.x'
|
||||
- '!hudi-flink-datasource/hudi-flink1.14.x'
|
||||
- '!hudi-sync'
|
||||
- '!hudi-sync/hudi-adb-sync'
|
||||
- '!hudi-sync/hudi-datahub-sync'
|
||||
- '!hudi-sync/hudi-hive-sync'
|
||||
- '!hudi-sync/hudi-sync-common'
|
||||
- '!hudi-utilities'
|
||||
|
||||
variables:
|
||||
MAVEN_OPTS: '-Dcheckstyle.skip=true -Drat.skip=true -Djacoco.skip=true'
|
||||
BUILD_PROFILES: '-Dscala-2.11 -Dspark2 -Dflink1.14'
|
||||
PLUGIN_OPTS: '-Dcheckstyle.skip=true -Drat.skip=true -Djacoco.skip=true'
|
||||
MVN_OPTS_INSTALL: '-T 2.5C -DskipTests $(BUILD_PROFILES) $(PLUGIN_OPTS)'
|
||||
MVN_OPTS_TEST: '-fae $(BUILD_PROFILES) $(PLUGIN_OPTS)'
|
||||
SPARK_VERSION: '2.4.4'
|
||||
HADOOP_VERSION: '2.7'
|
||||
SPARK_ARCHIVE: spark-$(SPARK_VERSION)-bin-hadoop$(HADOOP_VERSION)
|
||||
EXCLUDE_TESTED_MODULES: '!hudi-examples/hudi-examples-common,!hudi-examples/hudi-examples-flink,!hudi-examples/hudi-examples-java,!hudi-examples/hudi-examples-spark,!hudi-common,!hudi-flink-datasource/hudi-flink,!hudi-client/hudi-spark-client,!hudi-client/hudi-client-common,!hudi-client/hudi-flink-client,!hudi-client/hudi-java-client,!hudi-cli,!hudi-utilities,!hudi-sync/hudi-hive-sync'
|
||||
JOB1_MODULES: ${{ join(',',parameters.job1Modules) }}
|
||||
JOB2_MODULES: ${{ join(',',parameters.job2Modules) }}
|
||||
JOB3_MODULES: ${{ join(',',parameters.job3Modules) }}
|
||||
JOB4_MODULES: ${{ join(',',parameters.job4Modules) }}
|
||||
|
||||
stages:
|
||||
- stage: test
|
||||
@@ -40,28 +96,27 @@ stages:
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'clean install'
|
||||
options: -T 2.5C -DskipTests
|
||||
options: $(MVN_OPTS_INSTALL)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
- task: Maven@3
|
||||
displayName: UT common flink client/spark-client
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Punit-tests -pl hudi-common,hudi-flink-datasource/hudi-flink,hudi-client/hudi-spark-client
|
||||
options: $(MVN_OPTS_TEST) -Punit-tests -pl $(JOB1_MODULES),hudi-client/hudi-spark-client
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- task: Maven@3
|
||||
displayName: FT common flink
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Pfunctional-tests -pl hudi-common,hudi-flink-datasource/hudi-flink
|
||||
options: $(MVN_OPTS_TEST) -Pfunctional-tests -pl $(JOB1_MODULES)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- job: UT_FT_2
|
||||
displayName: FT client/spark-client
|
||||
timeoutInMinutes: '120'
|
||||
@@ -71,21 +126,20 @@ stages:
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'clean install'
|
||||
options: -T 2.5C -DskipTests
|
||||
options: $(MVN_OPTS_INSTALL)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
- task: Maven@3
|
||||
displayName: FT client/spark-client
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Pfunctional-tests -pl hudi-client/hudi-spark-client
|
||||
options: $(MVN_OPTS_TEST) -Pfunctional-tests -pl $(JOB2_MODULES)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- job: UT_FT_3
|
||||
displayName: UT FT clients & cli & utilities & sync/hive-sync
|
||||
displayName: UT FT clients & cli & utilities & sync
|
||||
timeoutInMinutes: '120'
|
||||
steps:
|
||||
- task: Maven@3
|
||||
@@ -93,28 +147,27 @@ stages:
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'clean install'
|
||||
options: -T 2.5C -DskipTests
|
||||
options: $(MVN_OPTS_INSTALL)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
- task: Maven@3
|
||||
displayName: UT clients & cli & utilities & sync/hive-sync
|
||||
displayName: UT clients & cli & utilities & sync
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Punit-tests -pl hudi-client/hudi-client-common,hudi-client/hudi-flink-client,hudi-client/hudi-java-client,hudi-cli,hudi-utilities,hudi-sync/hudi-hive-sync
|
||||
options: $(MVN_OPTS_TEST) -Punit-tests -pl $(JOB3_MODULES)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- task: Maven@3
|
||||
displayName: FT clients & cli & utilities & sync/hive-sync
|
||||
displayName: FT clients & cli & utilities & sync
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Pfunctional-tests -pl hudi-client/hudi-client-common,hudi-client/hudi-flink-client,hudi-client/hudi-java-client,hudi-cli,hudi-utilities,hudi-sync/hudi-hive-sync
|
||||
options: $(MVN_OPTS_TEST) -Pfunctional-tests -pl $(JOB3_MODULES)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- job: UT_FT_4
|
||||
displayName: UT FT other modules
|
||||
timeoutInMinutes: '120'
|
||||
@@ -124,28 +177,27 @@ stages:
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'clean install'
|
||||
options: -T 2.5C -DskipTests
|
||||
options: $(MVN_OPTS_INSTALL)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
- task: Maven@3
|
||||
displayName: UT other modules
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Punit-tests -pl $(EXCLUDE_TESTED_MODULES)
|
||||
options: $(MVN_OPTS_TEST) -Punit-tests -pl $(JOB4_MODULES)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- task: Maven@3
|
||||
displayName: FT other modules
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Pfunctional-tests -pl $(EXCLUDE_TESTED_MODULES)
|
||||
options: $(MVN_OPTS_TEST) -Pfunctional-tests -pl $(JOB4_MODULES)
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- job: IT
|
||||
displayName: IT modules
|
||||
timeoutInMinutes: '120'
|
||||
@@ -155,19 +207,18 @@ stages:
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'clean install'
|
||||
options: -T 2.5C -Pintegration-tests -DskipTests
|
||||
options: $(MVN_OPTS_INSTALL) -Pintegration-tests
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
- task: Maven@3
|
||||
displayName: UT integ-test
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
goals: 'test'
|
||||
options: -Pintegration-tests -DskipUTs=false -DskipITs=true -pl hudi-integ-test test
|
||||
options: $(MVN_OPTS_TEST) -Pintegration-tests -DskipUTs=false -DskipITs=true -pl hudi-integ-test
|
||||
publishJUnitResults: false
|
||||
jdkVersionOption: '1.8'
|
||||
mavenOptions: '-Xmx4g $(MAVEN_OPTS)'
|
||||
mavenOptions: '-Xmx4g'
|
||||
- task: AzureCLI@2
|
||||
displayName: Prepare for IT
|
||||
inputs:
|
||||
@@ -180,5 +231,6 @@ stages:
|
||||
tar -xvf $(Pipeline.Workspace)/$(SPARK_ARCHIVE).tgz -C $(Pipeline.Workspace)/
|
||||
mkdir /tmp/spark-events/
|
||||
- script: |
|
||||
mvn $(MAVEN_OPTS) -Pintegration-tests verify
|
||||
export SPARK_HOME=$(Pipeline.Workspace)/$(SPARK_ARCHIVE)
|
||||
mvn $(MVN_OPTS_TEST) -Pintegration-tests verify
|
||||
displayName: IT
|
||||
|
||||
Reference in New Issue
Block a user