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

build: update cosmos-sdk to v0.50.7 #128

Merged
merged 5 commits into from
Jun 5, 2024
Merged

build: update cosmos-sdk to v0.50.7 #128

merged 5 commits into from
Jun 5, 2024

Conversation

raynaudoe
Copy link
Contributor

@raynaudoe raynaudoe commented Jun 5, 2024

  • Bump cosmos-sdk to v0.50.7
  • Bump go version to v1.22
  • Minor dockerfile fixes

Summary by CodeRabbit

  • Chores
    • Updated Dockerfile base images and build commands for gaia and rosetta to use newer versions.
    • Documented updates in CHANGELOG.md reflecting the upgrade to cosmos-sdk version v0.50.7.

Copy link

coderabbitai bot commented Jun 5, 2024

Warning

Rate limit exceeded

@raynaudoe has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 2 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 33411ba and da726a5.

Walkthrough

The recent updates primarily focus on upgrading the Dockerfile to use newer base images and versions for building gaia and rosetta, specifically updating to Go 1.22 and cosmos-sdk version 0.50.7. Additionally, the CHANGELOG.md has been updated to reflect these changes. These modifications ensure compatibility with the latest tools and libraries, enhancing performance and security.

Changes

File Change Summary
Dockerfile Updated base images for gaia and rosetta to Go 1.22, and cosmos-sdk to version 0.50.7.
CHANGELOG.md Documented the update of cosmos-sdk to version 0.50.7 in cosmos/rosetta.

Poem

In the land of code so bright,
Gaia and Rosetta take flight.
With Go 1.22, they now stand tall,
Cosmos-sdk updated, answering the call.
Efficiency and speed, they now boast,
Here’s to the future, we raise a toast! 🚀


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

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.

Copy link

@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: 0

Outside diff range and nitpick comments (2)
Dockerfile (2)

Line range hint 32-32: Use WORKDIR to switch to a directory.

Hadolint warning DL3003 suggests using WORKDIR instead of chaining RUN commands for directory changes. This can simplify the Dockerfile and make it more readable.

- RUN cd plugins/cosmos-hub && make plugin
+ WORKDIR /go/src/github.com/cosmos/rosetta/plugins/cosmos-hub
+ RUN make plugin
+ WORKDIR /go/src/github.com/cosmos/rosetta

Line range hint 42-42: Use COPY instead of ADD for files and folders.

Hadolint error DL3020 recommends using COPY instead of ADD for better clarity and because ADD has additional features which are not required here.

- ADD scripts/entrypoint.sh /scripts/entrypoint.sh
+ COPY scripts/entrypoint.sh /scripts/entrypoint.sh
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3eed528 and 998c33b.

Files ignored due to path filters (2)
  • go.mod is excluded by !**/*.mod
  • go.sum is excluded by !**/*.sum
Files selected for processing (1)
  • Dockerfile (2 hunks)
Additional context used
Hadolint
Dockerfile

[warning] 32-32: Use WORKDIR to switch to a directory (DL3003)


[error] 42-42: Use COPY instead of ADD for files and folders (DL3020)

Additional comments not posted (3)
Dockerfile (3)

4-4: Updated base image for cosmos to golang:1.22.

This change aligns with the PR objectives to bump the Go version to 1.22.


13-13: Updated cosmos-sdk version to v0.50.7.

This change is consistent with the PR objectives to bump the cosmos-sdk version to v0.50.7.


19-19: Updated base image for rosetta to golang:1.22.

This change aligns with the PR objectives to bump the Go version to 1.22.

Copy link

@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: 0

Outside diff range and nitpick comments (4)
CHANGELOG.md (4)

Line range hint 118-118: Consider adding the preposition "due to" for clarity.

- due event type changes.
+ due to event type changes.

Line range hint 92-92: Remove the trailing space on this line.

- 
+

Line range hint 84-84: Add a blank line above this heading for better readability and to adhere to Markdownlint rules.

+
## [v0.50.3+1](https://github.com/cosmos/rosetta/releases/tag/v0.50.3+1) 2024-01-07

Line range hint 83-83: Surround this list with blank lines to adhere to Markdownlint rules.

+
> v0.50.3 has been retracted due to a mistake in dependencies. Please use v0.50.3+1 instead.
+
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 998c33b and 33411ba.

Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
Additional context used
LanguageTool
CHANGELOG.md

[uncategorized] ~118-~118: Possible missing preposition found. (AI_HYDRA_LEO_MISSING_TO)
Context: ... version of Tendermint is v0.37+, due event type changes.** ### Improvements * [#...

Markdownlint
CHANGELOG.md

92-92: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


84-84: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


83-83: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines

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

43-48: LGTM! The changelog entry for v0.50.7 is correctly formatted and follows the changelog guidelines.

@raynaudoe raynaudoe changed the title update: v0.50.7 build: update cosmos-sdk to v0.50.7 Jun 5, 2024
Copy link
Contributor

@JulianToledano JulianToledano left a comment

Choose a reason for hiding this comment

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

Just left a comment about the readme. Otherwise LGTM!🚀

CHANGELOG.md Outdated
@@ -40,6 +40,12 @@ Ref: https://keepachangelog.com/en/1.0.0/

* [123](https://github.com/cosmos/rosetta/pull/123) Correctly parse cometBFT finalize block.
Copy link
Contributor

Choose a reason for hiding this comment

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

This bug fix should be part of the release.

@raynaudoe raynaudoe enabled auto-merge (squash) June 5, 2024 14:38
@raynaudoe raynaudoe merged commit f277968 into main Jun 5, 2024
10 checks passed
@raynaudoe raynaudoe deleted the update branch June 5, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants