-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32443][CORE] Use POSIX-compatible command -v in testCommandAvailable
#29241
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
command -v in testCommandAvailablecommand -v in testCommandAvailable
|
Hi, @srowen . |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Retest this please |
This comment has been minimized.
This comment has been minimized.
srowen
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.
If it's test-only, sure that seems fine. That's great if this is why the spark-submit tests were failing.
These are all the occurrences?
I wonder if this will affect other places in non-test code though? hm.
|
Yes. Everything is |
This comment has been minimized.
This comment has been minimized.
|
For now,
|
This comment has been minimized.
This comment has been minimized.
|
It turns out that
Let me take a look at that. |
sql/core/src/test/scala/org/apache/spark/sql/execution/python/PythonUDFSuite.scala
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
sql/core/src/test/scala/org/apache/spark/sql/IntegratedUDFTestUtils.scala
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
|
The PR is rebased to the master and reverted to the first commit. |
HyukjinKwon
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.
LGTM
|
Thank you, @HyukjinKwon ! |
|
Sorry guys. I updated this PR once more to add a fallback for
For Windows, let's revisit after we get a complete run on Linux first. PR description is also updated. |
|
I'll continue tomorrow because this should pass in both Jenkins/GitHub Action environment. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@dongjoon-hyun, I debugged it and looks basically it fails as it can't find I did a quick fix to try out and pushed here but feel free to revert if it doesn't look good. I just wanted to trigger the tests to show it works (considering the timezone between me and you guys) |
|
command is a shell built-in, right? maybe that's the issue, but then I don't know the fix other than to try to launch a new shell to run this, but then, does that still work? |
|
I didn't check all the tests yet but at least some tests (at HyukjinKwon#14).. we could wait and see .. |
|
AFAIK, |
|
@HyukjinKwon . Thank you for your help, but new commits look weird to me. May I reset those to start from the beginning to reinvestigate? I'll add your co-authorship later~ |
|
I got it from GitHub Actions - HyukjinKwon#14. That was exactly why I was confused about the logs and the issue here. Feel free to revert @dongjoon-hyun. It was just quick try to show. |
|
BTW, I'm try to catch up your trials. So, you want to use |
|
Yup, basically yes. I just thought for some reasons |
|
Test build #126653 has finished for PR 29241 at commit
|
|
Thanks, @HyukjinKwon . I must admit that @HyukjinKwon 's final try is the best. I'll merge this with his authorship and my coauthorship. Thanks! |
|
Oh, let me test with Scala 2.13 again. |
|
Yes. It works without Hang. I'll update the PR description. |
|
Thank you @dongjoon-hyun and @srowen. |
What changes were proposed in this pull request?
This PR aims to use
command -vin non-Window operating systems instead of executing the given command.Why are the changes needed?
commandis POSIX-compatiblecommandis faster and safer than the direct executioncommanddoesn't invoke another process.rmcannot be checked.AS-IS
TO-BE
Does this PR introduce any user-facing change?
No. Although this is inside
mainsource directory, this is used for testing purpose.How was this patch tested?
hang.