-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-24694][K8S] Pass all app args to integration tests #21672
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
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #92483 has finished for PR 21672 at commit
|
|
@ssuchter @liyinan926 psl review. This is trivial, unless I am missing something. |
|
So this changes behavior, I think. In the old behavior, if the args were ['a', 'b'] then you'd get a single arg of ['a b'] passed through, and with this you'd get ['a', 'b']. This new behavior seems better, I'm just trying a bit to remember why we had the old behavior. |
|
I see why the old behavior was there. I made a minimal change to some existing code to fix a bug: but this new way is better. Question: In this new way, do we even need the test for appArguments.appArgs.length > 0? Could we just use appArguments.appArgs? |
|
BTW, for committers - I think this patch is good to merge. |
|
@ssuchter yes, if you check the jira, the old behavior does not work with more than one args. In the future might be a problem. |
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.
Doesn't this make appArgsArray basically redundant?
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.
Yes unless you pass a null... I updated my comment above ^^. Although I guess we take care of this earlier with an empty array whenever we call that method, so we should be safe. Anyway I can remove it.
|
Test build #92489 has finished for PR 21672 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
felixcheung
left a comment
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.
looks reasonable. is there a way to add test for this?
|
@felixcheung we could call a test job which accepts more than one args like: https://github.com/apache/spark/blob/d54d8b86301581142293341af25fd78b3278a2e8/examples/src/main/scala/org/apache/spark/examples/MultiBroadcastTest.scala. |
|
@felixcheung I think its ready to merge. In the future when we will add tests passing more params so we can verify it easily, but it is better than before. |
|
Merged to master |
What changes were proposed in this pull request?
How was this patch tested?
Manually tested it with a spark test that requires more than on app args.