Skip to content

Commit

Permalink
[vitess] Add Vitess tests in Azure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickRen committed Jun 19, 2023
1 parent e349cb1 commit 1fb4f82
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/azure-pipelines/jobs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
module: tidb
db2:
module: db2
vitess:
module: vitess
misc:
module: misc
steps:
Expand Down
15 changes: 14 additions & 1 deletion tools/ci/stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ STAGE_SQLSERVER="sqlserver"
STAGE_TIDB="tidb"
STAGE_OCEANBASE="oceanbase"
STAGE_DB2="db2"
STAGE_VITESS="vitess"
STAGE_E2E="e2e"
STAGE_MISC="misc"

Expand Down Expand Up @@ -57,6 +58,10 @@ MODULES_DB2="\
flink-connector-db2-cdc,\
flink-sql-connector-db2-cdc"

MODULES_VITESS="\
flink-connector-vitess-cdc,\
flink-sql-connector-vitess-cdc"

MODULES_E2E="\
flink-cdc-e2e-tests"

Expand Down Expand Up @@ -88,6 +93,9 @@ function get_compile_modules_for_stage() {
(${STAGE_DB2})
echo "-pl $MODULES_DB2 -am"
;;
(${STAGE_VITESS})
echo "-pl $MODULES_VITESS -am"
;;
(${STAGE_E2E})
# compile everything; using the -am switch does not work with negated module lists!
# the negation takes precedence, thus not all required modules would be built
Expand All @@ -112,6 +120,7 @@ function get_test_modules_for_stage() {
local modules_tidb=$MODULES_TIDB
local modules_oceanbase=$MODULES_OCEANBASE
local modules_db2=$MODULES_DB2
local modules_vitess=$MODULES_VITESS
local modules_e2e=$MODULES_E2E
local negated_mysql=\!${MODULES_MYSQL//,/,\!}
local negated_postgres=\!${MODULES_POSTGRES//,/,\!}
Expand All @@ -121,8 +130,9 @@ function get_test_modules_for_stage() {
local negated_tidb=\!${MODULES_TIDB//,/,\!}
local negated_oceanbase=\!${MODULES_OCEANBASE//,/,\!}
local negated_db2=\!${MODULES_DB2//,/,\!}
local negated_vitess=\!${MODULES_vitess//,/,\!}
local negated_e2e=\!${MODULES_E2E//,/,\!}
local modules_misc="$negated_mysql,$negated_postgres,$negated_oracle,$negated_mongodb,$negated_sqlserver,$negated_tidb,$negated_oceanbase,$negated_db2,$negated_e2e"
local modules_misc="$negated_mysql,$negated_postgres,$negated_oracle,$negated_mongodb,$negated_sqlserver,$negated_tidb,$negated_oceanbase,$negated_db2,$negated_vitess,$negated_e2e"

case ${stage} in
(${STAGE_MYSQL})
Expand All @@ -149,6 +159,9 @@ function get_test_modules_for_stage() {
(${STAGE_DB2})
echo "-pl $modules_db2"
;;
(${STAGE_VITESS})
echo "-pl $modules_vitess"
;;
(${STAGE_E2E})
echo "-pl $modules_e2e"
;;
Expand Down

0 comments on commit 1fb4f82

Please sign in to comment.