This is an automated email from the ASF dual-hosted git repository.

terrymanu 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 03d782c83d1 Use global job gate for downstream E2E jobs (#40083)
03d782c83d1 is described below

commit 03d782c83d17c9dcbe9a5f66b4f2346198da6e25
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Oct 6 22:00:54 2026 +0800

    Use global job gate for downstream E2E jobs (#40083)
---
 .github/workflows/e2e-mcp.yml       | 6 +++---
 .github/workflows/e2e-operation.yml | 4 ++--
 .github/workflows/e2e-sql.yml       | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/e2e-mcp.yml b/.github/workflows/e2e-mcp.yml
index 69e814a3618..b3595009198 100644
--- a/.github/workflows/e2e-mcp.yml
+++ b/.github/workflows/e2e-mcp.yml
@@ -140,7 +140,7 @@ jobs:
 
   e2e-mcp-functionality:
     name: E2E - MCP Functionality
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     needs: [ global-environment, e2e-mcp-build-images ]
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 60
@@ -185,7 +185,7 @@ jobs:
 
   e2e-mcp-conformance:
     name: E2E - MCP Conformance
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     needs: [ global-environment, e2e-mcp-build-images ]
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 30
@@ -276,7 +276,7 @@ jobs:
 
   e2e-mcp-llm:
     name: E2E - MCP LLM - ${{ matrix.id }}
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     needs: [ global-environment, e2e-mcp-build-images, e2e-mcp-build-llm-image 
]
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 60
diff --git a/.github/workflows/e2e-operation.yml 
b/.github/workflows/e2e-operation.yml
index b1a543931ff..ef9d9eaa840 100644
--- a/.github/workflows/e2e-operation.yml
+++ b/.github/workflows/e2e-operation.yml
@@ -57,7 +57,7 @@ jobs:
 
   prepare-e2e-artifacts:
     name: Prepare E2E Artifacts
-    if: github.repository == 'apache/shardingsphere' && 
needs.detect-changed-files.outputs.changed_operations != '[]'
+    if: needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' && 
needs.detect-changed-files.outputs.changed_operations != '[]'
     needs: [ global-environment, detect-changed-files ]
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 40
@@ -86,7 +86,7 @@ jobs:
 
   e2e-operation:
     name: E2E - ${{ matrix.operation }} on ${{ matrix.image.version }}
-    if: github.repository == 'apache/shardingsphere' && 
needs.detect-changed-files.outputs.changed_operations != '[]'
+    if: needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' && 
needs.detect-changed-files.outputs.changed_operations != '[]'
     needs: [ detect-changed-files, global-environment, prepare-e2e-artifacts ]
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 40
diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml
index 6882804083a..20f0918c3e8 100644
--- a/.github/workflows/e2e-sql.yml
+++ b/.github/workflows/e2e-sql.yml
@@ -129,7 +129,7 @@ jobs:
 
   prepare-e2e-artifacts:
     name: Prepare E2E Artifacts
-    if: github.repository == 'apache/shardingsphere' && 
needs.detect-and-generate-matrix.outputs.has-jobs == 'true'
+    if: needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' && 
needs.detect-and-generate-matrix.outputs.has-jobs == 'true'
     needs: [ global-environment, detect-and-generate-matrix ]
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 40
@@ -153,7 +153,7 @@ jobs:
   e2e-sql-smoke:
     name: E2E - SQL (Smoke)
     needs: [ detect-and-generate-matrix, prepare-e2e-artifacts, 
global-environment ]
-    if: always() && github.repository == 'apache/shardingsphere' && 
needs.detect-and-generate-matrix.outputs.has-jobs == 'true' && 
needs.detect-and-generate-matrix.result == 'success' && 
(needs.prepare-e2e-artifacts.result == 'success' || 
needs.prepare-e2e-artifacts.result == 'skipped')
+    if: always() && needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 
'true' && needs.detect-and-generate-matrix.outputs.has-jobs == 'true' && 
needs.detect-and-generate-matrix.result == 'success' && 
(needs.prepare-e2e-artifacts.result == 'success' || 
needs.prepare-e2e-artifacts.result == 'skipped')
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 40
     strategy:
@@ -229,7 +229,7 @@ jobs:
     needs: [ detect-remaining-matrix, prepare-e2e-artifacts, 
global-environment ]
     if: >-
       always()
-      && github.repository == 'apache/shardingsphere'
+      && needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true'
       && needs.detect-remaining-matrix.outputs.has-remaining-jobs == 'true'
       && (needs.prepare-e2e-artifacts.result == 'success' || 
needs.prepare-e2e-artifacts.result == 'skipped')
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}

Reply via email to