Uh oh!
There was an error while loading. Please reload this page.
[SPARK-31153][BUILD][3.0] Cleanup several failures in lint-python - #27917
[SPARK-31153][BUILD][3.0] Cleanup several failures in lint-python#27917nchammas wants to merge 1 commit into
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.
Closesapache#27910 from nchammas/SPARK-31153-lint-python.
Authored-by: Nicholas Chammas <nicholas.chammas@liveramp.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>nchammas
commented
Mar 15, 2020
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.
LGTM pending Jenkins and Github Action tests, assuming it's also manually tested (e.g., version checking when it's not installed)
HyukjinKwon
commented
Mar 15, 2020
@nchammas sure, looks good! one nit in the PR title I fixed. |
nchammas
commented
Mar 15, 2020
Can confirm I tested it manually with |
SparkQA
commented
Mar 15, 2020
Test build #119810 has finished for PR 27917 at commit
|
nchammas
commented
Mar 15, 2020
Retest this please. |
SparkQA
commented
Mar 15, 2020
Test build #119814 has finished for PR 27917 at commit
|
HyukjinKwon
commented
Mar 16, 2020
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 <nicholas.chammas@liveramp.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
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.