-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31153][BUILD][3.0] Cleanup several failures in lint-python #27917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-31153][BUILD][3.0] Cleanup several failures in lint-python #27917
Conversation
This PR cleans up several failures -- most of them silent -- in `dev/lint-python`. I don't understand how we haven't been bitten by these yet. Perhaps we've been lucky?
Fixes include:
* Fix how we compare versions. All the version checks currently in `master` silently fail with:
```
File "<string>", line 2
print(LooseVersion("""2.3.1""") >= LooseVersion("""2.4.0"""))
^
IndentationError: unexpected indent
```
Another problem is that `distutils.version` is undocumented and unsupported.
* Fix some basic bugs. e.g. We have an incorrect reference to `$PYDOCSTYLEBUILD`, which doesn't exist, which was causing the doc style test to silently fail with:
```
./dev/lint-python: line 193: --version: command not found
```
* Stop suppressing error output! It's hiding problems and serves no purpose here.
`lint-python` is part of our CI build and is currently doing any combination of the following: silently failing; incorrectly skipping tests; incorrectly downloading libraries when a suitable library is already available.
No.
Lots of manual testing with `set -x` enabled.
Closes apache#27910 from nchammas/SPARK-31153-lint-python.
Authored-by: Nicholas Chammas <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
|
cc @HyukjinKwon. It's my first time backporting a change. Did I do it right? Contributing guide doesn't say much about how to do it. |
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending Jenkins and Github Action tests, assuming it's also manually tested (e.g., version checking when it's not installed)
|
@nchammas sure, looks good! one nit in the PR title I fixed. |
Can confirm I tested it manually with |
|
Test build #119810 has finished for PR 27917 at commit
|
|
Retest this please. |
|
Test build #119814 has finished for PR 27917 at commit
|
|
Merged to branch-3.0. Thank you @nchammas for working on this. |
Backport of #27910 / 0ce5519. --- This PR cleans up several failures -- most of them silent -- in `dev/lint-python`. I don't understand how we haven't been bitten by these yet. Perhaps we've been lucky? Fixes include: * Fix how we compare versions. All the version checks currently in `master` silently fail with: ``` File "<string>", line 2 print(LooseVersion("""2.3.1""") >= LooseVersion("""2.4.0""")) ^ IndentationError: unexpected indent ``` Another problem is that `distutils.version` is undocumented and unsupported. * Fix some basic bugs. e.g. We have an incorrect reference to `$PYDOCSTYLEBUILD`, which doesn't exist, which was causing the doc style test to silently fail with: ``` ./dev/lint-python: line 193: --version: command not found ``` * Stop suppressing error output! It's hiding problems and serves no purpose here. `lint-python` is part of our CI build and is currently doing any combination of the following: silently failing; incorrectly skipping tests; incorrectly downloading libraries when a suitable library is already available. Closes #27917 from nchammas/SPARK-31153-lint-python-branch-3.0. Authored-by: Nicholas Chammas <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
Backport of #27910 / 0ce5519.
This PR cleans up several failures -- most of them silent -- in
dev/lint-python. I don't understand how we haven't been bitten by these yet. Perhaps we've been lucky?Fixes include:
Fix how we compare versions. All the version checks currently in
mastersilently fail with:Another problem is that
distutils.versionis undocumented and unsupported.Fix some basic bugs. e.g. We have an incorrect reference to
$PYDOCSTYLEBUILD, which doesn't exist, which was causing the doc style test to silently fail with:Stop suppressing error output! It's hiding problems and serves no purpose here.
lint-pythonis part of our CI build and is currently doing any combination of the following: silently failing; incorrectly skipping tests; incorrectly downloading libraries when a suitable library is already available.