This is an automated email from the ASF dual-hosted git repository.
zhangliang 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 9ba3ce947ff Fix intermittent checkout ref failures in E2E-SQL workflow
(#38352)
9ba3ce947ff is described below
commit 9ba3ce947ffaffbbf457e8ebfb19d146b8a167c8
Author: ym0506 <[email protected]>
AuthorDate: Sat Mar 7 00:26:49 2026 +0900
Fix intermittent checkout ref failures in E2E-SQL workflow (#38352)
* Fix accidental checkout ref handling in e2e-sql workflow
* chore: keep issue analysis note outside repository
* Refine e2e-sql checkout ref selection
* Reuse source snapshot across e2e-sql jobs
* Reduce e2e-sql source snapshot artifact size
---
.github/workflows/e2e-sql.yml | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml
index 5c6f754d09f..a5c7207bd95 100644
--- a/.github/workflows/e2e-sql.yml
+++ b/.github/workflows/e2e-sql.yml
@@ -136,6 +136,14 @@ jobs:
enable-docker-setup: 'true'
- name: Build E2E Image
run: ./mvnw -B clean install -am -pl test/e2e/sql -Pe2e.env.docker
-DskipTests -Dspotless.apply.skip=true
+ - name: Create Source Snapshot
+ run: git archive --format=tar.gz
--output=/tmp/e2e-sql-source-snapshot.tar.gz HEAD -- . ':(exclude)docs'
+ - name: Upload Source Snapshot
+ uses: actions/upload-artifact@v4
+ with:
+ name: e2e-sql-source-snapshot
+ path: /tmp/e2e-sql-source-snapshot.tar.gz
+ retention-days: 3
- uses: ./.github/workflows/resources/actions/save-maven-cache
with:
cache-hit: ${{ steps.setup-build-environment.outputs.cache-hit }}
@@ -153,7 +161,13 @@ jobs:
fail-fast: false
matrix: ${{
fromJSON(needs.detect-and-generate-matrix.outputs.smoke-matrix) }}
steps:
- - uses: actions/[email protected]
+ - name: Download Source Snapshot
+ uses: actions/download-artifact@v4
+ with:
+ name: e2e-sql-source-snapshot
+ path: /tmp/source-snapshot
+ - name: Restore Source Snapshot
+ run: tar -xzf /tmp/source-snapshot/e2e-sql-source-snapshot.tar.gz -C
"$GITHUB_WORKSPACE"
- uses: ./.github/workflows/resources/actions/setup-build-environment
with:
cache-suffix: 'e2e-sql'
@@ -178,7 +192,13 @@ jobs:
matrix: ${{ steps.generate.outputs.matrix }}
has-remaining-jobs: ${{ steps.generate.outputs.has-remaining-jobs }}
steps:
- - uses: actions/[email protected]
+ - name: Download Source Snapshot
+ uses: actions/download-artifact@v4
+ with:
+ name: e2e-sql-source-snapshot
+ path: /tmp/source-snapshot
+ - name: Restore Source Snapshot
+ run: tar -xzf /tmp/source-snapshot/e2e-sql-source-snapshot.tar.gz -C
"$GITHUB_WORKSPACE"
- name: Detect Remaining Matrix
id: generate
env:
@@ -210,7 +230,13 @@ jobs:
fail-fast: false
matrix: ${{ fromJSON(needs.detect-remaining-matrix.outputs.matrix) }}
steps:
- - uses: actions/[email protected]
+ - name: Download Source Snapshot
+ uses: actions/download-artifact@v4
+ with:
+ name: e2e-sql-source-snapshot
+ path: /tmp/source-snapshot
+ - name: Restore Source Snapshot
+ run: tar -xzf /tmp/source-snapshot/e2e-sql-source-snapshot.tar.gz -C
"$GITHUB_WORKSPACE"
- uses: ./.github/workflows/resources/actions/setup-build-environment
with:
cache-suffix: 'e2e-sql'