Skip to content
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

refactor(x)!: rename x/consensus to x/comet #21497

Closed
wants to merge 7 commits into from
Closed

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Sep 2, 2024

Description

Diff may look scary, but it isn't. Easy to look through everything on GH.

  • Rename x/consensus to x/comet to not have the word "consensus" owned by comet in the SDK
    • Amino strings have not changed
    • The proto packages have not been renamed
    • An alias has been added to query the comet params as /comet/ but /consensus/ still exists for backward compatibly
    • This means for clients nothing should change
    • The module name and its store key has not changed (otherwise the module address would change)
    • x/consensus has no default genesis / export genesis, so no genesis migration in genutil is required
  • Add UPGRADING.md note and main CHANGELOG note
  • Rename vanity url
  • Move core/comet service into x/comet/service (ref Core v1 API Review #21176) to not include comet-specific things in core (TBD - in follow-up if possible without adding deps in v2)
  • Move core/context/CometInfoKey to x/comet/core for the same reason as above (TBD - in follow-up if possible without adding deps in v2)

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Copy link
Contributor

coderabbitai bot commented Sep 2, 2024

Warning

Rate limit exceeded

@julienrbrt has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 29 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between f79b380 and 282ab5d.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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>.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @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.

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 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.

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.
Early access features: disabled

We are currently testing the following features in early access:

  • Anthropic claude-3-5-sonnet for code reviews: Anthropic claims that the new Claude model has stronger code understanding and code generation capabilities than their previous models. Note: Our default code review model was also updated late last week. Please compare the quality of the reviews between the two models by toggling the early access feature.

Note:

  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.
  • Please join our Discord Community to provide feedback and report issues on the discussion post.

@julienrbrt
Copy link
Member Author

More renaming can be done later (namely in modules).

GetConsensusAuthority feels like a code smell in server/v2.AppI.

@julienrbrt julienrbrt marked this pull request as draft September 2, 2024 09:42
@julienrbrt julienrbrt marked this pull request as ready for review September 2, 2024 09:45
@julienrbrt julienrbrt added the backport/v0.52.x PR scheduled for inclusion in the v0.52's next stable release label Sep 2, 2024
@julienrbrt
Copy link
Member Author

We decided in the team call not to rename right now. CometBFT can claim x/consensus.
We will do other improvements to put everything cometbft info related in this module too.
I'll cherry-pick other fixes back to main.

@julienrbrt julienrbrt closed this Sep 2, 2024
@julienrbrt julienrbrt deleted the julien/x/comet branch September 2, 2024 15:26
julienrbrt added a commit that referenced this pull request Sep 2, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 4, 2024
Co-authored-by: Akhil Kumar P <36399231+akhilkumarpilli@users.noreply.github.com>
mergify bot pushed a commit that referenced this pull request Sep 4, 2024
Co-authored-by: Akhil Kumar P <36399231+akhilkumarpilli@users.noreply.github.com>
(cherry picked from commit 6ffa71a)

# Conflicts:
#	server/v2/types.go
julienrbrt added a commit that referenced this pull request Sep 4, 2024
Co-authored-by: Julien Robert <julien@rbrt.fr>
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.

4 participants