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 882da63d551 Move MCP coverage checks to nightly workflow (#40163)
882da63d551 is described below

commit 882da63d551a6842ba44ada46882d121b6bdcced
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Oct 12 23:21:30 2026 +0800

    Move MCP coverage checks to nightly workflow (#40163)
---
 .github/workflows/ci-mcp.yml        | 6 ++----
 .github/workflows/nightly-check.yml | 7 ++++++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index c2cc41ef30d..37e9e334b16 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -57,8 +57,6 @@ jobs:
           java-version: '21'
           cache-suffix: 'mcp'
       - name: Build and Run Unit Tests
-        run: ./mvnw install -DskipITs -Djacoco.skip=false
+        run: ./mvnw install -DskipITs
       - name: Run MCP HTTP Integration Test
-        run: ./mvnw -pl mcp/bootstrap verify -Djacoco.skip=false
-      - name: Verify MCP Coverage
-        run: ./mvnw jacoco:check@jacoco-check -Pcoverage-check 
-Djacoco.skip=false 
-Djacoco.check.class.pattern='org.apache.shardingsphere.mcp.*'
+        run: ./mvnw -pl mcp/bootstrap verify
diff --git a/.github/workflows/nightly-check.yml 
b/.github/workflows/nightly-check.yml
index e61586fd227..a3cfafff770 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -170,6 +170,8 @@ jobs:
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 60
+    outputs:
+      report-outcome: ${{ steps.upload-jacoco-report.outcome }}
     steps:
       - uses: actions/[email protected]
       - uses: ./.github/actions/setup-build-environment
@@ -186,12 +188,15 @@ jobs:
           token: ${{ secrets.CODECOV_TOKEN }}
           files: ${{ github.workspace }}/target/mergeReport/jacoco.xml
       - uses: actions/upload-artifact@v6
+        id: upload-jacoco-report
         with:
           name: jacoco-report
           path: ${{ github.workspace }}/target/mergeReport/jacoco
+      - name: Verify MCP Coverage
+        run: ./mvnw -f mcp/pom.xml jacoco:check@jacoco-check -Pcoverage-check 
-Djacoco.skip=false 
-Djacoco.check.class.pattern='org.apache.shardingsphere.mcp.*'
 
   check-and-report-sonarcloud:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ !cancelled() && github.repository == 'apache/shardingsphere' && 
needs.check-and-report-jacoco.outputs.report-outcome == 'success' }}
     name: Schedule - SonarCloud report
     needs:
       - global-environment

Reply via email to