Uh oh!
There was an error while loading. Please reload this page.
[SPARK-5482][PySpark] Allow individual test suites in python/run-tests - #4269
[SPARK-5482][PySpark] Allow individual test suites in python/run-tests#4269potix2 wants to merge 6 commits into
Conversation
AmplabJenkins
commented
Jan 29, 2015
Can one of the admins verify this patch? |
1 similar comment
AmplabJenkins
commented
Apr 27, 2015
Can one of the admins verify this patch? |
JoshRosen
commented
May 31, 2015
Another useful refactoring would be to let us run the tests for only one of the supported Python versions instead of all of them. This is useful when augmenting the test suite to collect coverage metrics. To do this, maybe we should split the script into two, one that tests with a particular python version and another that loops over the versions and invokes that script. |
potix2
commented
Jun 2, 2015
ok, I understand it. I try to split run-tests and rebase this branch onto master. |
potix2
commented
Jun 3, 2015
@JoshRosen Should we define the list of supported python versions in a test script?
|
JoshRosen
commented
Jun 3, 2015
@potix2, yep, that's the right set of versions to test against. In the top-level test runner script, I think that we can check whether those versions are installed (using By the way, if it's easier then I'd be fine with rewriting this file in Python rather than keeping it as bash. |
potix2
commented
Jun 3, 2015
Thank you, @JoshRosen. I got it. There is no problem to rewrite in Python. |
JoshRosen
commented
Jun 18, 2015
Jenkins, this is ok to test. |
AmplabJenkins
commented
Jun 18, 2015
Merged build triggered. |
AmplabJenkins
commented
Jun 18, 2015
Merged build started. |
SparkQA
commented
Jun 18, 2015
Test build #35164 has started for PR 4269 at commit |
JoshRosen
commented
Jun 18, 2015
Hey @potix2, thanks for updating this. I'm going to take a look at this today because I have an outstanding PR to improve In the long run, it might be nice to rewrite this in Python, but I don't feel that such as rewrite necessarily has to be a blocker to merging this. If you're already working on a Python port, though, then just let me know and I'll be happy to wait for it. |
There was a problem hiding this comment.
It looks like this pypy.sh file isn't invoked from anywhere; do we need it?
There was a problem hiding this comment.
Also, we might want to remove the # -*- coding: utf-8 -*- lines in case Apache RAT complains about them.
SparkQA
commented
Jun 18, 2015
Test build #35164 has finished for PR 4269 at commit
|
AmplabJenkins
commented
Jun 18, 2015
Merged build finished. Test FAILed. |
JoshRosen
commented
Jun 18, 2015
Jenkins, retest this please. |
AmplabJenkins
commented
Jun 18, 2015
Merged build triggered. |
AmplabJenkins
commented
Jun 18, 2015
Merged build started. |
SparkQA
commented
Jun 18, 2015
Test build #35179 has started for PR 4269 at commit |
SparkQA
commented
Jun 18, 2015
Test build #35179 has finished for PR 4269 at commit
|
AmplabJenkins
commented
Jun 18, 2015
Merged build finished. Test PASSed. |
potix2
commented
Jun 19, 2015
@JoshRosen, I haven't started rewriting in python yet, so it's no problem that I make it to be out of scope for this PR. |
AmplabJenkins
commented
Jun 19, 2015
Merged build triggered. |
AmplabJenkins
commented
Jun 19, 2015
Merged build started. |
SparkQA
commented
Jun 19, 2015
Test build #35202 has started for PR 4269 at commit |
SparkQA
commented
Jun 19, 2015
Test build #35202 has finished for PR 4269 at commit
|
AmplabJenkins
commented
Jun 19, 2015
Merged build finished. Test FAILed. |
AmplabJenkins
commented
Jun 19, 2015
Merged build triggered. |
AmplabJenkins
commented
Jun 19, 2015
Merged build started. |
SparkQA
commented
Jun 19, 2015
Test build #35206 has started for PR 4269 at commit |
AmplabJenkins
commented
Jun 19, 2015
Merged build triggered. |
AmplabJenkins
commented
Jun 19, 2015
Merged build started. |
SparkQA
commented
Jun 19, 2015
Test build #35208 has started for PR 4269 at commit |
SparkQA
commented
Jun 19, 2015
Test build #35206 has finished for PR 4269 at commit
|
AmplabJenkins
commented
Jun 19, 2015
Merged build finished. Test FAILed. |
SparkQA
commented
Jun 19, 2015
Test build #35208 has finished for PR 4269 at commit
|
AmplabJenkins
commented
Jun 19, 2015
Merged build finished. Test PASSed. |
There was a problem hiding this comment.
Do we need to double-quote $1?
There was a problem hiding this comment.
By the way, this prints an error when I run it on my Mac:
[joshrosen python (2c6a7d4...)]$ ./run-tests
./run-tests: line 33: [: too many arguments
JoshRosen
commented
Jun 19, 2015
Actually, I find this bash code too difficult to understand / review and would rather just block on a complete Python rewrite. I don't want to spend the time to understand the bash-isms here if we're just going to rewrite anyways. |
potix2
commented
Jun 19, 2015
Sorry to confuse you, I agree with you. As a first step, we should rewrite run-tests in Python, then append new features. I took a look at #6866, I think it has some useful functions to rewrite bash code into Python. If you don't mind, I want to wait to merge it. |
JoshRosen
commented
Jun 22, 2015
My other PR (#6866) was merged, so I think this should be unblocked now. Which functions were you hoping to borrow from that script? If we're going to use some of those functions in two places, then I guess we can either duplicate them or move them to a common location and import them from there. If we do choose to extract them into their own module, I'd probably opt to create a new Python module inside of the |
JoshRosen
commented
Jun 24, 2015
potix2
commented
Jun 24, 2015
Hi @JoshRosen, no problem. Thank you for considering this PR. I try to revise my code. |
JoshRosen
commented
Jun 24, 2015
I ended up incorporating this feature into my pull request because I needed something like this in order to trigger a subset of the Python tests in the pull request builder. Therefore, I recommend that we close this PR and continue discussion on mine. Thanks! |
potix2
commented
Jun 24, 2015
All right. Thanks! |
Add options to run individual test suites in python/run-tests.
TODO
rewrite in python