-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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-1455] [SPARK-3534] [Build] When possible, run SQL tests only. #2420
Conversation
Includes some cosmetic/maintainability refactoring.
QA tests have started for PR 2420 at commit
|
QA tests have started for PR 2420 at commit
|
QA tests have finished for PR 2420 at commit
|
QA tests have finished for PR 2420 at commit
|
Yeah, thanks for working on this! :) What do you think about making a dummy commit in this PR that changes SQL to make sure everything tests as expected? You can commit, trigger jenkins, then revert. In the past we've had bugs where we silently stop testing SQL and yet think everything is working. |
Since If you want, I can have the dummy SQL commit also temporarily hack |
oh hmmm, I guess its also okay to do a dummy follow up PR to make sure things are working. @rxin do you have a second to look this over? I think its mostly changing code you wrote. |
This looks good to me, but I'm not very good at reviewing bash code (who is?). I guess we can merge and watch closely the next few PRs to see if they are functioning properly. At some point maybe we should consider writing these in Python instead of bash... |
Amen. So shall we go the dummy commit route first, and then revert, merge, and watch closely? |
What's the dummy route? |
Dummy commit to change a SQL file and also hack |
Yea that makes sense to me. |
Dunno if that was a rhetorical question (I'm no expert by any means!), but @pwendell has reviewed some of my bash patches in the past. |
@pwendell @JoshRosen FYI, I'm going to merge this. I'll try and watch jenkins to see if anything breaks. |
Whoops! I was making a fix right now for a bug that I found in testing locally (and that I was going to confirm got fixed on Jenkins with the dummy commit.) |
# QUESTION: Why doesn't 'yes "q"' work? | ||
# QUESTION: Why doesn't 'grep -v -e "^\[info\] Resolving"' work? | ||
echo -e "q\n" \ | ||
| sbt/sbt "$SBT_MAVEN_PROFILES_ARGS" "$SBT_MAVEN_TEST_ARGS" \ |
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.
$SBT_MAVEN_TEST_ARGS
needs to be an array, otherwise this won't work as expected.
@marmbrus I just pushed a fix to |
Can you just make a follow up PR with the change? I don' think we have permission to reopen things and we can't roll back merges in apache only add new commits that revert them. |
OK, will do! |
Testing arguments to `sbt` need to be passed as an array, not a single, long string. Fixes a bug introduced in #2420. Author: Nicholas Chammas <[email protected]> Closes #2437 from nchammas/selective-testing and squashes the following commits: a9f9c1c [Nicholas Chammas] fix printing of sbt test arguments cf57cbf [Nicholas Chammas] fix sbt test arguments e33b978 [Nicholas Chammas] Merge pull request #2 from apache/master 0b47ca4 [Nicholas Chammas] Merge branch 'master' of github.com:nchammas/spark 8051486 [Nicholas Chammas] Merge pull request #1 from apache/master 03180a4 [Nicholas Chammas] Merge branch 'master' of github.com:nchammas/spark d4c5f43 [Nicholas Chammas] Merge pull request #6 from apache/master
If the only files changed are related to SQL, then only run the SQL tests.
This patch includes some cosmetic/maintainability refactoring. I would be more than happy to undo some of these changes if they are inappropriate.
We can accept this patch mostly as-is and address the immediate need documented in SPARK-3534, or we can keep it open until a satisfactory solution along the lines discussed here is reached.
Note: I had to hack this patch up to test it locally, so what I'm submitting here and what I tested are technically different.