-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41485][BUILD][CORE][CONNECT][PROTOBUF] Unify the environment variable of *_PROTOC_EXEC_PATH. #39036
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
…ariable of *_PROTOC_EXEC_PATH.
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, cc @LuciferYang
LuciferYang
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.
+1, LGTM
|
Merged to master. |
|
Thanks @HyukjinKwon @LuciferYang ~ |
…ariable of *_PROTOC_EXEC_PATH ### What changes were proposed in this pull request? This PR unify the environment variable of `*_PROTOC_EXEC_PATH` to support that users can use the same environment variable to build and test `core`, `connect`, `protobuf` module by use profile named `-Puser-defined-protoc` with specifying custom `protoc` executables. ### Why are the changes needed? As described in [SPARK-41485](https://issues.apache.org/jira/browse/SPARK-41485), at present, there are 3 similar environment variable of `*_PROTOC_EXEC_PATH`, but they use the same `pb` version. Because they are consistent in compilation, so I unify the environment variable names to simplify. ### Does this PR introduce _any_ user-facing change? No, the way to using official pre-release `protoc` binary files is activated by default. ### How was this patch tested? - Pass GitHub Actions - Manual test on CentOS6u3 and CentOS7u4 ```bash export SPARK_PROTOC_EXEC_PATH=/path-to-protoc-exe ./build/mvn clean install -pl core -Puser-defined-protoc -am -DskipTests -DskipDefaultProtoc ./build/mvn clean install -pl connector/connect/common -Puser-defined-protoc -am -DskipTests ./build/mvn clean install -pl connector/protobuf -Puser-defined-protoc -am -DskipTests ./build/mvn clean test -pl core -Puser-defined-protoc -DskipDefaultProtoc ./build/mvn clean test -pl connector/connect/common -Puser-defined-protoc ./build/mvn clean test -pl connector/protobuf -Puser-defined-protoc ``` and ```bash export SPARK_PROTOC_EXEC_PATH=/path-to-protoc-exe ./build/sbt clean "core/compile" -Puser-defined-protoc ./build/sbt clean "connect-common/compile" -Puser-defined-protoc ./build/sbt clean "protobuf/compile" -Puser-defined-protoc ./build/sbt "core/test" -Puser-defined-protoc ./build/sbt "connect-common/test" -Puser-defined-protoc ./build/sbt "protobuf/test" -Puser-defined-protoc ``` Closes apache#39036 from WolverineJiang/master. Authored-by: jianghaonan <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
|
The correct jira should be SPARK-41485 rather than SPARK-41461, please correct the pr title on this page, although the commit message cannot be changed. @WolverineJiang |
Done. I'll pay attention next time. |
What changes were proposed in this pull request?
This PR unify the environment variable of
*_PROTOC_EXEC_PATHto support that users can use the same environment variable to build and testcore,connect,protobufmodule by use profile named-Puser-defined-protocwith specifying customprotocexecutables.Why are the changes needed?
As described in SPARK-41485, at present, there are 3 similar environment variable of
*_PROTOC_EXEC_PATH, but they use the samepbversion. Because they are consistent in compilation, so I unify the environment variable names to simplify.Does this PR introduce any user-facing change?
No, the way to using official pre-release
protocbinary files is activated by default.How was this patch tested?
and