Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jan 3, 2023

What changes were proposed in this pull request?

Currently, the GitHub Action Python linter job is broken. This PR will recover Python linter failure.

Why are the changes needed?

There are two kind of failures.

  1. https://github.com/apache/spark/actions/runs/3829330032/jobs/6524170799
python/pyspark/pandas/sql_processor.py:221: error: unused "type: ignore" comment
Found 1 error in 1 file (checked 380 source files)
  1. After fixing (1), we hit the following.
ModuleNotFoundError: No module named 'py._path'; 'py' is not a package

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the GitHub CI on this PR. Or, manually run the following.

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

starting black test...
black checks passed.

starting flake8 test...
flake8 checks passed.

starting mypy annotations test...
annotations passed mypy checks.

starting mypy examples test...
examples passed mypy checks.

starting mypy data test...
annotations passed data checks.


all lint-python tests passed!

@dongjoon-hyun
Copy link
Member Author

Could you review this, @HyukjinKwon ?

@dongjoon-hyun
Copy link
Member Author

Thank you, @HyukjinKwon ! Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-41864 branch January 3, 2023 23:01
dongjoon-hyun added a commit that referenced this pull request Jan 4, 2023
Currently, the GitHub Action Python linter job is broken. This PR will recover Python linter failure.

There are two kind of failures.
1. https://github.com/apache/spark/actions/runs/3829330032/jobs/6524170799
```
python/pyspark/pandas/sql_processor.py:221: error: unused "type: ignore" comment
Found 1 error in 1 file (checked 380 source files)
```

2. After fixing (1), we hit the following.
```
ModuleNotFoundError: No module named 'py._path'; 'py' is not a package
```

No.

Pass the GitHub CI on this PR. Or, manually run the following.
```
$ dev/lint-python
starting python compilation test...
python compilation succeeded.

starting black test...
black checks passed.

starting flake8 test...
flake8 checks passed.

starting mypy annotations test...
annotations passed mypy checks.

starting mypy examples test...
examples passed mypy checks.

starting mypy data test...
annotations passed data checks.

all lint-python tests passed!
```

Closes #39373 from dongjoon-hyun/SPARK-41864.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 13b2856)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member Author

This is backported to branch-3.3 to fix the same issue.

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.

2 participants