Skip to content

Commit

Permalink
revert ci
Browse files Browse the repository at this point in the history
  • Loading branch information
GOODBOY008 committed Sep 20, 2023
1 parent 3d2546a commit bbac948
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public class OracleE2eITCase extends FlinkContainerTestEnvironment {

private static final Path oracleCdcJar = TestUtils.getResource("oracle-cdc-connector.jar");
private static final Path mysqlDriverJar = TestUtils.getResource("mysql-driver.jar");
private static final DockerImageName oracleImageName =
DockerImageName.parse("goodboy008/oracle-19.3.0-ee").withTag("non-cdb");
private static OracleContainer oracle;

@Before
Expand Down Expand Up @@ -85,7 +83,7 @@ public static void afterClass() {
// Cleanup the oracle image, because it's too large and will cause the next test to fail.
oracle.getDockerClient()
.listImagesCmd()
.withImageNameFilter(oracleImageName.getUnversionedPart())
.withImageNameFilter(ORACLE_IMAGE)
.exec()
.forEach(image -> oracle.getDockerClient().removeImageCmd(image.getId()).exec());
}
Expand Down
10 changes: 4 additions & 6 deletions tools/azure-pipelines/jobs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ jobs:
module: mongodb
sqlserver:
module: sqlserver
tidb:
module: tidb
db2:
module: db2
vitess:
module: vitess
misc:
module: misc
e2e_1:
module: e2e_1
steps:
# download artifact from compile stage
- task: DownloadPipelineArtifact@2
Expand Down Expand Up @@ -146,10 +146,8 @@ jobs:
module: mysql
oceanbase:
module: oceanbase
tidb:
module: tidb
e2e_2:
module: e2e_2
e2e:
module: e2e
steps:
# download artifact from compile stage
- task: DownloadPipelineArtifact@2
Expand Down
19 changes: 5 additions & 14 deletions tools/ci/stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ STAGE_TIDB="tidb"
STAGE_OCEANBASE="oceanbase"
STAGE_DB2="db2"
STAGE_VITESS="vitess"
STAGE_E2E_1="e2e_1"
STAGE_E2E_2="e2e_2"
STAGE_E2E="e2e"
STAGE_MISC="misc"

MODULES_MYSQL="\
Expand Down Expand Up @@ -97,12 +96,7 @@ function get_compile_modules_for_stage() {
(${STAGE_VITESS})
echo "-pl $MODULES_VITESS -am"
;;
(${STAGE_E2E_1})
# 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
echo ""
;;
(${STAGE_E2E_2})
(${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
echo ""
Expand Down Expand Up @@ -136,7 +130,7 @@ 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_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_vitess,$negated_e2e"

Expand Down Expand Up @@ -168,11 +162,8 @@ function get_test_modules_for_stage() {
(${STAGE_VITESS})
echo "-pl $modules_vitess"
;;
(${STAGE_E2E_1})
echo "-pl $modules_e2e -Dtest=Db2E2eITCase,MongoE2eITCase,OracleE2eITCase,PostgresE2eITCase,SqlServerE2eITCas,VitessE2eITCase"
;;
(${STAGE_E2E_2})
echo "-pl $modules_e2e -Dtest=MySqlE2eITCase,TiDBE2eITCase"
(${STAGE_E2E})
echo "-pl $modules_e2e"
;;
(${STAGE_MISC})
echo "-pl $modules_misc"
Expand Down

0 comments on commit bbac948

Please sign in to comment.