You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by HyukjinKwon <gi...@git.apache.org> on 2017/05/31 10:48:23 UTC

[GitHub] spark pull request #18161: [MINOR][PYTHON] Ignore pep8 on test scripts in wo...

GitHub user HyukjinKwon opened a pull request:

    https://github.com/apache/spark/pull/18161

    [MINOR][PYTHON] Ignore pep8 on test scripts in work directory generated in tests

    ## What changes were proposed in this pull request?
    
    Currently, if we run `./python/run-tests.py` and they are aborted without cleaning up this directory, it fails pep8 check due to some Python scripts generated. For example, https://github.com/apache/spark/blob/7387126f83dc0489eb1df734bfeba705709b7861/python/pyspark/tests.py#L1955-L1968
    
    ```
    PEP8 checks failed.
    ./work/app-20170531190857-0000/0/test.py:5:55: W292 no newline at end of file
    ./work/app-20170531190909-0000/0/test.py:5:55: W292 no newline at end of file
    ./work/app-20170531190924-0000/0/test.py:3:1: E302 expected 2 blank lines, found 1
    ./work/app-20170531190924-0000/0/test.py:7:52: W292 no newline at end of file
    ./work/app-20170531191016-0000/0/test.py:5:55: W292 no newline at end of file
    ./work/app-20170531191030-0000/0/test.py:5:55: W292 no newline at end of file
    ./work/app-20170531191045-0000/0/test.py:3:1: E302 expected 2 blank lines, found 1
    ./work/app-20170531191045-0000/0/test.py:7:52: W292 no newline at end of file
    ```
    
    This is a bit annoying to check pep8 sometimes.
    
    This PR proposes to exclude these (assuming we want to skip per https://github.com/apache/spark/blob/master/.gitignore#L73).
    
    Also, it moves other pep8 configurations in the script into ini configuration file in pep8.
    
    ## How was this patch tested?
    
    Manually tested via `./dev/lint-python`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HyukjinKwon/spark work-exclude-pep8

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18161.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18161
    
----
commit 968d9e7e08d730863427cfc48c49ebee82724919
Author: hyukjinkwon <gu...@gmail.com>
Date:   2017-05-31T10:38:58Z

    Ignore pep8 on work directory

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts generated in...

Posted by holdenk <gi...@git.apache.org>.
Github user holdenk commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts generated in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77587/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts generated in...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    +1, LGTM.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts generated in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    **[Test build #77587 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/77587/testReport)** for PR 18161 at commit [`968d9e7`](https://github.com/apache/spark/commit/968d9e7e08d730863427cfc48c49ebee82724919).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #18161: [MINOR][PYTHON] Ignore pep8 on test scripts gener...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/18161


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts generated in...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    Merged to master


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts generated in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts generated in...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    Thank you @srowen, @holdenk and @dongjoon-hyun .


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts in work dire...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    **[Test build #77587 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/77587/testReport)** for PR 18161 at commit [`968d9e7`](https://github.com/apache/spark/commit/968d9e7e08d730863427cfc48c49ebee82724919).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18161: [MINOR][PYTHON] Ignore pep8 on test scripts in work dire...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/18161
  
    @srowen and @holdenk, could you take a look please? I checked related codes were updated by both of you before (and me as well).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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