-
Notifications
You must be signed in to change notification settings - Fork 425
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
[GLUTEN-7410][CORE] Add test args to run spark-ut and use JAVA_HOME java to build thirdparty lib #7411
base: main
Are you sure you want to change the base?
Conversation
Run Gluten Clickhouse CI |
@zhouyuan PTAL, thanks! |
Run Gluten Clickhouse CI |
@CodenameGHOST007 We do have github CI that runs for Java 8, 11 and 17, the tests run fine without this extra arguments |
Can you maybe check once in the previous CI runs to see if all the tests are running fine or not. Thanks! |
Run Gluten Clickhouse CI |
I checked the workflows that run spark-uts for velox backend in |
LGTM (Non Binding). Would ideally love to also have maybe a JDK 17 CI, but I know we're trying to reduce the overall CI runtime and cost, maybe something Yuan or @FelixYBW can decide. Thanks! |
Run Gluten Clickhouse CI |
Looks like the ClickHouse CI failed with
SPARK_HOME not set. |
Run Gluten Clickhouse CI |
It seems to be because of |
Run Gluten Clickhouse CI |
dev/package.sh
Outdated
if [[ -n "$JAVA_HOME" ]]; then | ||
echo "JAVA_HOME needs to be set for Gluten Compilation" | ||
exit 1 | ||
fi |
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.
s/Compilation/compilation
What's the major consideration to make JAVA_HOME required?
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.
General best practice and mainly to avoid inconsistency since if the system has JAVA_HOME set gluten compilation will happen on that but third party libs will be generated with the Java on PATH of the system.
Run Gluten Clickhouse CI |
…ava to build thirdparty lib Spark UTs need the above args to run and had to be supplied seperately while running the tests. Third party lib was build using the jar on PATH of system. Instead it should use the JAVA_HOME one.
Run Gluten Clickhouse CI |
What changes were proposed in this pull request?
Spark UTs need the above args to run and had to be supplied seperately while running the tests. Third party lib was build using the jar on PATH of system. Instead it should use the JAVA_HOME one.
(Fixes: GLUTEN-7410)
How was this patch tested?
Ran Spark UTs