Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 8 additions & 5 deletions .github/workflows/ci-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,26 @@ on:
required: false
type: string
default: ""
run-spark-scala213:
description: "Whether to run the Spark tests with Scala 2.13."
required: false
type: boolean
default: false
jobs:
build:
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
module: [ core, flink1, flink2, spark3, spark3-lake, spark3-scala213, lake ]
exclude: ${{ fromJSON(inputs.run-spark-scala213 && '[]' || '[{"module":"spark3-scala213"}]') }}
include:
- module: flink1
test-profile: "test-flink1"
- module: flink2
test-profile: "test-flink2"
- module: spark3-lake
test-profile: "test-spark3"
- module: spark3-scala213
scala-profile: "-Pscala-2.13"
test-profile: "test-spark3"
name: "${{ matrix.module }}"
steps:
- name: Checkout code
Expand All @@ -58,14 +61,14 @@ jobs:
distribution: 'temurin'
- name: Build
run: |
mvn -T 1C -B clean install -DskipTests ${{ matrix.scala-profile }} ${{ inputs.maven-parameters }}
mvn -T 1C -B clean install -DskipTests ${{ matrix.module == 'spark3-scala213' && '-Pscala-2.13' || '' }} ${{ inputs.maven-parameters }}
- name: Test
timeout-minutes: 60
run: |
TEST_MODULES=$(./.github/workflows/stage.sh ${{ matrix.module }})
echo "github ref: ${{ github.ref }}"
echo "Start testing modules: $TEST_MODULES"
mvn -B verify $TEST_MODULES -Ptest-coverage -P${{ matrix.test-profile || format('test-{0}', matrix.module) }} ${{ matrix.scala-profile }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties ${{ inputs.maven-parameters }}
mvn -B verify $TEST_MODULES -Ptest-coverage -P${{ matrix.module == 'spark3-scala213' && 'test-spark3' || matrix.test-profile || format('test-{0}', matrix.module) }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties ${{ inputs.maven-parameters }}
env:
MAVEN_OPTS: -Xmx4096m
ARTIFACTS_OSS_ENDPOINT: ${{ secrets.ARTIFACTS_OSS_ENDPOINT }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
schedule:
# Run at 20:00 UTC daily which is the lowest traffic time for Fluss project.
- cron: "0 20 * * *"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
Expand All @@ -31,4 +32,5 @@ jobs:
uses: ./.github/workflows/ci-template.yaml
with:
java-version: "8"
maven-parameters: "-Pjava8"
maven-parameters: "-Pjava8"
run-spark-scala213: true
Loading