Skip to content

Conversation

@shihuili1218
Copy link
Collaborator

@shihuili1218 shihuili1218 commented Jul 12, 2025

#1203

Summary by CodeRabbit

  • Chores
    • Updated the project version from 1.3.15.bugfix to 1.4.0 across all modules.
    • Changed Java source and target compatibility from 17 to 1.8 for the project build configuration.

yuanyuan.liu added 2 commits July 10, 2025 13:39
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 12, 2025

Walkthrough

This change updates the parent Maven project version from 1.3.15.bugfix to 1.4.0 across all modules. Additionally, the Java source and target versions in the root pom.xml are changed from 17 to 1.8. No code or public entity declarations are modified.

Changes

Files/Paths Change Summary
pom.xml Updated project version to 1.4.0; set Java source/target to 1.8
jraft-core/pom.xml
jraft-example/pom.xml
jraft-extension/pom.xml
jraft-extension/bdb-log-storage-impl/pom.xml
jraft-extension/rpc-grpc-impl/pom.xml
jraft-rheakv/pom.xml
jraft-rheakv/rheakv-core/pom.xml
jraft-rheakv/rheakv-pd/pom.xml
jraft-test/pom.xml
Updated parent version from 1.3.15.bugfix to 1.4.0

Possibly related PRs

Suggested labels

cla:yes, size/S

Suggested reviewers

  • fengjiachun

Poem

A hop, a skip, a version jump,
From bugfix past, to four-oh’s bump.
Java’s age now back in time,
One-point-eight, a classic climb.
The garden’s modules all align—
The codebase fresh, the build divine!
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (4)
jraft-extension/pom.xml (1)

4-8: Same parent-version verification as noted in jraft-rheakv/pom.xml

Ensure jraft-parent:1.4.0 is resolvable; otherwise this module (and its sub-modules) will not compile.
No other issues spotted.

jraft-test/pom.xml (1)

4-8: Parent version bump—see earlier comment

Build correctness depends on jraft-parent:1.4.0 being available.
Nothing else to flag for this POM.

jraft-core/pom.xml (1)

4-8: Parent version consistency check

Same concern: verify jraft-parent:1.4.0 is published and contains the expected Java 8 compiler settings that all modules inherit.

jraft-rheakv/rheakv-core/pom.xml (1)

4-8: Parent 1.4.0 availability

Inherited parent must be resolvable; see detailed verification script in the first POM review.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f8cd0f2 and fae56d3.

📒 Files selected for processing (10)
  • jraft-core/pom.xml (1 hunks)
  • jraft-example/pom.xml (1 hunks)
  • jraft-extension/bdb-log-storage-impl/pom.xml (1 hunks)
  • jraft-extension/pom.xml (1 hunks)
  • jraft-extension/rpc-grpc-impl/pom.xml (1 hunks)
  • jraft-rheakv/pom.xml (1 hunks)
  • jraft-rheakv/rheakv-core/pom.xml (1 hunks)
  • jraft-rheakv/rheakv-pd/pom.xml (1 hunks)
  • jraft-test/pom.xml (1 hunks)
  • pom.xml (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: test_rheakv_pd
  • GitHub Check: test_rheakv_core
  • GitHub Check: test_rpc_grpc_impl
  • GitHub Check: test_jraft_core
  • GitHub Check: sca
🔇 Additional comments (5)
jraft-extension/bdb-log-storage-impl/pom.xml (1)

7-7: Parent version bump looks good

The module simply aligns with the new parent 1.4.0; no further issues spotted.

jraft-extension/rpc-grpc-impl/pom.xml (1)

7-7: Parent version bump looks good

No functional or build-time impact beyond inheriting the new parent.

jraft-rheakv/rheakv-pd/pom.xml (1)

7-7: Parent version bump looks good

Consistent with the rest of the multi-module build.

jraft-example/pom.xml (1)

8-8: Parent version bump looks good

Nothing else changed; build behaviour is preserved.

pom.xml (1)

7-7: Root version updated – OK

The project has been correctly tagged as 1.4.0.

Comment on lines 4 to 8
<parent>
<artifactId>jraft-parent</artifactId>
<groupId>com.alipay.sofa</groupId>
<version>1.3.15.bugfix</version>
<version>1.4.0</version>
</parent>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Confirm availability of jraft-parent:1.4.0 before merging

The build will fail for every module if com.alipay.sofa:jraft-parent:1.4.0 has not been published to your artifact repository / Maven Central.
Please verify the version exists and is publicly downloadable.


🏁 Script executed:

#!/bin/bash
# Verify that jraft-parent 1.4.0 is published on Maven Central
curl -s 'https://search.maven.org/solrsearch/select?q=g:%22com.alipay.sofa%22+AND+a:%22jraft-parent%22+AND+v:%221.4.0%22&rows=1&wt=json' \
| jq '.response.numFound'   # expect: 1

Length of output: 164


jraft-parent 1.4.0 not published to Maven Central
The Maven Central search returned 0 results for com.alipay.sofa:jraft-parent:1.4.0, so this parent POM isn’t available publicly. The build will fail unless you either:

  • Publish jraft-parent:1.4.0 to your artifact repository (or Maven Central), or
  • Update the <version> in jraft-rheakv/pom.xml (lines 4–8) to an already released parent version.
🤖 Prompt for AI Agents
In jraft-rheakv/pom.xml between lines 4 and 8, the parent POM version 1.4.0 for
jraft-parent is not available on Maven Central, causing build failures. To fix
this, either publish the jraft-parent version 1.4.0 to your artifact repository
or update the <version> tag to a previously released and publicly available
version of jraft-parent in the pom.xml file.

Comment on lines +62 to +63
<java.source.version>1.8</java.source.version>
<java.target.version>1.8</java.target.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Downgrading to Java 8 conflicts with existing Java 17-specific flags

maven-surefire-plugin (lines 365-367) still injects --add-opens … JVM options that are only recognised by Java 9+.
Running tests on JDK 8 will immediately fail with Unrecognized option: --add-opens.

Either keep the tool-chain at Java 17 or remove/conditionally add those module-open flags.

Suggested quick fix (revert to 17):

-        <java.source.version>1.8</java.source.version>
-        <java.target.version>1.8</java.target.version>
+        <java.source.version>17</java.source.version>
+        <java.target.version>17</java.target.version>

If Java 8 is mandatory, also strip the --add-opens … from the surefire argLine and audit code for any Java 9+ APIs already in use.

🤖 Prompt for AI Agents
In pom.xml around lines 62 to 63, the Java source and target versions are set to
1.8, but the maven-surefire-plugin configuration at lines 365-367 still includes
Java 9+ specific JVM options like --add-opens, causing test failures on JDK 8.
To fix this, either revert the java.source.version and java.target.version back
to 17 to match the plugin settings, or if Java 8 must be used, remove or
conditionally exclude the --add-opens options from the surefire plugin's argLine
and verify no Java 9+ APIs are used in the codebase.

Copy link
Contributor

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! LGTM

@shihuili1218 shihuili1218 merged commit f533ec0 into master Jul 12, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants