-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-43988][INFRA] Add a daily maven testing GitHub Action job #41529
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
|
wait #41487 |
.github/workflows/build_and_test.yml
Outdated
| run: | | ||
| # Fix for TTY related issues when launching the Ammonite REPL in tests. | ||
| export TERM=vt100 && script -qfc 'echo exit | amm -s' && rm typescript | ||
| # `set -e` to make the exit status as expected due to use `script -q -e -c` to run the commands |
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.
another way is add a new script, maybe named dev/run-connect-maven-tests as follows:
#!/usr/bin/env bash
set -e
# Go to the Spark project root directory
FWDIR="$(cd "`dirname "$0"`"/..; pwd)"
cd "$FWDIR"
export SPARK_HOME=$FWDIR
echo "$SPARK_HOME"
if [[ -z "$JAVA_VERSION" ]]; then
JAVA_VERSION=8
fi
export MAVEN_OPTS="-Xss64m -Xmx2g -XX:ReservedCodeCacheSize=1g -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN"
export MAVEN_CLI_OPTS="--no-transfer-progress"
# 1. Test with -Phive
# It uses Maven's 'install' intentionally, see https://github.com/apache/spark/pull/26414.
build/mvn $MAVEN_CLI_OPTS -DskipTests -Djava.version=${JAVA_VERSION/-ea} install -Phive
build/mvn $MAVEN_CLI_OPTS -Djava.version=${JAVA_VERSION/-ea} test -pl connector/connect/client/jvm -Phive
# 2. Test without -Phive
build/mvn $MAVEN_CLI_OPTS -DskipTests -Djava.version=${JAVA_VERSION/-ea} install -pl assembly
build/mvn $MAVEN_CLI_OPTS -Djava.version=${JAVA_VERSION/-ea} test -pl connector/connect/client/jvmand run: can change to:
# Fix for TTY related issues when launching the Ammonite REPL in tests.
export TERM=vt100 && script -qfc 'echo exit | amm -s' && rm typescript
export JAVA_VERSION=${{ matrix.java }}
./dev/run-connect-maven-tests
TEST_RETCODE=$?
rm -rf ~/.m2/repository/org/apache/spark
exit $TEST_RETCODE
I tested it and it worked, but due to lack of this script in branch-3.4, we need to add "connect-maven" : "false" to build_branch34.yml when using script
|
7c0409b rebase to test |
|
@HyukjinKwon @dongjoon-hyun Do you think this is necessary? For the |
|
friendly ping @HyukjinKwon @dongjoon-hyun |
|
also cc @hvanhovell , I would like to add a maven test GA task for the connect modules because I think sbt testing always masks some issues(due to the visibility of the classpath) |
|
Don't feel strongly but I think we should better set a regular job ... with a broader scope .. doing this for every PR is I think a bit of overhead. |
A daily job and tests all modules using maven? |
|
Set to draft first, will be updated to add a maven daily test later |
| \"lint\" : \"true\", | ||
| \"k8s-integration-tests\" : \"true\", | ||
| \"breaking-changes-buf\" : \"true\", | ||
| \"maven-build\" : \"true\", |
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.
will change to false after test
| - ${{ inputs.hadoop }} | ||
| hive: | ||
| - hive2.3 | ||
| modules: |
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.
Do you use modules in this PR?
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
.github/workflows/build_and_test.yml
Outdated
| export JAVA_VERSION=${{ matrix.java }} | ||
| ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes -Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud -Djava.version=${JAVA_VERSION/-ea} clean install | ||
| if [[ "$INCLUDED_TAGS" != "" ]]; then | ||
| ./build/mvn $MAVEN_CLI_OPTS -pl "$MODULES_TO_TEST" -Pyarn -Pmesos -Pkubernetes -Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud -Djava.version=${JAVA_VERSION/-ea} -Dtest.include.tags="$INCLUDED_TAGS" 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.
Hmm. Got it. It uses MODULES_TO_TEST. May I ask which this is "for connect client module"?
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.
resource-managers/yarn,resource-managers/mesos,resource-managers/kubernetes is irrelevent to this, isn't it?
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, the topic of this pr will be changed and I want to add a daily maven test will to cover all modules.
Due to ongoing testing, the pr title and description have not been changed, which has caused you misunderstandings. Sorry for any inconvenience caused @dongjoon-hyun
|
created SPARK-44064 to tracking this |
|
created SPARK-44069 to tracking this |
This reverts commit d53ddbe.
...atalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
Show resolved
Hide resolved
…uava Cache"" This reverts commit 1fe8049.
What changes were proposed in this pull request?
TBD
Why are the changes needed?
TBD
Does this PR introduce any user-facing change?
No, just for test.
How was this patch tested?