Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 38 additions & 21 deletions .github/workflows/parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,43 +53,60 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
profile:
include:
# Pay attention! Don't use profile with character ':'!
- spark2
- spark2.3
- spark3.0
- spark3
- spark3.2
- spark3.2.0
- spark3.3
- spark3.4
- spark3.5
- spark3.5-scala2.13
- mr-hadoop2.8
- mr-hadoop3.2
- tez
- tez-hadoop3.2
- dashboard
- profile: spark2
java-version: 8
- profile: spark2.3
java-version: 8
- profile: spark3.0
java-version: 8
- profile: spark3
java-version: 8
- profile: spark3.2
java-version: 8
- profile: spark3.2.0
java-version: 8
- profile: spark3.3
java-version: 8
- profile: spark3.4
java-version: 8
- profile: spark3.5
java-version: 8
- profile: spark3.5-scala2.13
java-version: 8
- profile: spark4
java-version: 17
- profile: mr-hadoop2.8
java-version: 8
- profile: mr-hadoop3.2
java-version: 8
- profile: tez
java-version: 8
- profile: tez-hadoop3.2
java-version: 8
- profile: dashboard
java-version: 8
fail-fast: false
name: -P${{ matrix.profile }}
steps:
- name: Set /etc/hosts mapping
run: sudo hostname "action-host" | sudo echo "127.0.0.1 action-host" | sudo tee -a /etc/hosts
- name: Checkout project
uses: actions/checkout@v3
- name: Set up JDK ${{ inputs.java-version }}
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ inputs.java-version }}
java-version: ${{ matrix.java-version }}
distribution: ${{ inputs.jdk-distro }}
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: mvn-${{ inputs.java-version }}-package-${{ matrix.profile }}-${{ hashFiles('**/pom.xml') }}
key: mvn-${{ matrix.java-version }}-package-${{ matrix.profile }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
mvn-${{ inputs.java-version }}-package-${{ matrix.profile }}-
mvn-${{ inputs.java-version }}-package-
mvn-${{ matrix.java-version }}-package-${{ matrix.profile }}-
mvn-${{ matrix.java-version }}-package-
- name: Execute `./mvnw ${{ inputs.maven-args }} -P${{ matrix.profile }}`
run: |
PROFILES="${{ matrix.profile }}"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sequential.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
key: mvn-${{ inputs.java-version }}-${{ inputs.cache-key }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
mvn-${{ inputs.java-version }}-${{ inputs.cache-key }}-
- name: Execute `./mvnw ${{ inputs.maven-args }} -Pspark4`
if: inputs.java-version == '17'
run: ./mvnw -B -fae ${{ inputs.maven-args }} -Pspark4 | tee -a /tmp/maven.log;
shell: bash
- name: Execute `./mvnw ${{ inputs.maven-args }} -Pspark3`
run: ./mvnw -B -fae ${{ inputs.maven-args }} -Pspark3 | tee -a /tmp/maven.log;
shell: bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ public static boolean isStageResubmitSupported() {
// FetchFailedException.
// Therefore, the stage re-computation feature is only enabled for Spark versions larger than or
// equal to 2.3.
return SparkVersionUtils.isSpark3()
return SparkVersionUtils.isSpark4()
|| SparkVersionUtils.isSpark3()
|| (SparkVersionUtils.isSpark2() && SparkVersionUtils.MINOR_VERSION >= 3);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public static boolean isSpark3() {
return MAJOR_VERSION == 3;
}

public static boolean isSpark4() {
return MAJOR_VERSION == 4;
}

public static boolean isSpark320() {
return SPARK_VERSION.matches("^3.2.0([^\\d].*)?$");
}
Expand Down
Loading
Loading