You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/08/10 00:18:06 UTC

[spark] branch master updated: [SPARK-39309][PYTHON][INFRA] Change xmlrunner to unittest-xml-reporting

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new a08f2e5ac73 [SPARK-39309][PYTHON][INFRA] Change xmlrunner to unittest-xml-reporting
a08f2e5ac73 is described below

commit a08f2e5ac735893bd1be4b851c57ff5ffef8a09c
Author: Yikun Jiang <yi...@gmail.com>
AuthorDate: Wed Aug 10 09:17:38 2022 +0900

    [SPARK-39309][PYTHON][INFRA] Change xmlrunner to unittest-xml-reporting
    
    ### What changes were proposed in this pull request?
    The xmlrunner had been moved to https://github.com/xmlrunner/unittest-xml-reporting
    
    ### Why are the changes needed?
    As metioned in SPARK-39309, I encountered a issue like: `AttributeError: '_SubTest' object has no attribute 'elapsed_time'`, according to https://github.com/xmlrunner/unittest-xml-reporting/issues/218#issuecomment-665088941 , I found that xmlrunner has been switch to `unittest-xml-reporting`.
    
    We'd better to upgrade xmlrunner to avoid these kind of legacy issues.
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    - Test on my local env
    - CI passed
    
    Closes #37448 from Yikun/SPARK-39309.
    
    Authored-by: Yikun Jiang <yi...@gmail.com>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
 .github/workflows/build_and_test.yml | 2 +-
 dev/infra/Dockerfile                 | 2 +-
 dev/requirements.txt                 | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index eba078f2396..3a9157010e9 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -242,7 +242,7 @@ jobs:
     - name: Install Python packages (Python 3.8)
       if: (contains(matrix.modules, 'sql') && !contains(matrix.modules, 'sql-'))
       run: |
-        python3.8 -m pip install 'numpy>=1.20.0' pyarrow pandas scipy xmlrunner
+        python3.8 -m pip install 'numpy>=1.20.0' pyarrow pandas scipy unittest-xml-reporting
         python3.8 -m pip list
     # Run the tests.
     - name: Run tests
diff --git a/dev/infra/Dockerfile b/dev/infra/Dockerfile
index 68f448a1016..5a16fb22d97 100644
--- a/dev/infra/Dockerfile
+++ b/dev/infra/Dockerfile
@@ -32,7 +32,7 @@ RUN $APT_INSTALL software-properties-common git libxml2-dev pkg-config curl wget
 RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
 
 RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
-RUN python3.9 -m pip install numpy pyarrow 'pandas<1.4.0' scipy xmlrunner plotly>=4.8 sklearn 'mlflow>=1.0' coverage matplotlib
+RUN python3.9 -m pip install numpy pyarrow 'pandas<1.4.0' scipy unittest-xml-reporting plotly>=4.8 sklearn 'mlflow>=1.0' coverage matplotlib
 
 RUN add-apt-repository ppa:pypy/ppa
 RUN apt update
diff --git a/dev/requirements.txt b/dev/requirements.txt
index 7244bff08d0..7771b97a732 100644
--- a/dev/requirements.txt
+++ b/dev/requirements.txt
@@ -12,7 +12,7 @@ sklearn
 matplotlib<3.3.0
 
 # PySpark test dependencies
-xmlrunner
+unittest-xml-reporting
 
 # PySpark test dependencies (optional)
 coverage


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org