-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[WIP][SPARK-42240][INFRA][CONNECT][TESTS] Move ClientE2ETestSuite into a separate module and add new GA task to test shaded jvm client with maven
#39807
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
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
d1712fc
first commit
LuciferYang 22d6c58
add connect-client-integration-tests to modules.py
LuciferYang 309347b
remove assembly
LuciferYang 839c4d3
more test
LuciferYang 762dbe0
add test
LuciferYang aea7bb1
exlcue repl
LuciferYang 615f0af
remove deps
LuciferYang abc4b85
with profile
LuciferYang f3ec10c
add empty line
LuciferYang 5572dfb
use package
LuciferYang 8fca8e7
add 213 teset
LuciferYang a427f4d
revert to use install
LuciferYang 3f772ac
Merge branch 'apache:master' into jvm-it-2
LuciferYang e498d00
remove condition
LuciferYang 589b1b3
rename
LuciferYang 51f8cee
rename
LuciferYang e3b41ce
add scala-compiler test deps
LuciferYang 878f057
fix sbt compile
LuciferYang 0c9fee3
test scala -2.13
LuciferYang 70b1e21
fix maven found jar
LuciferYang a331c72
find jar
LuciferYang e0f9ad5
revert to scala 2.12
LuciferYang 0c512d5
use install
LuciferYang 155e589
Merge branch 'upmaster' into jvm-it-2
LuciferYang f485ce4
fix location
LuciferYang a249f06
add ServicesResourceTransformer for maven
LuciferYang 47cda99
move to connect.client
LuciferYang a41a806
Merge branch 'upmaster' into jvm-it-2
LuciferYang b1fc936
remove profile
LuciferYang 50900c8
mima
LuciferYang 406382e
Merge branch 'upmaster' into jvm-it-2
LuciferYang b342042
move mima test
LuciferYang 7143c4e
ignore simple udf test
LuciferYang 408c15a
mima version
LuciferYang 790f31f
udpate sparkbuild
LuciferYang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| ~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
| ~ contributor license agreements. See the NOTICE file distributed with | ||
| ~ this work for additional information regarding copyright ownership. | ||
| ~ The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| ~ (the "License"); you may not use this file except in compliance with | ||
| ~ the License. You may obtain a copy of the License at | ||
| ~ | ||
| ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~ | ||
| ~ Unless required by applicable law or agreed to in writing, software | ||
| ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ~ See the License for the specific language governing permissions and | ||
| ~ limitations under the License. | ||
| --> | ||
|
|
||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
| <groupId>org.apache.spark</groupId> | ||
| <artifactId>spark-parent_2.12</artifactId> | ||
| <version>3.5.0-SNAPSHOT</version> | ||
| <relativePath>../../../../pom.xml</relativePath> | ||
| </parent> | ||
|
|
||
| <artifactId>spark-connect-client-jvm-e2e-tests_2.12</artifactId> | ||
| <packaging>jar</packaging> | ||
| <name>Spark Project Connect Client E2E Tests</name> | ||
| <url>https://spark.apache.org/</url> | ||
| <properties> | ||
| <sbt.project.name>connect-client-jvm-e2e-tests</sbt.project.name> | ||
| <guava.version>31.0.1-jre</guava.version> | ||
| <mima.version>1.1.0</mima.version> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.spark</groupId> | ||
| <artifactId>spark-connect-client-jvm_${scala.binary.version}</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.spark</groupId> | ||
| <artifactId>spark-connect-common_${scala.binary.version}</artifactId> | ||
| <scope>test</scope> | ||
| <version>${project.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.scala-lang</groupId> | ||
| <artifactId>scala-compiler</artifactId> | ||
| <version>${scala.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <!-- Use mima to perform the compatibility check --> | ||
| <dependency> | ||
| <groupId>com.typesafe</groupId> | ||
| <artifactId>mima-core_${scala.binary.version}</artifactId> | ||
| <version>${mima.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
| <build> | ||
| <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory> | ||
| </build> | ||
| </project> |
39 changes: 39 additions & 0 deletions
39
connector/connect/client/jvm-e2e-tests/src/test/resources/log4j2.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| # Set everything to be logged to the file target/unit-tests.log | ||
| rootLogger.level = info | ||
| rootLogger.appenderRef.file.ref = ${sys:test.appender:-File} | ||
|
|
||
| appender.file.type = File | ||
| appender.file.name = File | ||
| appender.file.fileName = target/unit-tests.log | ||
| appender.file.layout.type = PatternLayout | ||
| appender.file.layout.pattern = %d{yy/MM/dd HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex | ||
|
|
||
| # Tests that launch java subprocesses can set the "test.appender" system property to | ||
| # "console" to avoid having the child process's logs overwrite the unit test's | ||
| # log file. | ||
| appender.console.type = Console | ||
| appender.console.name = console | ||
| appender.console.target = SYSTEM_ERR | ||
| appender.console.layout.type = PatternLayout | ||
| appender.console.layout.pattern = %t: %m%n%ex | ||
|
|
||
| # Ignore messages below warning level from Jetty, because it's a bit verbose | ||
| logger.jetty.name = org.sparkproject.jetty | ||
| logger.jetty.level = warn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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 reason for using maven for build and test is that in the current dependency configuration way, I don't know how SBT fetch assembly connect client jar