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

chore(deps): cometbft v0.37.5, cosmos-sdk v0.47.11, proto-builder v0.14.0 #1899

Merged
merged 1 commit into from
May 28, 2024

Conversation

Unique-Divine
Copy link
Member

Purpose / Abstract

  1. Smoother upgrade to using IBC v0.7.5
  2. Performance improvments in CometBFT without breaking changes

@Unique-Divine Unique-Divine requested a review from a team as a code owner May 28, 2024 19:13
Copy link
Contributor

coderabbitai bot commented May 28, 2024

Walkthrough

The recent updates primarily focus on upgrading build dependencies and improving the development workflow. Key changes include updating the cometbft, cosmos-sdk, and proto-builder dependencies, modifying the protoVer variable in the makefile, and enhancing the installation instructions for generating protobuf files. These updates ensure compatibility with the latest versions and streamline the development process.

Changes

File Change Summary
CHANGELOG.md Added entries for updating dependencies: cometbft to 0.37.5, cosmos-sdk to 0.47.11, and proto-builder to 0.14.0.
contrib/make/proto.mk Updated protoVer variable from 0.13.5 to 0.14.0.
proto/buf.gen.rs.sh Enhanced buf_gen() function with a specific installation command for buf.

Poem

In the code's quiet night, updates shine so bright,
Dependencies align, making everything right.
With protoVer anew, and commands to guide the way,
Our build's now stronger, ready for the fray.
🌟✨


Tip

Early Access Features
  • gpt-4o model for chat

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 as 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 full the 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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

@Unique-Divine Unique-Divine added the dependencies Pull requests that update a dependency file label May 28, 2024
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: 1

Outside diff range and nitpick comments (4)
proto/buf.gen.rs.sh (4)

Line range hint 9-9: Ensure variables are properly quoted to prevent globbing and word splitting.

-  local start_path=$(pwd)
-  local start_dir_name=$(basename $start_path)
+  local start_path="$(pwd)"
+  local start_dir_name="$(basename "$start_path")"

Also applies to: 10-10, 51-51


Line range hint 94-97: Ensure variables are properly quoted to prevent globbing and word splitting.

-  cosmos_sdk_gh_path=$(go list -f '{{ .Dir }}' -m github.com/cosmos/cosmos-sdk)
-  nibiru_cosmos_sdk_version=$(echo $cosmos_sdk_gh_path | awk -F'@' '{print $2}')
+  cosmos_sdk_gh_path="$(go list -f '{{ .Dir }}' -m github.com/cosmos/cosmos-sdk)"
+  nibiru_cosmos_sdk_version="$(echo "$cosmos_sdk_gh_path" | awk -F'@' '{print $2}')"

Line range hint 122-122: Correct the array expansion to include all elements.

-  echo "$proto_dirs"
+  echo "${proto_dirs[@]}"

Line range hint 155-156: Prevent potential dangerous directory deletion by ensuring variables are not empty.

-  rm -rf $OUT_PATH/home
-  rm -rf $OUT_PATH/nibiru
+  rm -rf "${OUT_PATH:?}/home"
+  rm -rf "${OUT_PATH:?}/nibiru"
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 536c42a and b3da172.
Files ignored due to path filters (2)
  • go.mod is excluded by !**/*.mod, !**/*.mod
  • go.sum is excluded by !**/*.sum, !**/*.sum
Files selected for processing (3)
  • CHANGELOG.md (1 hunks)
  • contrib/make/proto.mk (2 hunks)
  • proto/buf.gen.rs.sh (1 hunks)
Files skipped from review due to trivial changes (1)
  • contrib/make/proto.mk
Additional Context Used
ShellCheck (20)
proto/buf.gen.rs.sh (20)

[warning] 9-9: Declare and assign separately to avoid masking return values.


[warning] 10-10: Declare and assign separately to avoid masking return values.


[info] 10-10: Double quote to prevent globbing and word splitting.


[info] 51-51: Double quote to prevent globbing and word splitting.


[info] 78-78: Double quote to prevent globbing and word splitting.


[error] 86-86: This expression is constant. Did you forget a $ somewhere?


[info] 94-94: Double quote to prevent globbing and word splitting.


[info] 95-95: Double quote to prevent globbing and word splitting.


[info] 96-96: Double quote to prevent globbing and word splitting.


[info] 97-97: Double quote to prevent globbing and word splitting.


[warning] 102-102: Declare and assign separately to avoid masking return values.


[info] 109-109: Double quote to prevent globbing and word splitting.


[info] 118-118: Double quote to prevent globbing and word splitting.


[warning] 122-122: Expanding an array without an index only gives the first element.


[info] 135-135: Double quote to prevent globbing and word splitting.


[info] 135-135: Double quote to prevent globbing and word splitting.


[info] 137-137: Double quote to prevent globbing and word splitting.


[warning] 155-155: Use "${var:?}" to ensure this never expands to /home .


[info] 155-155: Double quote to prevent globbing and word splitting.


[info] 156-156: Double quote to prevent globbing and word splitting.

Additional comments not posted (1)
CHANGELOG.md (1)

95-95: The changelog entry for PR #1899 correctly lists the dependency updates and is appropriately categorized under "Non-breaking/Compatible Improvements".

@@ -84,7 +84,8 @@ buf_gen() {
local proto_dir="$1"

if [ ! buf ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct the syntax error in the conditional check for buf.

-  if [ ! buf ]; then
+  if ! command -v buf &> /dev/null; then

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
if [ ! buf ]; then
if ! command -v buf &> /dev/null; then

@Unique-Divine Unique-Divine merged commit 4256a18 into main May 28, 2024
18 checks passed
@Unique-Divine Unique-Divine deleted the ud/cometbft branch May 28, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant