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 5b882cb2835 Merge PR and nightly native test workflows (#40062)
5b882cb2835 is described below

commit 5b882cb2835ebafa214db15f4803fa402868d01e
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Oct 6 12:02:37 2026 +0800

    Merge PR and nightly native test workflows (#40062)
---
 .github/workflows/graalvm.yml    |  9 +++++++--
 .github/workflows/nightly-ci.yml | 32 --------------------------------
 2 files changed, 7 insertions(+), 34 deletions(-)

diff --git a/.github/workflows/graalvm.yml b/.github/workflows/graalvm.yml
index 3a783cc3ea2..e33fc52ff32 100644
--- a/.github/workflows/graalvm.yml
+++ b/.github/workflows/graalvm.yml
@@ -28,10 +28,12 @@ on:
       - 'test/native/pom.xml'
       - 'test/native/native-image-filter/**'
       - 'test/native/src/**'
+  schedule:
+    - cron: '0 13 * * 1-5' # Once a day between Monday and Friday. UTC time
   workflow_dispatch:
 
 concurrency:
-  group: graalvm-${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.event_name == 'schedule' && 'nightly-graalvm' || 'graalvm' 
}}-${{ github.workflow }}-${{ github.ref }}
   cancel-in-progress: true
 
 permissions:
@@ -42,7 +44,7 @@ jobs:
     name: Import Global Environment
     uses: ./.github/workflows/reusable-global-environment.yml
   nativetest:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ github.event_name == 'schedule' && 
needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' || 
github.event_name != 'schedule' && github.repository == 'apache/shardingsphere' 
}}
     needs: global-environment
     name: GraalVM - GraalVM CE ${{ matrix.java-version }} on ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
@@ -55,6 +57,9 @@ jobs:
         os: [ 'ubuntu-latest' ]
     steps:
       - uses: actions/[email protected]
+      - name: Configure Maven for Nightly Tests
+        if: github.event_name == 'schedule'
+        run: echo "MAVEN_OPTS=-Dhttp.keepAlive=false 
-Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3" >> "$GITHUB_ENV"
       - name: Free Disk Space on Ubuntu
         if: matrix.os == 'ubuntu-latest'
         run: ./test/native/src/test/resources/test-native/sh/free-disk-space.sh
diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml
index ca50a00085f..25177efde16 100644
--- a/.github/workflows/nightly-ci.yml
+++ b/.github/workflows/nightly-ci.yml
@@ -62,35 +62,3 @@ jobs:
         run: ./mvnw clean install -B -ntp -T1C
       - name: Build Examples with Maven
         run: ./mvnw clean package -B -f examples/pom.xml -T1C
-
-  ci-native-test:
-    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
-    name: NativeTest CI - GraalVM CE on ${{ matrix.os }}
-    needs: global-environment
-    runs-on: ${{ matrix.os }}
-    timeout-minutes: 90
-    strategy:
-      max-parallel: 15
-      fail-fast: false
-      matrix:
-        # TODO After the issue at 
https://github.com/apache/shardingsphere/issues/38857 is resolved, add 
`windows-latest`
-        os: [ ubuntu-latest ]
-    steps:
-      - uses: actions/[email protected]
-      - name: Free Disk Space on Ubuntu
-        if: matrix.os == 'ubuntu-latest'
-        run: ./test/native/src/test/resources/test-native/sh/free-disk-space.sh
-      - name: Setup Rancher Desktop without GUI on Windows Server
-        if: matrix.os == 'windows-latest'
-        run: ./test/native/src/test/resources/test-native/ps1/config-rdctl.ps1
-      - uses: ./.github/workflows/resources/actions/setup-build-environment
-        with:
-          distribution: 'graalvm-community'
-          github-token: ${{ secrets.GITHUB_TOKEN }}
-      # TODO Remove this workaround after. The graalvm native image built with 
windows server is missing some GRMs for testcontainers
-      - name: Run test with GraalVM CE
-        if: matrix.os == 'windows-latest'
-        run: ./mvnw -PgenerateMetadata -e -T 1C clean verify
-      - name: Run nativeTest with GraalVM CE
-        if: matrix.os == 'ubuntu-latest'
-        run: ./mvnw -PnativeTestInShardingSphere -e clean verify

Reply via email to