Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
GITHUB_PREV_SHA: ${{ github.event.before }}
outputs:
required: ${{ steps.set-outputs.outputs.required }}
# Pinned so every downstream job checks out the same snapshot, even if `master` advances mid-run.
head_sha: ${{ steps.resolve-sha.outputs.head_sha }}
image_url: ${{ steps.infra-image-outputs.outputs.image_url }}
image_docs_url: ${{ steps.infra-image-docs-outputs.outputs.image_docs_url }}
image_docs_url_link: ${{ steps.infra-image-link.outputs.image_docs_url_link }}
Expand All @@ -84,6 +86,9 @@ jobs:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
- name: Resolve apache/spark HEAD SHA
id: resolve-sha
run: echo "head_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down Expand Up @@ -349,7 +354,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down Expand Up @@ -467,7 +472,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down Expand Up @@ -561,7 +566,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down Expand Up @@ -683,7 +688,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Add GITHUB_WORKSPACE to git trust safe.directory
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
Expand Down Expand Up @@ -833,7 +838,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Add GITHUB_WORKSPACE to git trust safe.directory
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
Expand Down Expand Up @@ -922,7 +927,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down Expand Up @@ -984,7 +989,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Add GITHUB_WORKSPACE to git trust safe.directory
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
Expand Down Expand Up @@ -1183,7 +1188,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Add GITHUB_WORKSPACE to git trust safe.directory
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
Expand Down Expand Up @@ -1383,7 +1388,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down Expand Up @@ -1500,7 +1505,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down Expand Up @@ -1568,7 +1573,7 @@ jobs:
with:
fetch-depth: 0
repository: apache/spark
ref: ${{ inputs.branch }}
ref: ${{ needs.precondition.outputs.head_sha }}
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
Expand Down