-
Notifications
You must be signed in to change notification settings - Fork 28.8k
[CORE] [SPARK-9760] Use Option instead of Some for Ivy repos #8055
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
Also I am not sure how to add a test case for this as our existing unit tests use a custom Ivy repository which is always specified in |
LGTM - @brkyvz this is why our coding style wants Option instead of Some! |
Sorry for introducing this. A way to test this is to not provide a repository, and use a fake coordinate so that it fails with a RuntimeException, and not a NullPointerException. |
Added a test case but I'm not sure how useful it is as a lot of things can throw a RuntimeException ? @rxin let me know if its worth having it vs. a few seconds added to the test suites. |
I see why SparkSubmitUtilsSuite didn't catch this. I think I use either Some(repo) or none. Never Some(null). I thought we could add it to SparkSubmitUtilsSuite and use the intercept, not in an end to end SparkSubmitSuite test... May be you can add a comment on the line and say that they should remain as Options? I don't think the test is very useful in the current setup |
Test build #40255 has finished for PR 8055 at commit
|
Test build #40257 has finished for PR 8055 at commit
|
retest this please |
Test build #40260 has finished for PR 8055 at commit
|
Jenkins, retest this please |
@brkyvz Removed the test case now. I'm not sure adding a comment is really relevant as the argument to the method is an |
Test build #40273 has finished for PR 8055 at commit
|
Merging this - thanks. |
This was introduced in #7599 cc rxin brkyvz Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu> Closes #8055 from shivaram/spark-packages-repo-fix and squashes the following commits: 890f306 [Shivaram Venkataraman] Remove test case 51d69ee [Shivaram Venkataraman] Add test case for --packages without --repository c02e0b4 [Shivaram Venkataraman] Use Option instead of Some for Ivy repos (cherry picked from commit 4602561) Signed-off-by: Reynold Xin <rxin@databricks.com>
Hallelujah! Finally |
Test build #40274 has finished for PR 8055 at commit
|
This was introduced in apache#7599 cc rxin brkyvz Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu> Closes apache#8055 from shivaram/spark-packages-repo-fix and squashes the following commits: 890f306 [Shivaram Venkataraman] Remove test case 51d69ee [Shivaram Venkataraman] Add test case for --packages without --repository c02e0b4 [Shivaram Venkataraman] Use Option instead of Some for Ivy repos
This was introduced in #7599
cc @rxin @brkyvz