This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 043dc7939d8 Add mode strategy matrix in Github action for single rule
and mixture rule (#19136)
043dc7939d8 is described below
commit 043dc7939d824c5429a6e63788851ca4be14ad2a
Author: gin <[email protected]>
AuthorDate: Thu Jul 14 16:10:40 2022 +0800
Add mode strategy matrix in Github action for single rule and mixture rule
(#19136)
* Fix cluster IT in single rules scenarios
* fix
* Fix CI
---
.github/workflows/it.yml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/it.yml b/.github/workflows/it.yml
index 85ff22c6410..d64ebdf5538 100644
--- a/.github/workflows/it.yml
+++ b/.github/workflows/it.yml
@@ -137,6 +137,7 @@ jobs:
adapter: [ proxy, jdbc ]
database: [ MySQL, PostgreSQL ]
scenario: [ db, tbl, encrypt, readwrite_splitting, shadow ]
+ mode: [Standalone, Cluster]
steps:
- uses: actions/checkout@v2
- name: Cache Maven Repos
@@ -159,7 +160,8 @@ jobs:
if: matrix.adapter == 'proxy'
run: docker load -i /tmp/shardingsphere-proxy-test.tar
- name: Run Integration Test
- run: ./mvnw -nsu -B install -f
shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/pom.xml
-Dcheckstyle.skip=true -Dspotless.apply.skip=true -Dit.run.modes=Cluster
-Dit.scenarios=${{ matrix.scenario }} -Dit.cluster.adapters=${{ matrix.adapter
}} -Dit.culster.databases=${{ matrix.database }} -Dit.cluster.env.type=DOCKER
+ if: matrix.mode == 'Standalone'
+ run: ./mvnw -nsu -B install -f
shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/pom.xml
-Dcheckstyle.skip=true -Dspotless.apply.skip=true -Dit.run.modes=${{
matrix.mode }} -Dit.scenarios=${{ matrix.scenario }} -Dit.cluster.adapters=${{
matrix.adapter }} -Dit.cluster.databases=${{ matrix.database }}
-Dit.cluster.env.type=DOCKER
it-mixture-rule:
name: mixture rule
@@ -172,6 +174,7 @@ jobs:
adapter: [ proxy, jdbc ]
database: [ MySQL, PostgreSQL ]
scenario: [ dbtbl_with_readwrite_splitting,
dbtbl_with_readwrite_splitting_and_encrypt ]
+ mode: [Standalone, Cluster]
steps:
- uses: actions/checkout@v2
- name: Cache Maven Repos
@@ -194,7 +197,8 @@ jobs:
if: matrix.adapter == 'proxy'
run: docker load -i /tmp/shardingsphere-proxy-test.tar
- name: Run Integration Test
- run: ./mvnw -nsu -B install -f
shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/pom.xml
-Dcheckstyle.skip=true -Dspotless.apply.skip=true -Dit.run.modes=Cluster
-Dit.scenarios=${{ matrix.scenario }} -Dit.cluster.adapters=${{ matrix.adapter
}} -Dit.cluster.databases=${{ matrix.database }} -Dit.cluster.env.type=DOCKER
+ if: matrix.mode == 'Standalone'
+ run: ./mvnw -nsu -B install -f
shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/pom.xml
-Dcheckstyle.skip=true -Dspotless.apply.skip=true -Dit.run.modes=${{
matrix.mode }} -Dit.scenarios=${{ matrix.scenario }} -Dit.cluster.adapters=${{
matrix.adapter }} -Dit.cluster.databases=${{ matrix.database }}
-Dit.cluster.env.type=DOCKER
mysql-proxy-agent:
name: Agent Metrics & OpenTelemetry