This is an automated email from the ASF dual-hosted git repository.
zhaojinchao 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 8f7ede58cd4 Refactor : refacotor the reusable related workflow job
name (#27528)
8f7ede58cd4 is described below
commit 8f7ede58cd4ed195432fad1a47a88bea62ea6130
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Fri Jul 28 12:04:40 2023 +0800
Refactor : refacotor the reusable related workflow job name (#27528)
* Refactor : refacotor the reusable related workflow job name
* Refactor : refactor the reusable in agent
* Refactor : rename the reusable job name
---
.github/workflows/ci.yml | 12 ++++-----
.github/workflows/e2e-agent.yml | 12 ++++-----
.github/workflows/e2e-operation.yml | 14 +++++------
.github/workflows/e2e-sql.yml | 24 +++++++++---------
.github/workflows/nightly-build.yml | 38 ++++++++++++++---------------
.github/workflows/nightly-check.yml | 28 ++++++++++-----------
.github/workflows/nightly-ci.yml | 20 +++++++--------
.github/workflows/nightly-e2e-operation.yml | 16 ++++++------
.github/workflows/nightly-sql-parser.yml | 12 ++++-----
.github/workflows/required-check.yml | 16 ++++++------
.github/workflows/required-reusable.yml | 2 --
.github/workflows/schedule-report.yml | 10 ++++----
12 files changed, 101 insertions(+), 103 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 512fe2fe9a1..b485b347e8f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,14 +54,14 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3 -Dspotless.apply.skip=true
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
ci:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_JOB_EXECUTABLE == 'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_JOB_EXECUTABLE ==
'true' }}
name: CI - Compile by JDK 11 and Run on JDK 8
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
@@ -74,9 +74,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Build Project with Maven
run: ./mvnw clean install -B -ntp -DskipTests -T1C
- name: Setup JDK 8 for Test
diff --git a/.github/workflows/e2e-agent.yml b/.github/workflows/e2e-agent.yml
index 0cb62867870..4772d145c6e 100644
--- a/.github/workflows/e2e-agent.yml
+++ b/.github/workflows/e2e-agent.yml
@@ -56,14 +56,14 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3 -Dspotless.apply.skip=true
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
agent-mysql:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_JOB_EXECUTABLE == 'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_JOB_EXECUTABLE ==
'true' }}
name: E2E - Agent with MySQL
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
@@ -105,9 +105,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Build Project
run:
./mvnw -B clean install -DskipITs -DskipTests -Prelease
diff --git a/.github/workflows/e2e-operation.yml
b/.github/workflows/e2e-operation.yml
index 9f817b59404..a9961d49474 100644
--- a/.github/workflows/e2e-operation.yml
+++ b/.github/workflows/e2e-operation.yml
@@ -31,8 +31,8 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3 -Dspotless.apply.skip=true
-Dfailsafe.skipAfterFailureCount=1 -Dio.netty.leakDetectionLevel=advanced
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
detect-changed-files:
@@ -50,9 +50,9 @@ jobs:
changed_operations: ${{ steps.filter.outputs.changes }}
e2e-operation:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_JOB_EXECUTABLE == 'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_JOB_EXECUTABLE ==
'true' }}
name: E2E - Operation
- needs: [ detect-changed-files, global-env ]
+ needs: [ detect-changed-files, global-environment ]
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
@@ -92,10 +92,10 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Setup JDK 11
if: (env.skip_current_step == 'false')
uses: actions/setup-java@v3
diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml
index 2c47e534a57..b0bf555586d 100644
--- a/.github/workflows/e2e-sql.yml
+++ b/.github/workflows/e2e-sql.yml
@@ -63,13 +63,13 @@ env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
build-e2e-image:
name: Build E2E Image
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
@@ -81,24 +81,24 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Build E2E Image
run: ./mvnw -B clean install -am -pl test/e2e/sql -Pit.env.docker
-DskipTests -Dspotless.apply.skip=true
- name: Save E2E Image
- run: docker save -o /tmp/${{
needs.global-env.outputs.GLOBAL_REPOSITORY_NAME }}-proxy-test.tar
apache/shardingsphere-proxy-test:latest
+ run: docker save -o /tmp/${{
needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME }}-proxy-test.tar
apache/shardingsphere-proxy-test:latest
- uses: actions/upload-artifact@v3
with:
name: e2e-image
- path: /tmp/${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-proxy-test.tar
+ path: /tmp/${{
needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME }}-proxy-test.tar
retention-days: 1
e2e-sql:
name: E2E - SQL
- needs: [ build-e2e-image, global-env ]
- if: ${{ needs.global-env.outputs.GLOBAL_IS_JOB_EXECUTABLE == 'true' }}
+ needs: [ build-e2e-image, global-environment ]
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_JOB_EXECUTABLE ==
'true' }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
@@ -136,7 +136,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
@@ -149,6 +149,6 @@ jobs:
path: /tmp/
- name: Load E2E Image
if: matrix.adapter == 'proxy'
- run: docker load -i /tmp/${{
needs.global-env.outputs.GLOBAL_REPOSITORY_NAME }}-proxy-test.tar
+ run: docker load -i /tmp/${{
needs.global-environment.outputs.GLOBAL_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.run.additional.cases=false -Dit.scenarios=${{ matrix.scenario }}
-Dit.cluster.databases=${{ matrix.database }} ${{ matrix.additional-options }}
diff --git a/.github/workflows/nightly-build.yml
b/.github/workflows/nightly-build.yml
index dbc6fd39f48..d18626a3809 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -34,24 +34,24 @@ env:
PROXY_NATIVE: ghcr.io/apache/shardingsphere-proxy-native
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
upload-to-nightlies:
if: github.repository == 'apache/shardingsphere'
name: Upload to Nightly Builds
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
@@ -71,10 +71,10 @@ jobs:
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
build-proxy-image:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE ==
'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE
== 'true' }}
name: Build Proxy Image
- needs: global-env
- runs-on: ${{ needs.global-env.outputs.GLOBAL_RUNS_ON }}
+ needs: global-environment
+ runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
permissions:
contents: read
packages: write
@@ -90,10 +90,10 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Login Container Registry
uses: docker/login-action@v2
with:
@@ -135,10 +135,10 @@ jobs:
./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
build-cache:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE ==
'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE
== 'true' }}
name: Build Project
- needs: global-env
- runs-on: ${{ needs.global-env.outputs.GLOBAL_RUNS_ON }}
+ needs: global-environment
+ runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
@@ -149,9 +149,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Build with Maven
run: ./mvnw -B -T1C -ntp clean install -DskipITs -DskipTests
@@ -209,9 +209,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Prepare Environments
run: sh
.github/workflows/resources/scripts/nightly-build-example/init-mysql-container.sh
- name: Build with Maven
diff --git a/.github/workflows/nightly-check.yml
b/.github/workflows/nightly-check.yml
index f13afdb487d..5c74ba6c19f 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -26,14 +26,14 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3 -Dspotless.apply.skip=true
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
check-spotbugs:
if: github.repository == 'apache/shardingsphere'
name: Check - SpotBugs
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
@@ -41,16 +41,16 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Run SpotBugs
run: ./mvnw clean install spotbugs:check -T1C
check-and-report-sonarcloud:
if: github.repository == 'apache/shardingsphere'
name: Check - SonarCloud
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
@@ -67,9 +67,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Analyze with SonarCloud
env:
MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
@@ -80,7 +80,7 @@ jobs:
checkstyle-report-sonarcloud:
if: github.repository == 'apache/shardingsphere'
name: Checkstyle - SonarCloud
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
@@ -97,9 +97,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Aggregate checkstyle report
run:
./mvnw clean verify checkstyle:checkstyle-aggregate
@@ -141,7 +141,7 @@ jobs:
check-codeql:
if: github.repository == 'apache/shardingsphere'
name: Check - CodeQL
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
@@ -161,9 +161,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Install Project
run: ./mvnw clean install -DskipTests
- name: Perform CodeQL Analysis
diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml
index 8b140d23540..2caf0a6df66 100644
--- a/.github/workflows/nightly-ci.yml
+++ b/.github/workflows/nightly-ci.yml
@@ -26,14 +26,14 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
ci:
if: github.repository == 'apache/shardingsphere'
name: CI - JDK ${{ matrix.java-version }} on ${{ matrix.os }}
- needs: global-env
+ needs: global-environment
runs-on: ${{ matrix.os }}
timeout-minutes: 90
strategy:
@@ -54,10 +54,10 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Build Project with Maven
run: ./mvnw clean install -B -ntp -T1C
- name: Build Examples with Maven
@@ -66,7 +66,7 @@ jobs:
ci-jdk8:
if: github.repository == 'apache/shardingsphere'
name: CI - JDK 8 on ${{ matrix.os }}
- needs: global-env
+ needs: global-environment
runs-on: ${{ matrix.os }}
timeout-minutes: 90
strategy:
@@ -86,10 +86,10 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Build prod with Maven
run: ./mvnw clean install -DskipTests -B -ntp -T1C
- name: Setup JDK 8 for Test
diff --git a/.github/workflows/nightly-e2e-operation.yml
b/.github/workflows/nightly-e2e-operation.yml
index c1f36e51382..0dca87309e6 100644
--- a/.github/workflows/nightly-e2e-operation.yml
+++ b/.github/workflows/nightly-e2e-operation.yml
@@ -30,15 +30,15 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3 -Dspotless.apply.skip=true
-Dfailsafe.skipAfterFailureCount=1 -Dio.netty.leakDetectionLevel=advanced
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
e2e-operation-job:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE ==
'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE
== 'true' }}
name: E2E - ${{ matrix.operation }} on ${{ matrix.image.version }}
- needs: global-env
- runs-on: ${{ needs.global-env.outputs.GLOBAL_RUNS_ON }}
+ needs: global-environment
+ runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
strategy:
max-parallel: 20
fail-fast: false
@@ -58,10 +58,10 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-e2e-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
diff --git a/.github/workflows/nightly-sql-parser.yml
b/.github/workflows/nightly-sql-parser.yml
index 4b27beb34ea..e440bec74f9 100644
--- a/.github/workflows/nightly-sql-parser.yml
+++ b/.github/workflows/nightly-sql-parser.yml
@@ -27,14 +27,14 @@ env:
RUNS_ON: ubuntu-latest
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
database-parse:
if: github.repository == 'apache/shardingsphere'
name: CI - JDK ${{ matrix.java-version }} for ${{ matrix.database }}
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
@@ -52,10 +52,10 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-${{ github.sha }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Build Project with Maven
run: ./mvnw -T1C -B -ntp clean install
- name: Run SQL Parser
diff --git a/.github/workflows/required-check.yml
b/.github/workflows/required-check.yml
index 82d1ebf8318..6c65e2a45d5 100644
--- a/.github/workflows/required-check.yml
+++ b/.github/workflows/required-check.yml
@@ -27,14 +27,14 @@ concurrency:
cancel-in-progress: true
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
check-checkstyle:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_JOB_EXECUTABLE == 'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_JOB_EXECUTABLE ==
'true' }}
name: Check - CheckStyle
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
@@ -43,9 +43,9 @@ jobs:
run: ./mvnw checkstyle:check -Dcheckstyle.skip=false -T1C
check-spotless:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_JOB_EXECUTABLE == 'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_JOB_EXECUTABLE ==
'true' }}
name: Check - Spotless
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
@@ -54,9 +54,9 @@ jobs:
run: ./mvnw spotless:check -T1C
check-license:
- if: ${{ needs.global-env.outputs.GLOBAL_IS_JOB_EXECUTABLE == 'true' }}
+ if: ${{ needs.global-environment.outputs.GLOBAL_IS_JOB_EXECUTABLE ==
'true' }}
name: Check - License
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
diff --git a/.github/workflows/required-reusable.yml
b/.github/workflows/required-reusable.yml
index 70332a190ed..9dda744180e 100644
--- a/.github/workflows/required-reusable.yml
+++ b/.github/workflows/required-reusable.yml
@@ -15,8 +15,6 @@
# limitations under the License.
#
-name: Required - Reusable
-
on:
workflow_call:
outputs:
diff --git a/.github/workflows/schedule-report.yml
b/.github/workflows/schedule-report.yml
index 7a2cf9919b2..df0f8859b5f 100644
--- a/.github/workflows/schedule-report.yml
+++ b/.github/workflows/schedule-report.yml
@@ -26,14 +26,14 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3
jobs:
- global-env:
- name: Import Global Env
+ global-environment:
+ name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
check-and-report-sonarcloud:
if: github.repository == 'apache/shardingsphere'
name: Check - SonarCloud
- needs: global-env
+ needs: global-environment
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
@@ -50,9 +50,9 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ needs.global-env.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
+ ${{ needs.global-environment.outputs.GLOBAL_REPOSITORY_NAME
}}-maven-third-party-
- name: Analyze with SonarCloud
env:
MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"