|
65 | 65 | RATIS_REPO: ${{ github.event.inputs.ratis-repo }} |
66 | 66 | RATIS_VERSION: ${{ github.event.inputs.ratis-ref }} |
67 | 67 | JAVA_VERSION: ${{ github.event.inputs.java-version }} |
| 68 | + SPLITS: ${{ github.event.inputs.splits }} |
| 69 | + SUBMODULE: ${{ github.event.inputs.submodule }} |
68 | 70 | # Surefire 3.0.0-M4 is used because newer versions do not reliably kill the fork on timeout |
69 | 71 | # SUREFIRE-1722, SUREFIRE-1815 |
70 | 72 | SUREFIRE_VERSION: 3.0.0-M4 |
|
82 | 84 | name: Generate test matrix |
83 | 85 | run: | |
84 | 86 | splits=() |
85 | | - for ((i = 1; i <= ${{ github.event.inputs.splits }}; i++)); do |
| 87 | + for ((i = 1; i <= $SPLITS; i++)); do |
86 | 88 | splits+=("$i") |
87 | 89 | done |
88 | 90 | printf -v x "%s," "${splits[@]}" |
@@ -130,15 +132,15 @@ jobs: |
130 | 132 | - name: Build (most) of Ozone |
131 | 133 | run: | |
132 | 134 | args="-DskipRecon -DskipShade -Dmaven.javadoc.skip=true -Drocks_tools_native" |
133 | | - if [[ "${{ github.event.inputs.ratis-ref }}" != "" ]]; then |
| 135 | + if [[ "$RATIS_VERSION" != "" ]]; then |
134 | 136 | args="$args -Dratis.version=${{ needs.ratis.outputs.ratis-version }}" |
135 | 137 | args="$args -Dratis.thirdparty.version=${{ needs.ratis.outputs.thirdparty-version }}" |
136 | 138 | args="$args -Dio.grpc.version=${{ needs.ratis.outputs.grpc-version }}" |
137 | 139 | args="$args -Dnetty.version=${{ needs.ratis.outputs.netty-version }}" |
138 | 140 | args="$args -Dgrpc.protobuf-compile.version=${{ needs.ratis.outputs.protobuf-version }}" |
139 | 141 | fi |
140 | 142 |
|
141 | | - args="$args -am -pl :${{ github.event.inputs.submodule }}" |
| 143 | + args="$args -am -pl :$SUBMODULE" |
142 | 144 |
|
143 | 145 | hadoop-ozone/dev-support/checks/build.sh $args |
144 | 146 | - name: Store Maven repo for tests |
@@ -199,16 +201,16 @@ jobs: |
199 | 201 | export OZONE_REPO_CACHED=true |
200 | 202 | fi |
201 | 203 |
|
202 | | - args="-DexcludedGroups=native|slow|unhealthy -DskipShade -Drocks_tools_native" |
203 | | - if [[ "${{ github.event.inputs.ratis-ref }}" != "" ]]; then |
| 204 | + args="-DexcludedGroups=slow|unhealthy -DskipShade -Drocks_tools_native" |
| 205 | + if [[ "$RATIS_VERSION" != "" ]]; then |
204 | 206 | args="$args -Dratis.version=${{ needs.ratis.outputs.ratis-version }}" |
205 | 207 | args="$args -Dratis.thirdparty.version=${{ needs.ratis.outputs.thirdparty-version }}" |
206 | 208 | args="$args -Dio.grpc.version=${{ needs.ratis.outputs.grpc-version }}" |
207 | 209 | args="$args -Dnetty.version=${{ needs.ratis.outputs.netty-version }}" |
208 | 210 | args="$args -Dgrpc.protobuf-compile.version=${{ needs.ratis.outputs.protobuf-version }}" |
209 | 211 | fi |
210 | 212 |
|
211 | | - args="$args -pl :${{ github.event.inputs.submodule }}" |
| 213 | + args="$args -pl :$SUBMODULE" |
212 | 214 |
|
213 | 215 | if [ "$TEST_METHOD" = "ALL" ]; then |
214 | 216 | echo "Running all tests from $TEST_CLASS" |
|
0 commit comments