Skip to content

[SPARK-37011][PYTHON] Remove unnecessary 'noqa: F401' comments#34385

Closed
ueshin wants to merge 2 commits intoapache:masterfrom
ueshin:issues/SPARK-37011/F401
Closed

[SPARK-37011][PYTHON] Remove unnecessary 'noqa: F401' comments#34385
ueshin wants to merge 2 commits intoapache:masterfrom
ueshin:issues/SPARK-37011/F401

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Oct 25, 2021

What changes were proposed in this pull request?

Remove unnecessary 'noqa: F401' comments.

Why are the changes needed?

Now that flake8 in Jenkins was upgraded (#34384), we can remove unnecessary 'noqa: F401' comments.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

@SparkQA
Copy link

SparkQA commented Oct 25, 2021

Test build #144598 has finished for PR 34385 at commit 44da384.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ueshin ueshin changed the title [SPARK-37011][PYTHON] Remove unnecessary 'F401' comments [SPARK-37011][PYTHON] Remove unnecessary 'noqa: F401' comments Oct 25, 2021
@ueshin
Copy link
Member Author

ueshin commented Oct 25, 2021

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Oct 25, 2021

Test build #144599 has finished for PR 34385 at commit 44da384.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 25, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49068/

@SparkQA
Copy link

SparkQA commented Oct 25, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49069/

@SparkQA
Copy link

SparkQA commented Oct 25, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49068/

@SparkQA
Copy link

SparkQA commented Oct 25, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49069/

@ueshin
Copy link
Member Author

ueshin commented Oct 25, 2021

Jenkins, retest this please.

@HyukjinKwon
Copy link
Member


./python/pyspark/pandas/_typing.py:25:5: F401 'pyspark.pandas.base.IndexOpsMixin' imported but unused
    from pyspark.pandas.base import IndexOpsMixin
    ^
./python/pyspark/pandas/_typing.py:27:5: F401 'pyspark.pandas.generic.Frame' imported but unused
    from pyspark.pandas.generic import Frame
    ^
2     F401 'pyspark.pandas.base.IndexOpsMixin' imported but unused
2

I think this is because Jenkins users old version of flake8 .. we'll have to find the way to make it compatible with old versions too for now until we drop Jenkins (end of this year).

Otherwise LGTM

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Test build #144600 has finished for PR 34385 at commit 44da384.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49070/

@ueshin
Copy link
Member Author

ueshin commented Oct 26, 2021

That's weird. Actually I tried it with flake8==3.9.0 locally and it passes.

% flake8 --version
3.9.0 (mccabe: 0.6.1, pycodestyle: 2.7.0, pyflakes: 2.3.1) CPython 3.9.6 on Darwin

% ./dev/lint-python
starting python compilation test...
python compilation succeeded.

starting black test...
black checks passed.

starting pycodestyle test...
pycodestyle checks passed.

starting flake8 test...
flake8 checks passed.

starting mypy test...
mypy checks passed.


all lint-python tests passed!

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49070/

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for the PR itself. I'm also not sure about the status of Jenkins.

@shaneknapp
Copy link
Contributor

test this please

@shaneknapp
Copy link
Contributor

+1 for the PR itself. I'm also not sure about the status of Jenkins.

yeah, that's definitely weird. i ran lint-python manually, as jenkins, on a worker, in an identical environment as the build w/a fresh clone of spark and it passed. let's see what the build i just triggered did

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Test build #144629 has finished for PR 34385 at commit 44da384.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shaneknapp
Copy link
Contributor

test this please

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49099/

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Test build #144630 has finished for PR 34385 at commit 44da384.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49100/

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49099/

@shaneknapp
Copy link
Contributor

yeah, i'm confused as to why this is failing. leave this open, and i'll look in to the underlying failure later this week/early next.

@SparkQA
Copy link

SparkQA commented Oct 26, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49100/

@ueshin
Copy link
Member Author

ueshin commented Oct 27, 2021

@shaneknapp Thanks for taking a look at this!

@shaneknapp
Copy link
Contributor

@shaneknapp Thanks for taking a look at this!

i created a 2nd PR to do some deeper testing of this: #34404

@shaneknapp
Copy link
Contributor

i straced lint-python in the other PR and am preparing myself to lose a few brain cells digging through the output later today. :)

https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144666/console

@HyukjinKwon
Copy link
Member

I think we can merge it now since Jenkins is dropped :-). @ueshin would you mind rebasing this Pr please?

@dongjoon-hyun
Copy link
Member

+1 for merging, too.

@ueshin
Copy link
Member Author

ueshin commented Dec 28, 2021

Thanks! merging to master.

@ueshin ueshin closed this in 2b2d722 Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments