-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31153][BUILD] Cleanup several failures in lint-python #27910
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
Conversation
|
Test build #119787 has finished for PR 27910 at commit
|
|
Test build #119793 has finished for PR 27910 at commit
|
|
Test build #119792 has finished for PR 27910 at commit
|
|
I think it's OK if it fixes the linter, and doesn't uncover old failures that would currently fail. |
|
Jenkins, retest this please. |
|
Test build #119801 has finished for PR 27910 at commit
|
| RUN_LOCAL_PYCODESTYLE="False" | ||
| if hash "$PYCODESTYLE_BUILD" 2> /dev/null; then | ||
| VERSION=$( $PYCODESTYLE_BUILD --version 2> /dev/null) | ||
| EXPECTED_PYCODESTYLE=$( ("$PYTHON_EXECUTABLE" -c 'from distutils.version import LooseVersion; |
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.
I think it was mistakenly re-indented at 42c4838#diff-ccd847a0316575dde31bd89786bbe1f2. cc @shaneknapp FYI
|
It fixes a bunch of mistakes we should avoid in general ... |
|
Merged to master. |
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]>
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]>
### What changes were proposed in this pull request? As discovered here #27910 (comment), pydocstyle tests were not running anywhere (not on Jenkins; not on GitHub). ~This PR enables those tests.~ It also seems like a [large hill to climb](#27912 (comment)) to enable any meaningful checks, so we're going to just rip pydocstyle out for now. ### Why are the changes needed? Presumably, we defined those doc style tests because we care about whatever it is they enforce. Since we're not actually testing anything, though, it's better to clear the cruft. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Will check the GitHub workflow logs on this PR. Closes #27912 from nchammas/SPARK-31155-pydocstyle. Authored-by: Nicholas Chammas <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
### What changes were proposed in this pull request? As discovered here #27910 (comment), pydocstyle tests were not running anywhere (not on Jenkins; not on GitHub). ~This PR enables those tests.~ It also seems like a [large hill to climb](#27912 (comment)) to enable any meaningful checks, so we're going to just rip pydocstyle out for now. ### Why are the changes needed? Presumably, we defined those doc style tests because we care about whatever it is they enforce. Since we're not actually testing anything, though, it's better to clear the cruft. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Will check the GitHub workflow logs on this PR. Closes #27912 from nchammas/SPARK-31155-pydocstyle. Authored-by: Nicholas Chammas <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit b4748ca) Signed-off-by: HyukjinKwon <[email protected]>
|
late "lgtm" from me. catching up now that i'm locked in my house for the
foreseeable future. :)
…On Sat, Mar 14, 2020 at 9:11 PM Hyukjin Kwon ***@***.***> wrote:
@nchammas <https://github.com/nchammas>, it has conflicts with
branch-3.0. Do you mind if I ask to make a backporting PR? We should port
it back to branch-3.0 as 42c4838
<42c4838>
laded to to branch-3.0 too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27910 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMIHLEGY7DHF5HINOUFXMTRHRIOZANCNFSM4LINRG5Q>
.
|
### What changes were proposed in this pull request?
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.
### Why are the changes needed?
`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.
### Does this PR introduce any user-facing change?
No.
### How was this patch tested?
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]>
### What changes were proposed in this pull request? As discovered here apache#27910 (comment), pydocstyle tests were not running anywhere (not on Jenkins; not on GitHub). ~This PR enables those tests.~ It also seems like a [large hill to climb](apache#27912 (comment)) to enable any meaningful checks, so we're going to just rip pydocstyle out for now. ### Why are the changes needed? Presumably, we defined those doc style tests because we care about whatever it is they enforce. Since we're not actually testing anything, though, it's better to clear the cruft. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Will check the GitHub workflow logs on this PR. Closes apache#27912 from nchammas/SPARK-31155-pydocstyle. Authored-by: Nicholas Chammas <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
What changes were proposed in this pull request?
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.
Why are the changes needed?
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.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Lots of manual testing with
set -xenabled.