This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new a16ab92bc9e [SPARK-42230][INFRA][FOLLOWUP] Add `GITHUB_PREV_SHA` and
`APACHE_SPARK_REF` to lint job
a16ab92bc9e is described below
commit a16ab92bc9e5f8e68e0b10c72e1f0e1a99a79e50
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Jan 30 11:59:27 2023 -0800
[SPARK-42230][INFRA][FOLLOWUP] Add `GITHUB_PREV_SHA` and `APACHE_SPARK_REF`
to lint job
### What changes were proposed in this pull request?
Like the other jobs, this PR aims to add `GITHUB_PREV_SHA` and
`APACHE_SPARK_REF` environment variables to `lint` job.
### Why are the changes needed?
This is required to detect the changed module accurately.
### Does this PR introduce _any_ user-facing change?
No, this is a infra-only bug fix.
### How was this patch tested?
Manual review.
Closes #39809 from dongjoon-hyun/SPARK-42230-2.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 1304a3329d7feb1bd6f9a9dba09f37494c9bb4a2)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.github/workflows/build_and_test.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/build_and_test.yml
b/.github/workflows/build_and_test.yml
index 8f60d725d99..03e76f5fed7 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -506,6 +506,7 @@ jobs:
LANG: C.UTF-8
PYSPARK_DRIVER_PYTHON: python3.9
PYSPARK_PYTHON: python3.9
+ GITHUB_PREV_SHA: ${{ github.event.before }}
container:
image: ${{ needs.precondition.outputs.image_url }}
steps:
@@ -521,6 +522,7 @@ jobs:
- name: Sync the current branch with the latest in Apache Spark
if: github.repository != 'apache/spark'
run: |
+ echo "APACHE_SPARK_REF=$(git rev-parse HEAD)" >> $GITHUB_ENV
git fetch https://github.com/$GITHUB_REPOSITORY.git
${GITHUB_REF#refs/heads/}
git -c user.name='Apache Spark Test Account' -c
user.email='[email protected]' merge --no-commit --progress --squash
FETCH_HEAD
git -c user.name='Apache Spark Test Account' -c
user.email='[email protected]' commit -m "Merged commit" --allow-empty
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]