-
Notifications
You must be signed in to change notification settings - Fork 8
Bazel migration for service module #241
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 Bazel build configurations for a Java service, adding library and test suite targets in the 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. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
🪧 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 (4)
service/BUILD.bazel (2)
26-45: Consider standardizing on JUnit 5.Both JUnit 4 (
junit:junit) and 5 (junit-jupiter-api) are included, which may cause confusion.
47-69: Reduce dependency duplication.Most dependencies are duplicated from test-lib. Consider moving common deps to test-lib.
flink/BUILD.bazel (2)
26-62: Consider organizing test dependencies.Similar to service/BUILD.bazel, consider moving common test dependencies to a central location.
64-101: Reduce dependency duplication.Dependencies are duplicated from test-lib. Consider referencing test-lib's deps instead.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)
📒 Files selected for processing (4)
flink/BUILD.bazel(1 hunks)service/BUILD.bazel(1 hunks)service/src/test/java/ai/chronon/service/handlers/FetchHandlerTest.java(5 hunks)tools/build_rules/dependencies/maven_repository.bzl(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- service/src/test/java/ai/chronon/service/handlers/FetchHandlerTest.java
🔇 Additional comments (3)
service/BUILD.bazel (1)
1-24: LGTM! Add tests as mentioned in PR description.Dependencies and configuration look correct for a Vert.x service.
tools/build_rules/dependencies/maven_repository.bzl (1)
60-68: LGTM! Dependencies are consistent.Flink and Vert.x versions are aligned across artifacts.
Also applies to: 76-76
flink/BUILD.bazel (1)
1-24: LGTM! Dependencies are well-organized.Flink streaming and core dependencies are properly configured.
nikhil-zlai
left a comment
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.
refactor to re-use common array(s) of deps across targets.
| put("feature_2", 23.3); | ||
| put("feature_3", "USD"); | ||
| }}; | ||
| Map<String, Object> featureMap = new HashMap<>(Map.of( |
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.
nit - just use map.of
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.
done
| add(mockResponse1); | ||
| add(mockResponse2); | ||
| }}; | ||
| List<JavaResponse> mockResponseList = new ArrayList<>(List.of( |
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.
nit - just use list.of
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.
done
done |
## Summary Migrated `service` 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 - **Build Configuration** - Added new Bazel targets for Java library and test suite - Configured dependencies for library and testing - **Test Improvements** - Updated test code to use more concise collection initialization methods - Simplified test code structure without changing functionality - **Dependency Management** - Added Vert.x Unit testing library version 4.5.10 <!-- 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` 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 - **Build Configuration** - Added new Bazel targets for Java library and test suite - Configured dependencies for library and testing - **Test Improvements** - Updated test code to use more concise collection initialization methods - Simplified test code structure without changing functionality - **Dependency Management** - Added Vert.x Unit testing library version 4.5.10 <!-- 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` 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 - **Build Configuration** - Added new Bazel targets for Java library and test suite - Configured dependencies for library and testing - **Test Improvements** - Updated test code to use more concise collection initialization methods - Simplified test code structure without changing functionality - **Dependency Management** - Added Vert.x Unit testing library version 4.5.10 <!-- 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` 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 - **Build Configuration** - Added new Bazel targets for Java library and test suite - Configured dependencies for library and testing - **Test Improvements** - Updated test code to use more concise collection initialization methods - Simplified test code structure without changing functionality - **Dependency Management** - Added Vert.x Unit testing library version 4.5.10 <!-- 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` 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 - **Build Configuration** - Added new Bazel targets for Java library and test suite - Configured dependencies for library and testing - **Test Improvements** - Updated test code to use more concise collection initialization methods - Simplified test code structure without changing functionality - **Dependency Management** - Added Vert.x Unit testing library version 4.5.10 <!-- 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
servicemodule to Bazel from sbt.Checklist
Summary by CodeRabbit
Build Configuration
Test Improvements
Dependency Management