This is an automated email from the ASF dual-hosted git repository.
zhangliang 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 117427be045 Refactor : refactor the naming of workflows by code of
conduct (#27177)
117427be045 is described below
commit 117427be045647ed6831df81c2cd8ff1bb58916b
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Fri Jul 14 12:41:49 2023 +0800
Refactor : refactor the naming of workflows by code of conduct (#27177)
---
.github/workflows/e2e-sql.yml | 28 +++++++++++++++++-----------
.github/workflows/nightly-build-artifact.yml | 14 +++++++-------
.github/workflows/nightly-build-example.yml | 11 ++++++-----
.github/workflows/nightly-check.yml | 2 +-
.github/workflows/nightly-ci.yml | 8 ++++----
.github/workflows/nightly-e2e.yml | 28 ++++++++++++++--------------
.github/workflows/nightly-sql-parser.yml | 5 +++--
7 files changed, 52 insertions(+), 44 deletions(-)
diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml
index 1532caab365..d4662b52719 100644
--- a/.github/workflows/e2e-sql.yml
+++ b/.github/workflows/e2e-sql.yml
@@ -65,7 +65,7 @@ env:
jobs:
build-e2e-image:
- name: Build E2E image
+ name: Build E2E Image
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
@@ -81,11 +81,11 @@ jobs:
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-e2e-cache-
${{ env.REPOSITORY_NAME }}-maven-third-party-
- - name: Build E2E image
+ - name: Build E2E Image
run: ./mvnw -B clean install -am -pl test/e2e/sql -Pit.env.docker
-DskipTests -Dspotless.apply.skip=true
- name: Verify CI
run: ./mvnw -B install -pl test/e2e/sql -Dspotless.apply.skip=true
- - name: Save E2E image
+ - name: Save E2E Image
run: docker save -o /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
apache/shardingsphere-proxy-test:latest
- uses: actions/upload-artifact@v3
with:
@@ -94,11 +94,13 @@ jobs:
retention-days: 1
e2e-empty-rule:
- name: empty rule
+ name: Empty Rule
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build-e2e-image
strategy:
+ max-parallel: 5
+ fail-fast: false
matrix:
adapter: [ proxy, jdbc ]
database: [ MySQL, PostgreSQL, openGauss ]
@@ -122,24 +124,26 @@ jobs:
with:
distribution: 'temurin'
java-version: 8
- - name: Download E2E image
+ - name: Download E2E Image
if: matrix.adapter == 'proxy'
uses: actions/download-artifact@v3
with:
name: e2e-image
path: /tmp/
- - name: Load E2E image
+ - name: Load E2E Image
if: matrix.adapter == 'proxy'
run: docker load -i /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
- name: Run E2E Test
run: ./mvnw -nsu -B install -f test/e2e/sql/pom.xml
-Dspotless.apply.skip=true -Dit.run.modes=Cluster
-Dit.run.additional.cases=false -Dit.scenarios=${{ matrix.scenario }}
-Dit.cluster.adapters=${{ matrix.adapter }} -Dit.cluster.databases=${{
matrix.database }} -Dit.cluster.env.type=DOCKER ${{ matrix.additional-options }}
e2e-single-rule:
- name: single rule
+ name: Single Rule
needs: e2e-empty-rule
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
+ max-parallel: 5
+ fail-fast: false
matrix:
adapter: [ proxy, jdbc ]
mode: [ Standalone, Cluster ]
@@ -160,13 +164,13 @@ jobs:
with:
distribution: 'temurin'
java-version: 8
- - name: Download E2E image
+ - name: Download E2E Image
if: matrix.adapter == 'proxy'
uses: actions/download-artifact@v3
with:
name: e2e-image
path: /tmp/
- - name: Load E2E image
+ - name: Load E2E Image
if: matrix.adapter == 'proxy'
run: docker load -i /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
- name: Run E2E Test
@@ -178,6 +182,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
+ max-parallel: 5
+ fail-fast: false
matrix:
adapter: [ proxy, jdbc ]
mode: [ Standalone, Cluster ]
@@ -198,13 +204,13 @@ jobs:
with:
distribution: 'temurin'
java-version: 8
- - name: Download E2E image
+ - name: Download E2E Image
if: matrix.adapter == 'proxy'
uses: actions/download-artifact@v3
with:
name: e2e-image
path: /tmp/
- - name: Load E2E image
+ - name: Load E2E Image
if: matrix.adapter == 'proxy'
run: docker load -i /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
- name: Run E2E Test
diff --git a/.github/workflows/nightly-build-artifact.yml
b/.github/workflows/nightly-build-artifact.yml
index ae163a9f26d..4d317ceab64 100644
--- a/.github/workflows/nightly-build-artifact.yml
+++ b/.github/workflows/nightly-build-artifact.yml
@@ -37,6 +37,7 @@ env:
jobs:
upload-to-nightlies:
if: (github.event_name == 'schedule' && github.repository ==
'apache/shardingsphere')
+ name: Upload to Nightly Builds
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
@@ -52,7 +53,7 @@ jobs:
with:
distribution: 'temurin'
java-version: 11
- - name: Build project
+ - name: Build Project
run: |
./mvnw -B clean install -Prelease
- uses: burnett01/[email protected]
@@ -81,15 +82,14 @@ jobs:
with:
distribution: 'temurin'
java-version: 11
- - name: Cache Maven Repos
- uses: actions/cache@v3
+ - uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ env.REPOSITORY_NAME }}-maven-third-party-cache-${{
github.sha }}
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-cache-
${{ env.REPOSITORY_NAME }}-maven-third-party-
- - name: Log in to the Container registry
+ - name: Login Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.HUB }}
@@ -97,16 +97,16 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- - name: Push docker image
+ - name: Push Docker Image
run: ./mvnw -am -pl distribution/proxy -B -Prelease,docker.buildx.push
-DskipTests -Dproxy.image.repository=${{ env.PROXY }} -Dproxy.image.tag=${{
github.sha }} clean install
build-proxy-native-image:
if: github.repository == 'apache/shardingsphere'
+ name: Build GraalVM Native Image
timeout-minutes: 90
permissions:
contents: read
packages: write
- name: Build GraalVM Native Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -124,7 +124,7 @@ jobs:
registry: ${{ env.HUB }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Push docker image
+ - name: Push Docker Image
run: |
./mvnw -PgenerateStandardMetadata -DskipNativeTests -B -T1C clean
test
./mvnw -am -pl distribution/proxy-native
-Prelease.native,docker.buildx.push.native -B -T1C -DskipTests
-Dproxy.image.repository=${{ env.PROXY_NATIVE }} -Dproxy.image.tag=${{
github.sha }} clean package
diff --git a/.github/workflows/nightly-build-example.yml
b/.github/workflows/nightly-build-example.yml
index 4956ddd2de0..7b481914e97 100644
--- a/.github/workflows/nightly-build-example.yml
+++ b/.github/workflows/nightly-build-example.yml
@@ -29,7 +29,7 @@ env:
jobs:
build-cache:
if: github.repository == 'apache/shardingsphere'
- name: Build Cache
+ name: Build Project
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
@@ -54,6 +54,7 @@ jobs:
timeout-minutes: 90
needs: build-cache
strategy:
+ max-parallel: 5
fail-fast: false
matrix:
feature: [ sharding, readwrite-splitting, encrypt, shadow, mask ]
@@ -103,15 +104,15 @@ jobs:
key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{
hashFiles('**/pom.xml') }}
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-
- - name: Prepare environments
+ - name: Prepare Environments
run: sh
.github/workflows/resources/scripts/nightly-build-example/init-mysql-container.sh
- name: Build with Maven
run: ./mvnw -B -T1C -ntp clean install -DskipITs -DskipTests
- - name: Generate examples
+ - name: Generate Examples
run: ./mvnw -B clean install -f
examples/shardingsphere-example-generator/pom.xml -Pexample-generator
-Dproducts=${{ matrix.product }} -Dmodes=${{ matrix.mode }} -Dtransactions=${{
matrix.transaction }} -Dfeatures=${{ matrix.feature }} -Dframeworks=${{
matrix.framework }}
- - name: Test examples
+ - name: Test Examples
run : ./mvnw -B test -f
examples/shardingsphere-example-generator/target/generated-sources/shardingsphere-jdbc-sample/${{
matrix.feature }}--${{ matrix.framework }}--${{ matrix.mode }}--${{
matrix.transaction }}/pom.xml -Pexample-generator
-Dexec.cleanupDaemonThreads=false
- - name: Package examples
+ - name: Package Examples
run: |
cd
examples/shardingsphere-example-generator/target/generated-sources/shardingsphere-jdbc-sample/
tar -czvf ${{ matrix.feature }}--${{ matrix.framework }}--${{
matrix.mode }}--${{ matrix.transaction }}.tar.gz ${{ matrix.feature }}--${{
matrix.framework }}--${{ matrix.mode }}--${{ matrix.transaction }}
diff --git a/.github/workflows/nightly-check.yml
b/.github/workflows/nightly-check.yml
index 99803a5a278..363d7284143 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -47,7 +47,7 @@ jobs:
if: (github.repository == 'apache/shardingsphere')
name: Check - SonarCloud
runs-on: ubuntu-latest
- timeout-minutes: 40
+ timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml
index 165f208802b..12aedae8861 100644
--- a/.github/workflows/nightly-ci.yml
+++ b/.github/workflows/nightly-ci.yml
@@ -39,7 +39,7 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java-version: [ 11, 17, 20 ]
steps:
- - name: Support long paths in Windows
+ - name: Support Long Paths in Windows
if: matrix.os == 'windows-latest'
run: git config --global core.longpaths true
- uses: actions/checkout@v3
@@ -54,9 +54,9 @@ jobs:
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-cache-
${{ env.REPOSITORY_NAME }}-maven-third-party-
- - name: Build prod with Maven
+ - name: Build Project with Maven
run: ./mvnw -T1C -B -ntp clean install
- - name: Build examples with Maven
+ - name: Build Examples with Maven
run: ./mvnw -T1C -B -f examples/pom.xml clean package
ci-jdk8:
@@ -92,5 +92,5 @@ jobs:
with:
distribution: 'temurin'
java-version: 8
- - name: Run tests with JDK 8
+ - name: Run Tests with JDK 8
run: ./mvnw -T1C -B -ntp -fae test
diff --git a/.github/workflows/nightly-e2e.yml
b/.github/workflows/nightly-e2e.yml
index 797ded0f672..ea9d494b733 100644
--- a/.github/workflows/nightly-e2e.yml
+++ b/.github/workflows/nightly-e2e.yml
@@ -34,7 +34,7 @@ env:
jobs:
build-it-image:
if: github.repository == 'apache/shardingsphere'
- name: Build IT image
+ name: Build IT Image
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
@@ -50,11 +50,11 @@ jobs:
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-it-cache-
${{ env.REPOSITORY_NAME }}-maven-third-party-
- - name: Build IT image
+ - name: Build IT Image
run: ./mvnw -B clean install -am -pl test/e2e/sql -Pit.env.docker
-DskipTests -Dspotless.apply.skip=true
- name: Verify SQL CI Run
run: ./mvnw -B install -pl test/e2e/sql -Dspotless.apply.skip=true
- - name: Save IT image
+ - name: Save IT Image
run: docker save -o /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
apache/shardingsphere-proxy-test:latest
- uses: actions/upload-artifact@v3
with:
@@ -63,12 +63,12 @@ jobs:
retention-days: 1
it-empty-rule:
- name: empty rule
+ name: Empty Rule
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build-it-image
strategy:
- max-parallel: 2
+ max-parallel: 5
fail-fast: false
matrix:
adapter: [ proxy, jdbc ]
@@ -87,7 +87,7 @@ jobs:
with:
distribution: 'temurin'
java-version: 11
- - name: Download IT image
+ - name: Download IT Image
if: matrix.adapter == 'proxy'
uses: actions/download-artifact@v3
with:
@@ -100,12 +100,12 @@ jobs:
run: ./mvnw -nsu -B install -f test/e2e/sql/pom.xml
-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
it-single-rule:
- name: single rule
+ name: Single Rule
needs: it-empty-rule
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
- max-parallel: 2
+ max-parallel: 5
fail-fast: false
matrix:
adapter: [ proxy, jdbc ]
@@ -125,25 +125,25 @@ jobs:
with:
distribution: 'temurin'
java-version: 11
- - name: Download IT image
+ - name: Download IT Image
if: matrix.adapter == 'proxy'
uses: actions/download-artifact@v3
with:
name: it-image
path: /tmp/
- - name: Load IT image
+ - name: Load IT Image
if: matrix.adapter == 'proxy'
run: docker load -i /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
- name: Run E2E Test
run: ./mvnw -nsu -B install -f test/e2e/sql/pom.xml
-Dspotless.apply.skip=true -Dit.cluster.env.type=DOCKER
-Dit.cluster.adapters=${{ matrix.adapter }} -Dit.run.modes=${{ matrix.mode }}
-Dit.cluster.databases=${{ matrix.database }} -Dit.scenarios=${{
matrix.scenario }}
it-mixture-rule:
- name: mixture rule
+ name: Mixture Rule
needs: it-single-rule
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
- max-parallel: 2
+ max-parallel: 5
fail-fast: false
matrix:
adapter: [ proxy, jdbc ]
@@ -163,13 +163,13 @@ jobs:
with:
distribution: 'temurin'
java-version: 11
- - name: Download IT image
+ - name: Download IT Image
if: matrix.adapter == 'proxy'
uses: actions/download-artifact@v3
with:
name: it-image
path: /tmp/
- - name: Load IT image
+ - name: Load IT Image
if: matrix.adapter == 'proxy'
run: docker load -i /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
- name: Run E2E Test
diff --git a/.github/workflows/nightly-sql-parser.yml
b/.github/workflows/nightly-sql-parser.yml
index 6b8b15922f5..061b7bc3a3b 100644
--- a/.github/workflows/nightly-sql-parser.yml
+++ b/.github/workflows/nightly-sql-parser.yml
@@ -35,6 +35,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
+ max-parallel: 5
fail-fast: false
matrix:
java-version: [ 11 ]
@@ -52,9 +53,9 @@ jobs:
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-cache-
${{ env.REPOSITORY_NAME }}-maven-third-party-
- - name: Build prod with Maven
+ - name: Build Project with Maven
run: ./mvnw -T1C -B -ntp clean install
- - name: Run SQL parser
+ - name: Run SQL Parser
run: ./mvnw -nsu -B install -f parser/sql/dialect/${{ matrix.database
}}/pom.xml -Dsql.parser.external.it.enabled=true
- uses: actions/upload-artifact@v3
with: