-
Notifications
You must be signed in to change notification settings - Fork 0
Bazel migration for service_commons module #227
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
WalkthroughThis pull request introduces comprehensive updates to the build configuration and dependency management for a Java project. The changes focus on standardizing Java language and runtime versions to version 17, adding new JVM rulesets, defining service commons libraries and test suites, and expanding the Maven repository with updated and new dependencies across testing, logging, configuration, and Vert.x frameworks. Changes
Possibly related PRs
Suggested reviewers
Poem
Warning Review ran into problems🔥 ProblemsGitHub Actions: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository. Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
service_commons/BUILD.bazel (1)
42-63
: Optimize test dependencies.test-lib dependencies are duplicated in test. Move common deps to test-lib.
java_test_suite( name = "test", srcs = glob(["src/test/**/*.java"]), visibility = ["//visibility:public"], runner = "junit5", deps = [ ":lib", ":test-lib", - "//api:lib", - "//api:thrift", - "//online:lib", - # Libraries - maven_artifact("io.vertx:vertx-core"), - maven_artifact("io.vertx:vertx-web"), - maven_artifact("io.vertx:vertx-web-client"), - # Testing - maven_artifact("io.vertx:vertx-junit5"), - maven_artifact("org.junit.jupiter:junit-jupiter-api"), maven_artifact("org.junit.platform:junit-platform-launcher"), maven_artifact("org.junit.platform:junit-platform-reporting"), ], )
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)
📒 Files selected for processing (6)
.bazelrc
(1 hunks)WORKSPACE
(1 hunks)service_commons/BUILD.bazel
(1 hunks)service_commons/src/main/java/ai/chronon/service/ChrononServiceLauncher.java
(1 hunks)tools/build_rules/dependencies/maven_repository.bzl
(2 hunks)tools/build_rules/prelude_bazel
(1 hunks)
✅ Files skipped from review due to trivial changes (2)
- .bazelrc
- service_commons/src/main/java/ai/chronon/service/ChrononServiceLauncher.java
🔇 Additional comments (3)
tools/build_rules/prelude_bazel (1)
11-14
: Complete the SCALA_DEPS list.The comment suggests more Scala deps but none are listed.
tools/build_rules/dependencies/maven_repository.bzl (1)
51-51
: Verify Netty version compatibility.Netty 4.1.111.Final is very recent. Ensure compatibility with Vertx 4.5.10.
WORKSPACE (1)
44-54
: LGTM!contrib_rules_jvm setup is correct and properly integrated.
@@ -0,0 +1,2 @@ | |||
build --java_language_version=17 |
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.
btw @kumar-zlai once we get to building out the cloud_gcp
target we'll need to use jdk 11 for GCP compatibility.
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.
I think for the service we should be fine on a newer jdk. It is preferable as we can leverage shenandoah gc etc which has better perf etc on 17..
## Summary Migrated `service_commons` module to Bazel from sbt. ## Checklist - [ ] Added Unit Tests - [X] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced build configuration to support Java 17 - Added new JVM rulesets for improved testing and development - **Dependencies** - Updated Netty to version 4.1.111.Final - Added JUnit 5 testing components - Integrated Vert.x 4.5.10 libraries - Added logback and configuration libraries - **Build Improvements** - Refined Bazel build rules for Java libraries and test suites - Streamlined dependency management <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: nikhil-zlai <[email protected]> Co-authored-by: Kumar Teja Chippala <[email protected]>
## Summary Migrated `service_commons` module to Bazel from sbt. ## Checklist - [ ] Added Unit Tests - [X] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced build configuration to support Java 17 - Added new JVM rulesets for improved testing and development - **Dependencies** - Updated Netty to version 4.1.111.Final - Added JUnit 5 testing components - Integrated Vert.x 4.5.10 libraries - Added logback and configuration libraries - **Build Improvements** - Refined Bazel build rules for Java libraries and test suites - Streamlined dependency management <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: nikhil-zlai <[email protected]> Co-authored-by: Kumar Teja Chippala <[email protected]>
## Summary Migrated `service_commons` module to Bazel from sbt. ## Checklist - [ ] Added Unit Tests - [X] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced build configuration to support Java 17 - Added new JVM rulesets for improved testing and development - **Dependencies** - Updated Netty to version 4.1.111.Final - Added JUnit 5 testing components - Integrated Vert.x 4.5.10 libraries - Added logback and configuration libraries - **Build Improvements** - Refined Bazel build rules for Java libraries and test suites - Streamlined dependency management <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: nikhil-zlai <[email protected]> Co-authored-by: Kumar Teja Chippala <[email protected]>
## Summary Migrated `service_commons` module to Bazel from sbt. ## Checklist - [ ] Added Unit Tests - [X] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced build configuration to support Java 17 - Added new JVM rulesets for improved testing and development - **Dependencies** - Updated Netty to version 4.1.111.Final - Added JUnit 5 testing components - Integrated Vert.x 4.5.10 libraries - Added logback and configuration libraries - **Build Improvements** - Refined Bazel build rules for Java libraries and test suites - Streamlined dependency management <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: nikhil-zlai <[email protected]> Co-authored-by: Kumar Teja Chippala <[email protected]>
## Summary Migrated `service_commons` module to Bazel from sbt. ## Cheour clientslist - [ ] Added Unit Tests - [X] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced build configuration to support Java 17 - Added new JVM rulesets for improved testing and development - **Dependencies** - Updated Netty to version 4.1.111.Final - Added JUnit 5 testing components - Integrated Vert.x 4.5.10 libraries - Added logbaour clients and configuration libraries - **Build Improvements** - Refined Bazel build rules for Java libraries and test suites - Streamlined dependency management <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: nikhil-zlai <[email protected]> Co-authored-by: Kumar Teja Chippala <[email protected]>
Summary
Migrated
service_commons
module to Bazel from sbt.Checklist
Summary by CodeRabbit
Release Notes
New Features
Dependencies
Build Improvements