This is an automated email from the ASF dual-hosted git repository. jiangmaolin pushed a commit to branch dev-5.5.1 in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
commit ae006d004daed4062656e5b531cdf7256ce1173a Author: 孙念君 Nianjun Sun <[email protected]> AuthorDate: Wed Oct 30 11:51:18 2024 +0800 Refactor : remove scheduled and PR class workflow trigger --- .github/workflows/ci.yml | 2 +- .github/workflows/e2e-agent.yml | 7 ++++--- .github/workflows/e2e-operation.yml | 3 ++- .github/workflows/e2e-sql.yml | 5 +++-- .github/workflows/nightly-build.yml | 12 +++++------- .github/workflows/nightly-check.yml | 4 +--- .github/workflows/nightly-ci-dynamic.yml | 8 ++++---- .github/workflows/nightly-ci.yml | 6 ++---- .github/workflows/nightly-sql-parser.yml | 2 -- .github/workflows/required-check.yml | 2 -- .github/workflows/schedule-report.yml | 4 +--- 11 files changed, 23 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec96c50fca1..9d996208d6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/workflows/required-reusable.yml ci: - if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }} + if: github.repository == 'apache/shardingsphere' name: CI - Compile by JDK 11 and Run on JDK 8 needs: global-environment runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }} diff --git a/.github/workflows/e2e-agent.yml b/.github/workflows/e2e-agent.yml index e6f72b72418..2e89277c678 100644 --- a/.github/workflows/e2e-agent.yml +++ b/.github/workflows/e2e-agent.yml @@ -59,8 +59,9 @@ jobs: global-environment: name: Import Global Environment uses: ./.github/workflows/required-reusable.yml - + build-e2e-image: + if: github.repository == 'apache/shardingsphere' name: Build E2E Image needs: global-environment runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }} @@ -98,9 +99,9 @@ jobs: name: jdbc-e2e-image path: /tmp/${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-jdbc-agent-test.tar retention-days: 10 - + agent-mysql: - if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }} + if: github.repository == 'apache/shardingsphere' name: E2E - Agent with MySQL needs: [ global-environment, build-e2e-image ] runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }} diff --git a/.github/workflows/e2e-operation.yml b/.github/workflows/e2e-operation.yml index 87f2752fab1..20f33f80f0e 100644 --- a/.github/workflows/e2e-operation.yml +++ b/.github/workflows/e2e-operation.yml @@ -36,6 +36,7 @@ jobs: uses: ./.github/workflows/required-reusable.yml detect-changed-files: + if: github.repository == 'apache/shardingsphere' name: Detect Changed Files runs-on: ubuntu-latest timeout-minutes: 5 @@ -50,7 +51,7 @@ jobs: changed_operations: ${{ steps.filter.outputs.changes }} e2e-operation: - if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }} + if: github.repository == 'apache/shardingsphere' name: E2E - ${{ matrix.operation }} on ${{ matrix.image.version }} needs: [ detect-changed-files, global-environment ] runs-on: ubuntu-latest diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml index 125748c7757..3a3f4085d2d 100644 --- a/.github/workflows/e2e-sql.yml +++ b/.github/workflows/e2e-sql.yml @@ -70,6 +70,7 @@ jobs: build-e2e-image: name: Build E2E Image needs: global-environment + if: github.repository == 'apache/shardingsphere' runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }} timeout-minutes: 40 steps: @@ -94,11 +95,11 @@ jobs: name: e2e-image path: /tmp/${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-proxy-test.tar retention-days: 10 - + e2e-sql: name: E2E - SQL needs: [ build-e2e-image, global-environment ] - if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }} + if: github.repository == 'apache/shardingsphere' runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }} timeout-minutes: 30 strategy: diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 03bb5922b1f..22cc11819a9 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -17,9 +17,7 @@ name: Nightly - Build -on: - schedule: - - cron: '0 16 */1 * *' # once a day. UTC time +on: # once a day. UTC time workflow_dispatch: inputs: commit-id: @@ -38,7 +36,7 @@ jobs: 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 @@ -70,7 +68,7 @@ jobs: remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }} remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }} remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }} - + build-proxy-image: if: github.repository == 'apache/shardingsphere' name: Build Proxy Image @@ -105,7 +103,7 @@ jobs: - uses: docker/setup-buildx-action@v3 - 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 Proxy Native Image @@ -180,7 +178,7 @@ jobs: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- - name: Build with Maven run: ./mvnw -B -T1C -ntp clean install -DskipITs -DskipTests - + generate-and-test-examples: name: Example-${{ matrix.feature }}-${{ matrix.framework }}-${{ matrix.mode }}-${{ matrix.transaction }} if: github.repository == 'apache/shardingsphere' diff --git a/.github/workflows/nightly-check.yml b/.github/workflows/nightly-check.yml index b8a490321ee..662a44617b1 100644 --- a/.github/workflows/nightly-check.yml +++ b/.github/workflows/nightly-check.yml @@ -18,8 +18,6 @@ name: Nightly - Check on: - schedule: - - cron: '0 20 */1 * *' # once a day. UTC time workflow_dispatch: env: @@ -165,7 +163,7 @@ jobs: stale-issue-message: > There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. - + check-dependency-convergence: if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }} name: Check - Dependency Convergence diff --git a/.github/workflows/nightly-ci-dynamic.yml b/.github/workflows/nightly-ci-dynamic.yml index 984d5190260..82466ba6e2f 100644 --- a/.github/workflows/nightly-ci-dynamic.yml +++ b/.github/workflows/nightly-ci-dynamic.yml @@ -27,7 +27,7 @@ on: os: description: 'System OS' required: false - default: "[ 'ubuntu-latest' ]" + default: "[ 'self-host' ]" job: description: 'Job Name' required: true @@ -40,7 +40,7 @@ jobs: global-environment: name: Import Global Environment uses: ./.github/workflows/required-reusable.yml - + ci-dynamic: if: github.repository == 'apache/shardingsphere' && github.event.inputs.job == 'ci-dynamic' name: CI - JDK ${{ matrix.java-version }} on ${{ matrix.os }} @@ -73,7 +73,7 @@ jobs: run: ./mvnw clean install -B -ntp -T1C - name: Build Examples with Maven run: ./mvnw clean package -B -f examples/pom.xml -T1C - + ci-jdk8-dynamic: if: github.repository == 'apache/shardingsphere' && github.event.inputs.job == 'ci-jdk8-dynamic' name: CI - JDK 8 on ${{ matrix.os }} @@ -110,7 +110,7 @@ jobs: java-version: 8 - name: Run Tests with JDK 8 run: ./mvnw test -B -ntp -fae -T1C - + ci-native-test: if: github.repository == 'apache/shardingsphere' && github.event.inputs.job == 'ci-native-test' name: NativeTest CI - GraalVM CE on ${{ matrix.os }} diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index 0242f317f7c..0ca4e45e885 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -18,8 +18,6 @@ name: Nightly - CI on: - schedule: - - cron: '0 18 */1 * *' # once a day. UTC time workflow_dispatch: env: @@ -40,7 +38,7 @@ jobs: max-parallel: 20 fail-fast: false matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] + os: [ self-host ] java-version: [ 11, 17, 21, 23 ] steps: - name: Support Long Paths in Windows @@ -62,7 +60,7 @@ jobs: run: ./mvnw clean install -B -ntp -T1C - name: Build Examples with Maven run: ./mvnw clean package -B -f examples/pom.xml -T1C - + ci-jdk8: if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }} name: CI - JDK 8 on ${{ matrix.os }} diff --git a/.github/workflows/nightly-sql-parser.yml b/.github/workflows/nightly-sql-parser.yml index b341fe894f4..7d36b576d14 100644 --- a/.github/workflows/nightly-sql-parser.yml +++ b/.github/workflows/nightly-sql-parser.yml @@ -18,8 +18,6 @@ name: Nightly - SQL parser loading from external cases on: - schedule: - - cron: '0 18 */1 * *' # once a day. UTC time workflow_dispatch: env: diff --git a/.github/workflows/required-check.yml b/.github/workflows/required-check.yml index 7a3c5e33584..056df2a0910 100644 --- a/.github/workflows/required-check.yml +++ b/.github/workflows/required-check.yml @@ -18,8 +18,6 @@ name: Required - Check on: - pull_request: - branches: [ master ] workflow_dispatch: concurrency: diff --git a/.github/workflows/schedule-report.yml b/.github/workflows/schedule-report.yml index e5e8e90e0f6..d066609d6f0 100644 --- a/.github/workflows/schedule-report.yml +++ b/.github/workflows/schedule-report.yml @@ -18,8 +18,6 @@ name: Schedule - Report on: - schedule: - - cron: '0 */1 * * *' # per hour workflow_dispatch: env: @@ -59,7 +57,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} run: ./mvnw -B clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_shardingsphere -DskipTests - + check-and-report-jacoco: if: github.repository == 'apache/shardingsphere' name: Schedule - Jacoco report
