-
Notifications
You must be signed in to change notification settings - Fork 384
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
[CELEBORN-843][BUILD] sbt
support flink-related module build/test
#1764
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1764 +/- ##
==========================================
- Coverage 46.81% 46.80% -0.00%
==========================================
Files 162 162
Lines 10012 10012
Branches 923 923
==========================================
- Hits 4686 4685 -1
+ Misses 5019 5018 -1
- Partials 307 309 +2 see 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
diff between the diff --git a/maven-files.out b/sbt-files.out
index 8228cae..8db58f9 100644
--- a/maven-files.out
+++ b/sbt-files.out
@@ -1,19 +1,6 @@
./celeborn-client-flink-1.17-shaded_2.12-0.4.0-SNAPSHOT.jar
-./google/protobuf/any.proto
-./google/protobuf/api.proto
-./google/protobuf/compiler/plugin.proto
-./google/protobuf/descriptor.proto
-./google/protobuf/duration.proto
-./google/protobuf/empty.proto
-./google/protobuf/field_mask.proto
-./google/protobuf/source_context.proto
-./google/protobuf/struct.proto
-./google/protobuf/timestamp.proto
-./google/protobuf/type.proto
-./google/protobuf/wrappers.proto
-./META-INF/DEPENDENCIES
+./META-INF/INDEX.LIST
./META-INF/io.netty.versions.properties
-./META-INF/LICENSE
./META-INF/LICENSE.txt
./META-INF/MANIFEST.MF
./META-INF/maven/com.google.guava/guava/pom.properties
@@ -80,53 +67,12 @@
./META-INF/maven/io.netty/netty-transport-sctp/pom.xml
./META-INF/maven/io.netty/netty-transport-udt/pom.properties
./META-INF/maven/io.netty/netty-transport-udt/pom.xml
-./META-INF/maven/org.apache.celeborn/celeborn-client_2.12/pom.properties
-./META-INF/maven/org.apache.celeborn/celeborn-client_2.12/pom.xml
-./META-INF/maven/org.apache.celeborn/celeborn-client-flink-1.17_2.12/pom.properties
-./META-INF/maven/org.apache.celeborn/celeborn-client-flink-1.17_2.12/pom.xml
-./META-INF/maven/org.apache.celeborn/celeborn-client-flink-1.17-shaded_2.12/pom.properties
-./META-INF/maven/org.apache.celeborn/celeborn-client-flink-1.17-shaded_2.12/pom.xml
-./META-INF/maven/org.apache.celeborn/celeborn-client-flink-common_2.12/pom.properties
-./META-INF/maven/org.apache.celeborn/celeborn-client-flink-common_2.12/pom.xml
-./META-INF/maven/org.apache.celeborn/celeborn-common_2.12/pom.properties
-./META-INF/maven/org.apache.celeborn/celeborn-common_2.12/pom.xml
./META-INF/maven/org.apache.commons/commons-lang3/pom.properties
./META-INF/maven/org.apache.commons/commons-lang3/pom.xml
./META-INF/maven/org.jctools/jctools-core/pom.properties
./META-INF/maven/org.jctools/jctools-core/pom.xml
-./META-INF/native-image/io.netty/netty-buffer/native-image.properties
-./META-INF/native-image/io.netty/netty-codec-dns/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-haproxy/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-http2/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-http2/native-image.properties
-./META-INF/native-image/io.netty/netty-codec-http/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-http/native-image.properties
-./META-INF/native-image/io.netty/netty-codec-memcache/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-mqtt/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec/native-image.properties
-./META-INF/native-image/io.netty/netty-codec-redis/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-smtp/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-socks/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-stomp/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-codec-xml/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-common/native-image.properties
-./META-INF/native-image/io.netty/netty-handler/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-handler/native-image.properties
-./META-INF/native-image/io.netty/netty-handler-proxy/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-resolver-dns/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-resolver-dns/native-image.properties
-./META-INF/native-image/io.netty/netty-transport-classes-epoll/jni-config.json
-./META-INF/native-image/io.netty/netty-transport-classes-epoll/native-image.properties
-./META-INF/native-image/io.netty/netty-transport-classes-epoll/reflect-config.json
-./META-INF/native-image/io.netty/netty-transport-classes-epoll/resource-config.json
-./META-INF/native-image/io.netty/netty-transport/generated/handlers/reflect-config.json
-./META-INF/native-image/io.netty/netty-transport/native-image.properties
-./META-INF/native-image/io.netty/netty-transport/reflection-config.json
-./META-INF/native-image/io.netty/netty-transport-sctp/generated/handlers/reflect-config.json
./META-INF/native/liborg_apache_celeborn_shaded_netty_transport_native_epoll_aarch_64.so
./META-INF/native/liborg_apache_celeborn_shaded_netty_transport_native_epoll_x86_64.so
-./META-INF/NOTICE
./META-INF/NOTICE.txt
./META-INF/services/reactor.blockhound.integration.BlockHoundIntegration
./org/apache/celeborn/client/ApplicationHeartbeater$$anon$1.class
@@ -844,6 +790,8 @@
./org/apache/celeborn/common/write/SimplePushStrategy.class
./org/apache/celeborn/common/write/SlowStartPushStrategy$CongestControlContext.class
./org/apache/celeborn/common/write/SlowStartPushStrategy.class
+./org/apache/celeborn/package$.class
+./org/apache/celeborn/package.class
./org/apache/celeborn/plugin/flink/AbstractRemoteShuffleEnvironment.class
./org/apache/celeborn/plugin/flink/AbstractRemoteShuffleInputGateFactory.class
./org/apache/celeborn/plugin/flink/AbstractRemoteShuffleResultPartitionFactory.class
@@ -6664,4 +6612,3 @@
./org/apache/celeborn/shaded/org/roaringbitmap/RunContainer.class
./org/apache/celeborn/shaded/org/roaringbitmap/Util.class
./org/apache/celeborn/shaded/org/roaringbitmap/WordStorage.class
-./TransportMessages.proto |
Ping @RexXiong @FMX @zhongqiangczq could you take a look at this PR? thanks! |
project/CelebornBuild.scala
Outdated
@@ -202,7 +213,7 @@ object CelebornCommon { | |||
"io.dropwizard.metrics" % "metrics-core" % metricsVersion, | |||
"io.dropwizard.metrics" % "metrics-graphite" % metricsVersion, | |||
"io.dropwizard.metrics" % "metrics-jvm" % metricsVersion, | |||
"io.netty" % "netty-all" % nettyVersion, | |||
("io.netty" % "netty-all" % nettyVersion).exclude("io.netty", "netty-handler-ssl-ocsp"), |
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.
can you remove this change? as we discussed before, do exclusion after introducing the dependency list audit mechanism.
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.
updated
can sbt still use the maven local repository to avoid download dependencies again ? |
Good catch, it should be, let me raise a separate PR to support this. |
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
### What changes were proposed in this pull request? As title ### Why are the changes needed? #1764 (comment) before this PR ```shell > ./build/sbt -Pspark-3.3 "clean; show celeborn-common/csrResolvers" [info] * FileRepository(local, Patterns(ivyPatterns=Vector(/Users/fchen/.ivy2/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=Vector(/Users/fchen/.ivy2/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false), FileConfiguration(true, None)) [info] * private: file:/dev/null [info] * aliyun-maven: https://maven.aliyun.com/nexus/content/groups/public/ [info] * huawei-central: https://mirrors.huaweicloud.com/repository/maven/ [success] Total time: 0 s, completed 2023-8-1 11:40:25 ``` ```shell > ./build/sbt -Pspark-3.3 "clean; show celeborn-client-spark-3/managedClasspath" | grep spark [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-core_2.12/3.3.2/spark-core_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-sql_2.12/3.3.2/spark-sql_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-launcher_2.12/3.3.2/spark-launcher_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-kvstore_2.12/3.3.2/spark-kvstore_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-network-common_2.12/3.3.2/spark-network-common_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-network-shuffle_2.12/3.3.2/spark-network-shuffle_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-unsafe_2.12/3.3.2/spark-unsafe_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-tags_2.12/3.3.2/spark-tags_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/spark-project/spark/unused/1.0.0/unused-1.0.0.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-sketch_2.12/3.3.2/spark-sketch_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/Library/Caches/Coursier/v1/https/mirrors.huaweicloud.com/repository/maven/org/apache/spark/spark-catalyst_2.12/3.3.2/spark-catalyst_2.12-3.3.2.jar) ``` after this PR ```shell > ./build/sbt -Pspark-3.3 "clean; show celeborn-common/csrResolvers" [success] Total time: 0 s, completed 2023-8-1 11:45:02 [info] * FileRepository(local, Patterns(ivyPatterns=Vector(/Users/fchen/.ivy2/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=Vector(/Users/fchen/.ivy2/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false), FileConfiguration(true, None)) [info] * mavenLocal: file:/Users/fchen/.m2/repository/ [info] * private: file:/dev/null [info] * aliyun-maven: https://maven.aliyun.com/nexus/content/groups/public/ [info] * huawei-central: https://mirrors.huaweicloud.com/repository/maven/ [success] Total time: 0 s, completed 2023-8-1 11:45:02 ``` ```shell > ./build/sbt -Pspark-3.3 "clean; show celeborn-client-spark-3/managedClasspath" | grep spark [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-core_2.12/3.3.2/spark-core_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-sql_2.12/3.3.2/spark-sql_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-launcher_2.12/3.3.2/spark-launcher_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-kvstore_2.12/3.3.2/spark-kvstore_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-network-common_2.12/3.3.2/spark-network-common_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-network-shuffle_2.12/3.3.2/spark-network-shuffle_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-unsafe_2.12/3.3.2/spark-unsafe_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-tags_2.12/3.3.2/spark-tags_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/spark-project/spark/unused/1.0.0/unused-1.0.0.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-sketch_2.12/3.3.2/spark-sketch_2.12-3.3.2.jar) [info] * Attributed(/Users/fchen/.m2/repository/org/apache/spark/spark-catalyst_2.12/3.3.2/spark-catalyst_2.12-3.3.2.jar) ``` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GA Closes #1780 from cfmcgrady/sbt-maven-local. Authored-by: Fu Chen <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
Thanks, merged to main |
### What changes were proposed in this pull request? This PR adds new GitHub Actions workflows to enable Continuous Integration using SBT based on #1764 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GA Closes #1771 from cfmcgrady/sbt-ci. Authored-by: Fu Chen <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
What changes were proposed in this pull request?
This PR adds packaging and testing support for Flink-related modules using SBT based on #1757
Why are the changes needed?
improve project build speed
running flink-it tests with -Pflink-1.14
running flink-it tests with -Pflink-1.17
packing and shading the flink 1.14 client
packing and shading the flink 1.17 client
Does this PR introduce any user-facing change?
yes
How was this patch tested?
tested locally