[SPARK-29672][PYSPARK] update spark testing framework to use python3#26330
[SPARK-29672][PYSPARK] update spark testing framework to use python3#26330shaneknapp wants to merge 32 commits into
Conversation
|
Test build #112965 has finished for PR 26330 at commit
|
|
Test build #112966 has finished for PR 26330 at commit
|
|
Thank you for making this PR, @shaneknapp . |
that's actually in |
btw i've never really looked too closely at |
|
Test build #112972 has finished for PR 26330 at commit
|
|
Test build #112968 has finished for PR 26330 at commit
|
|
test this please |
|
Test build #112977 has finished for PR 26330 at commit
|
|
okie dokie, i'm confident that this change won't break anything, but i'll wait on merging until i get the word. |
srowen
left a comment
There was a problem hiding this comment.
Seems OK to me, though I don't know this script well.
this is @holdenk 's contribution... should have added her to the review earlier. also, if you look at the console output (https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/112977/console), the following block of code in |
|
The code change LGTM provided it runs in Jenkins |
|
Test build #113043 has finished for PR 26330 at commit
|
|
test this please |
|
Test build #113050 has finished for PR 26330 at commit
|
i'll revert my pypy3 change and let the test run again... this is officially out of scope of this pr. :) |
This reverts commit b57acd9.
|
Actually, @shaneknapp, I think we should remove pypy 2.5 too, which is compatible with Python 2 ... does it make things complicated? |
|
Ah, tests fails with: Okay, this one I think I can try to investigate it in a separate PR. I will make a followup after this PR. |
There was a problem hiding this comment.
Looks good in general. There is one side issue #26330 (comment)
nope, it makes things easier. :) |
|
Test build #113059 has finished for PR 26330 at commit
|
imho it's better to get the test/build infra upgraded before new versions are cut... if we still want to 'unofficially' support python2.7/pypy2.5.1 right up until we release 3.0, i can add those back to in fact, i will do that now "just to see what happens". :) |
|
My thought is that it's not that practical to test every PR against every Python version we support. We should focus on maybe 2 of the most widely used versions. Since we still need to support these versions, we can setup pre-release tasks to run the full tests and correct any issues that have come up. I think any issues will mostly be minor syntax problems and should be easily corrected. |
so, which two versions would you suggest? 3.6? 2.7? some other minor version of 3? |
|
Test build #113722 has finished for PR 26330 at commit
|
|
ok, i have an idea: how about i change the scope of this PR (and associated JIRA) to solely update the test/build infrastructure to python3. i will leave the python2.7/pypy2.5.1 test calls in place (see b5bada3) for now. once we cut the first 3.0 release, we can decide exactly which major/minor versions of python to test against on sound reasonable? if so, then this PR is ready to merge as-is. |
If we are choosing 2 versions, I think 3.6 and maybe 3.8.
That sounds like a good plan if it's not too much hassle for you. I would get a little nervous about some Python 2 issue holding up the release :) |
|
Seems OK to me if it's forward progress. But we drop it entirely after branch 3.0 is cut? |
that works... it will take a little bit of work to get a 3.8 conda env set up, but i should be able to get that sorted by the end of january 2020.
well, tests are currently passing w/python2... which is great. if we see that python2 tests are going to hold up the 3.0 release, i can just yank the python2.7 (and pypy) executables from
yeah, it's forward progress and i will be overjoyed to drop python2.7/pypy2.5.1 after 3.0. i'll update the PR title/desc, as well as the JIRA and then merge later today. |
|
thanks for the reviews everyone! much appreciated... :) |
|
BTW, @shaneknapp quick question. did we change default |
|
Hi, @shaneknapp . - ZINC_PORT=$(python -S -c "import random; print random.randrange(3030,4030)")
+ ZINC_PORT=$(python -S -c "import random; print(random.randrange(3030,4030))") |
|
Oh, NVM about my comment. It was because #26133 |
yeah, i missed a couple of those. they're all fixed now. |
|
Thank you, @shaneknapp ! |
|
Hey @HyukjinKwon , did you resolve the error ? |
|
Can you file a JIRA with the reproducible steps? |
…encies.sh ### What changes were proposed in this pull request? This PR is a followup of #26330. There is the last place to fix in `dev/test-dependencies.sh` ### Why are the changes needed? To stick to Python 3 instead of using Python 2 mistakenly. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested. Closes #33368 from HyukjinKwon/change-python-3. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…encies.sh ### What changes were proposed in this pull request? This PR is a followup of #26330. There is the last place to fix in `dev/test-dependencies.sh` ### Why are the changes needed? To stick to Python 3 instead of using Python 2 mistakenly. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested. Closes #33368 from HyukjinKwon/change-python-3. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 6bd385f) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…encies.sh ### What changes were proposed in this pull request? This PR is a followup of #26330. There is the last place to fix in `dev/test-dependencies.sh` ### Why are the changes needed? To stick to Python 3 instead of using Python 2 mistakenly. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested. Closes #33368 from HyukjinKwon/change-python-3. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 6bd385f) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…encies.sh ### What changes were proposed in this pull request? This PR is a followup of #26330. There is the last place to fix in `dev/test-dependencies.sh` ### Why are the changes needed? To stick to Python 3 instead of using Python 2 mistakenly. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested. Closes #33368 from HyukjinKwon/change-python-3. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 6bd385f) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…encies.sh ### What changes were proposed in this pull request? This PR is a followup of apache#26330. There is the last place to fix in `dev/test-dependencies.sh` ### Why are the changes needed? To stick to Python 3 instead of using Python 2 mistakenly. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested. Closes apache#33368 from HyukjinKwon/change-python-3. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 6bd385f) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
remove python2.7 tests and test infra for 3.0+
Why are the changes needed?
because python2.7 is finally going the way of the dodo.
Does this PR introduce any user-facing change?
newp.
How was this patch tested?
the build system will test this