-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-6509] Add GitHub CI for Java 17 #9136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
68f6b69
Add Hadoop conf to HiveConf for HiveSyncConfig
CTTY 10f012b
Add GitHub CI for spark33/34 Java 17
CTTY b8035db
Testing docker java 17 test
CTTY e083529
minor
CTTY 7a86dee
test
CTTY 6bdcdac
All docker java17 tests passed, adding all other CIs back
CTTY 5a07bf7
minor
CTTY e8cd0e2
trigger github ci
CTTY 8d3cca1
fix java17 test flag
CTTY 44d10bd
Rebase onto master. Migrate one new test
CTTY 100b397
stablize TestHoodieWrapperFileSystem
CTTY 60eb622
trigger ci
CTTY 8d76f7d
add ps in alpine image
CTTY 3f8c949
minor
CTTY 26777da
minor
CTTY 1735065
isolate bundle validation issue
CTTY 2cc01c6
Change option to use external hdfs, wrap external hdfs logic to util …
CTTY ec2e7cd
minor
CTTY c1da8c4
try removing hdfs-site
CTTY dbfec9a
combine docker java17 test and bundle validation
CTTY 256b4b0
make new script executable
CTTY d34bfdd
fix script permission
CTTY f6e952f
add docker container name
CTTY 6358c86
restart docker container
CTTY 24d5ac0
fix path
CTTY cc1d428
minor
CTTY ddad307
check dir
CTTY de24436
fix path
CTTY 323c1de
fixing ssh command
CTTY 6a86262
only test for spark 3.4
CTTY 8e54816
trigger ci again
CTTY 5a0ed39
Have 6 datanodes
CTTY 10f4cb2
10 datanodes
CTTY cdaff5f
have 8 datanodes
CTTY 409e7d8
5 nodes
CTTY 172b237
3 nodes
CTTY d018c71
run java 17 ci first
CTTY 9bfcf7c
adjust ci
CTTY 150f0be
minor
CTTY d496aed
run clean test
CTTY 91a5dec
seperate CIs
CTTY c8540ca
Fix core site
CTTY 3723d50
Fix core site
CTTY 9bc5072
fix core-site
CTTY 91c5a05
try removing spark-streaming test dep
CTTY 6b33d37
add spark streaming back
CTTY 8b62b65
Revert "Add Hadoop conf to HiveConf for HiveSyncConfig"
CTTY File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ jobs: | |
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v2 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
|
|
@@ -76,9 +76,9 @@ jobs: | |
| sparkModules: "hudi-spark-datasource/hudi-spark3.4.x" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v2 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
|
|
@@ -112,6 +112,61 @@ jobs: | |
| run: | ||
| mvn test -Pfunctional-tests -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -pl "$SPARK_COMMON_MODULES,$SPARK_MODULES" $MVN_ARGS | ||
|
|
||
| test-spark-java17: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - scalaProfile: "scala-2.12" | ||
| sparkProfile: "spark3.3" | ||
| sparkModules: "hudi-spark-datasource/hudi-spark3.3.x" | ||
| - scalaProfile: "scala-2.12" | ||
| sparkProfile: "spark3.4" | ||
| sparkModules: "hudi-spark-datasource/hudi-spark3.4.x" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
| architecture: x64 | ||
| - name: Build Project | ||
| env: | ||
| SCALA_PROFILE: ${{ matrix.scalaProfile }} | ||
| SPARK_PROFILE: ${{ matrix.sparkProfile }} | ||
| run: | ||
| mvn clean install -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -DskipTests=true $MVN_ARGS | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '17' | ||
| distribution: 'adopt' | ||
| architecture: x64 | ||
| - name: Quickstart Test | ||
| env: | ||
| SCALA_PROFILE: ${{ matrix.scalaProfile }} | ||
| SPARK_PROFILE: ${{ matrix.sparkProfile }} | ||
| run: | ||
| mvn test -Punit-tests -Pjava17 -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -pl hudi-examples/hudi-examples-spark $MVN_ARGS | ||
| - name: UT - Common & Spark | ||
| env: | ||
| SCALA_PROFILE: ${{ matrix.scalaProfile }} | ||
| SPARK_PROFILE: ${{ matrix.sparkProfile }} | ||
| SPARK_MODULES: ${{ matrix.sparkModules }} | ||
| if: ${{ !endsWith(env.SPARK_PROFILE, '3.2') }} # skip test spark 3.2 as it's covered by Azure CI | ||
| run: | ||
| mvn test -Punit-tests -Pjava17 -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -pl "hudi-common,$SPARK_COMMON_MODULES,$SPARK_MODULES" $MVN_ARGS | ||
| - name: FT - Spark | ||
| env: | ||
| SCALA_PROFILE: ${{ matrix.scalaProfile }} | ||
| SPARK_PROFILE: ${{ matrix.sparkProfile }} | ||
| SPARK_MODULES: ${{ matrix.sparkModules }} | ||
| if: ${{ !endsWith(env.SPARK_PROFILE, '3.2') }} # skip test spark 3.2 as it's covered by Azure CI | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: not required. |
||
| run: | ||
| mvn test -Pfunctional-tests -Pjava17 -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -pl "$SPARK_COMMON_MODULES,$SPARK_MODULES" $MVN_ARGS | ||
|
|
||
| test-flink: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
|
|
@@ -123,9 +178,9 @@ jobs: | |
| - flinkProfile: "flink1.16" | ||
| - flinkProfile: "flink1.17" | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v2 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
|
|
@@ -151,6 +206,34 @@ jobs: | |
| mvn clean install -Pintegration-tests -D"$SCALA_PROFILE" -D"$FLINK_PROFILE" -pl hudi-flink-datasource/hudi-flink -am -Davro.version=1.10.0 -DskipTests=true $MVN_ARGS | ||
| mvn verify -Pintegration-tests -D"$SCALA_PROFILE" -D"$FLINK_PROFILE" -pl hudi-flink-datasource/hudi-flink $MVN_ARGS | ||
|
|
||
| docker-java17-test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - flinkProfile: 'flink1.17' | ||
| sparkProfile: 'spark3.4' | ||
| sparkRuntime: 'spark3.4.0' | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
| architecture: x64 | ||
| - name: UT/FT - Docker Test - OpenJDK 17 | ||
| env: | ||
| FLINK_PROFILE: ${{ matrix.flinkProfile }} | ||
| SPARK_PROFILE: ${{ matrix.sparkProfile }} | ||
| SPARK_RUNTIME: ${{ matrix.sparkRuntime }} | ||
| SCALA_PROFILE: 'scala-2.12' | ||
| if: ${{ env.SPARK_PROFILE >= 'spark3.4' }} # Only support Spark 3.4 for now | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: not required. |
||
| run: | | ||
| HUDI_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
| ./packaging/bundle-validation/run_docker_java17.sh | ||
|
|
||
| validate-bundles: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
|
|
@@ -181,9 +264,9 @@ jobs: | |
| sparkProfile: 'spark2.4' | ||
| sparkRuntime: 'spark2.4.8' | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v2 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
|
|
@@ -255,9 +338,9 @@ jobs: | |
| sparkProfile: 'spark2.4' | ||
| sparkRuntime: 'spark2.4.8' | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v2 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
|
|
@@ -294,9 +377,9 @@ jobs: | |
| - sparkProfile: 'spark2.4' | ||
| sparkArchive: 'spark-2.4.4/spark-2.4.4-bin-hadoop2.7.tgz' | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up JDK 8 | ||
| uses: actions/setup-java@v2 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: '8' | ||
| distribution: 'adopt' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: not required.