-
Notifications
You must be signed in to change notification settings - Fork 169
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
build: Add basic CI test pipelines #18
Conversation
Need to find a way to test this. Also this only run tests in Linux for Spark 3.4 atm, and we need more combinations. |
9a6cd49
to
1d82548
Compare
@viirya @andygrove this is ready now. Tested here. |
@@ -651,6 +651,7 @@ mod tests { | |||
/// See [`object_panic_exception`] for a test which involves generating a panic and verifying | |||
/// that the resulting stack trace includes the offending call. | |||
#[test] | |||
#[ignore] |
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.
the golden file for this test is not added yet, so ignore for now
@@ -297,7 +297,7 @@ class CometTPCDSV1_4_PlanStabilitySuite extends CometPlanStabilitySuite { | |||
new File(baseResourcePath, "approved-plans-v1_4").getAbsolutePath | |||
|
|||
tpcdsQueries.foreach { q => | |||
test(s"check simplified (tpcds-v1.4/$q)") { | |||
ignore(s"check simplified (tpcds-v1.4/$q)") { |
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.
depends on #10
.github/workflows/pr_build.yml
Outdated
run: | | ||
cd core | ||
# This is required to run some JNI related tests on the Rust side | ||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/lib:$JAVA_HOME/lib/server cargo test |
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.
RUST_BACKTRACE=1?
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.
yea added
|
||
- name: Run tests | ||
run: | | ||
SPARK_HOME=`pwd` ./mvnw clean install |
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.
Hmm, we use ./mvnw verify
in Makefile, do we need to do that?
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.
Don't we need BOSON_CONF_DIR
?
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.
install
covers verify
: https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#a-build-lifecycle-is-made-up-of-phases
COMET_CONF_DIR
is optional and by default, Rust test outputs are directed to stdout.
There are a log message like this:
It is really distracting for looking at the logs. Can we silent it? |
Hmm perhaps we can cache the Maven dependencies so these will only show up in the first time. Let me check |
Thanks! merged. Let me check if the Maven cache did work. I'll create followups if it doesn't. |
This adds some basic CI test pipelines for the project. Basically run tests in the Rust and Java/Scala side within the repo.
Closes #7