You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2021/07/15 18:47:24 UTC
[spark] branch branch-3.2 updated: [SPARK-36164][INFRA] run-test.py
should not fail when APACHE_SPARK_REF is not defined
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new ebc830f [SPARK-36164][INFRA] run-test.py should not fail when APACHE_SPARK_REF is not defined
ebc830f is described below
commit ebc830f14e9bb50f2e6326e3b9b69b04aaa4f795
Author: William Hyun <wi...@apache.org>
AuthorDate: Thu Jul 15 11:43:30 2021 -0700
[SPARK-36164][INFRA] run-test.py should not fail when APACHE_SPARK_REF is not defined
### What changes were proposed in this pull request?
This PR aims to change run-test.py so that it does not fail when os.environ["APACHE_SPARK_REF"] is not defined.
### Why are the changes needed?
Currently, the run-test.py ends with an error.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs.
Closes #33371 from williamhyun/SPARK-36164.
Authored-by: William Hyun <wi...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
(cherry picked from commit c8a3c226283ae6e4ece0520f0a996c4a8685381b)
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
dev/run-tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/run-tests.py b/dev/run-tests.py
index 4777ce5..b27bd57 100755
--- a/dev/run-tests.py
+++ b/dev/run-tests.py
@@ -658,7 +658,7 @@ def main():
# If we're running the tests in GitHub Actions, attempt to detect and test
# only the affected modules.
if test_env == "github_actions":
- if os.environ["APACHE_SPARK_REF"] != "":
+ if "APACHE_SPARK_REF" in os.environ:
# Fork repository
changed_files = identify_changed_files_from_git_commits(
"HEAD", target_ref=os.environ["APACHE_SPARK_REF"])
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org