-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some assert case for db-discovery (#22484)
* Add some case to discovry IT * Fix scenarios * Adjustment scenario * Add some cases * Rename and fix checkstyle * Add newline * Revise * Fix error * Fix it * Fix it
- Loading branch information
1 parent
1926b4d
commit 288fc4d
Showing
14 changed files
with
249 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
name: IT - Discovery | ||
|
||
on: | ||
push: | ||
branches: [ master, dev ] | ||
paths: | ||
- '.github/workflows/it-discovery.yml' | ||
- 'infra/common/src/main/**' | ||
- 'features/db-discovery/src/main/**' | ||
- 'features/readwrite-splitting/src/main/**' | ||
- 'proxy/**/src/main/**' | ||
- 'jdbc/core/src/main/**' | ||
- '!test/**' | ||
- 'test/pom.xml' | ||
- 'test/integration-test/fixture/**' | ||
- 'test/integration-test/env/**' | ||
- 'test/integration-test/discovery/**' | ||
- '!*.md' | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- '.github/workflows/it-discovery.yml' | ||
- 'infra/common/src/main/**' | ||
- 'features/db-discovery/src/main/**' | ||
- 'features/readwrite-splitting/src/main/**' | ||
- 'proxy/**/src/main/**' | ||
- 'jdbc/core/src/main/**' | ||
- '!test/**' | ||
- 'test/pom.xml' | ||
- 'test/integration-test/fixture/**' | ||
- 'test/integration-test/env/**' | ||
- 'test/integration-test/discovery/**' | ||
- '!*.md' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: it-discovery-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotless.apply.skip=true -Djacoco.skip=true -Drat.skip=true -Dfailsafe.skipAfterFailureCount=1 -Dio.netty.leakDetectionLevel=advanced | ||
|
||
jobs: | ||
discovery-it-test: | ||
name: discovery-it-test | ||
runs-on: ubuntu-latest | ||
env: | ||
mysql_version: 5.7 | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
mode: [ Cluster ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache Maven Repos | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: shardingsphere-maven-third-party-it-cache${{ github.sha }} | ||
restore-keys: | | ||
shardingsphere-maven-third-party-it-cache | ||
shardingsphere-maven-third-party- | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 8 | ||
- name: Build Discovery IT image | ||
run: ./mvnw -B clean install -am -pl test/integration-test/discovery -Pit.env.docker -DskipTests | ||
- name: Run MySQL Discovery Integration Test | ||
run: ./mvnw -nsu -B install -f test/integration-test/discovery/pom.xml -Dit.env.type=docker -Dit.docker.mysql.version=mysql:5.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.