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 42b3c96d [SPARK-38084][TESTS] Support `SKIP_PYTHON` and `SKIP_R` in 
`run-tests.py`
42b3c96d is described below

commit 42b3c96d0125ac7ac82f63436fdbec16c511ecc5
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue Feb 1 13:10:07 2022 -0800

    [SPARK-38084][TESTS] Support `SKIP_PYTHON` and `SKIP_R` in `run-tests.py`
    
    ### What changes were proposed in this pull request?
    
    This PR aims to support `SKIP_PYTHON` and `SKIP_R` in `run-tests.py` like 
`SKIP_MIMA` and `SKIP_UNIDOC`.
    
    ### Why are the changes needed?
    
    This is helpful to setup CIs.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manually.
    ```
    SKIP_PYTHON=1 SKIP_R=1 dev/run-tests.py
    ```
    
    Closes #35381 from dongjoon-hyun/SPARK-38084.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit 6347b9dc04576ef844a941460bb4a1814dc40dbb)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 dev/run-tests.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/run-tests.py b/dev/run-tests.py
index 545905b..3627571 100755
--- a/dev/run-tests.py
+++ b/dev/run-tests.py
@@ -760,13 +760,13 @@ def main():
     run_scala_tests(build_tool, extra_profiles, test_modules, excluded_tags, 
included_tags)
 
     modules_with_python_tests = [m for m in test_modules if 
m.python_test_goals]
-    if modules_with_python_tests:
+    if modules_with_python_tests and not os.environ.get("SKIP_PYTHON"):
         run_python_tests(
             modules_with_python_tests,
             opts.parallelism,
             with_coverage=os.environ.get("PYSPARK_CODECOV", "false") == "true")
         run_python_packaging_tests()
-    if any(m.should_run_r_tests for m in test_modules):
+    if any(m.should_run_r_tests for m in test_modules) and not 
os.environ.get("SKIP_R"):
         run_sparkr_tests()
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to