Skip to content

Commit

Permalink
rearrange jobs in action tab
Browse files Browse the repository at this point in the history
  • Loading branch information
GOODBOY008 committed Sep 30, 2024
1 parent 76f1847 commit 1d0e0b8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/flink_cdc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,30 @@ jobs:
run: mvn --no-snapshot-updates -B package -DskipTests
- name: Run license check
run: gem install rubyzip -v 2.3.0 && ./tools/ci/license_check.rb

ut:
strategy:
matrix:
java-version: [ '8' ]
module: [ 'core', 'pipeline_connectors', 'mysql', 'postgres', 'oracle', 'mongodb6', 'mongodb7', 'sqlserver', 'tidb', 'oceanbase', 'db2', 'vitess' ]
name: Unit Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: ${{ matrix.java-version }}
module: ${{ matrix.module }}
java-version: "[ '8' ]"
module: "[ 'core', 'pipeline_connectors', 'mysql', 'postgres', 'oracle', 'mongodb6', 'mongodb7', 'sqlserver', 'tidb', 'oceanbase', 'db2', 'vitess' ]"

pipeline_e2e:
strategy:
matrix:
java-version: [ '8' ]
flink-version: ['1.17.2', '1.18.1', '1.19.1', '1.20.0']
module: [ 'pipeline_e2e' ]
name: Pipeline End-to-end Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: ${{ matrix.java-version }}
flink-version: ${{ matrix.flink-version }}
module: ${{ matrix.module }}
java-version: "[ '8' ]"
flink-version: "['1.17.2', '1.18.1', '1.19.1', '1.20.0']"
module: "[ 'pipeline_e2e' ]"

source_e2e:
strategy:
matrix:
java-version: [ '8' ]
flink-version: ['1.16.3', '1.17.2', '1.18.1', '1.19.1', '1.20.0']
module: [ 'source_e2e' ]
name: Source End-to-end Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: ${{ matrix.java-version }}
flink-version: ${{ matrix.flink-version }}
module: ${{ matrix.module }}
java-version: "[ '8' ]"
flink-version: "['1.16.3', '1.17.2', '1.18.1', '1.19.1', '1.20.0']"
module: "[ 'source_e2e' ]"

migration_test:
name: Migration Tests
uses: ./.github/workflows/flink_cdc_migration_test.yml
16 changes: 11 additions & 5 deletions .github/workflows/flink_cdc_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,29 @@ jobs:
compile_and_test:
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
matrix:
java-version: ${{ inputs.java-version }}
flink-version: ${{ inputs.flink-version }}
module: ${{ inputs.module }}
custom-maven-parameter: ${{ inputs.custom-maven-parameter }}
steps:
- run: echo "Running CI pipeline for JDK version ${{ inputs.java-version }}"

- name: Clean up disk space
run: |
set -euo pipefail
echo "Disk space before cleanup"
df -h
echo "Cleaning up disk space"
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
echo "Disk space after cleanup"
df -h

Expand All @@ -138,7 +144,7 @@ jobs:
timeout-minutes: 60
run: |
set -o pipefail
case ${{ inputs.module }} in
("core")
modules=${{ env.MODULES_CORE }}
Expand Down Expand Up @@ -191,7 +197,7 @@ jobs:
fi

build_maven_parameter=""
if [ ${{ inputs.module }} == "mongodb6" ]; then
build_maven_parameter="-DspecifiedMongoVersion=6.0.16"
elif [ ${{ inputs.module }} == "mongodb7" ]; then
Expand Down

0 comments on commit 1d0e0b8

Please sign in to comment.