Skip to content

imp(all): Update with latest Evmos main changes #43

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

Merged
merged 14 commits into from
Aug 30, 2024

Conversation

MalteHerrmann
Copy link
Contributor

@MalteHerrmann MalteHerrmann commented Aug 30, 2024

This PR merges the relevant changes for the evmOS repository from the previous base commit (b36241) to the current one (2b7a8e2).

Summary by CodeRabbit

  • New Features

    • Updated GitHub Actions workflows to utilize the latest version of the Buf setup action, potentially enhancing the CI/CD pipeline's reliability and performance.
  • Bug Fixes

    • Routine maintenance updates to various dependencies, improving stability, security, and performance.
  • Documentation

    • Changelog updated to reflect recent improvements and synchronization with upstream changes, enhancing clarity for users and developers.

@MalteHerrmann MalteHerrmann requested a review from a team as a code owner August 30, 2024 11:30
@MalteHerrmann MalteHerrmann requested review from Vvaradinov and ramacarlucho and removed request for a team August 30, 2024 11:30
Copy link

coderabbitai bot commented Aug 30, 2024

Walkthrough

The changes involve updates to various configuration files and dependencies within the project. Key modifications include upgrading the bufbuild/buf-setup-action version in GitHub Actions workflows, enhancements to error handling in test cases, and multiple dependency version upgrades in go.mod files. Additionally, the changelog has been updated to reflect recent project contributions and improvements.

Changes

Files Change Summary
.github/workflows/bsr-push.yml Updated bufbuild/buf-setup-action from v1.35.1 to v1.39.0.
.github/workflows/proto.yml Updated bufbuild/buf-setup-action from v1.35.1 to v1.39.0 in two job definitions; minor formatting.
CHANGELOG.md Added entries for recent contributions, including upstream changes and new tests; improved documentation.
ante/evm/08_gas_consume_test.go Changed expectedError from error type to string; simplified error handling in test cases.
example_chain/go.mod, go.mod Updated multiple dependencies to newer versions, including github.com/cometbft/cometbft and github.com/cosmos/cosmos-sdk.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant CI/CD
    participant BufSetup
    participant Tests
    participant Dependencies

    User->>CI/CD: Trigger Workflow
    CI/CD->>BufSetup: Setup Buf Toolchain
    BufSetup-->>CI/CD: Buf Setup Complete
    CI/CD->>Tests: Run Tests
    Tests-->>CI/CD: Test Results
    CI/CD->>Dependencies: Update Dependencies
    Dependencies-->>CI/CD: Dependencies Updated
    CI/CD-->>User: Workflow Complete
Loading

🐰 In the meadow, I hop with glee,
New changes sprout like flowers, you see!
With tools and tests all shining bright,
Our project blooms, a joyful sight!
Dependencies dance, all fresh and new,
Hooray for updates, oh what a view! 🌼


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.

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.

@MalteHerrmann MalteHerrmann changed the title Malte/merge evmos main imp(all): Update with latest Evmos main changes Aug 30, 2024
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: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b35efda and 47144fe.

Files ignored due to path filters (3)
  • example_chain/go.sum is excluded by !**/*.sum
  • go.sum is excluded by !**/*.sum
  • go.work.sum is excluded by !**/*.sum
Files selected for processing (6)
  • .github/workflows/bsr-push.yml (1 hunks)
  • .github/workflows/proto.yml (3 hunks)
  • CHANGELOG.md (1 hunks)
  • ante/evm/08_gas_consume_test.go (4 hunks)
  • example_chain/go.mod (6 hunks)
  • go.mod (9 hunks)
Additional comments not posted (21)
.github/workflows/bsr-push.yml (1)

16-16: Version update approved.

The update from bufbuild/[email protected] to v1.39.0 is noted. It's crucial to check the release notes of bufbuild/[email protected] to ensure compatibility and understand any new features or breaking changes that might affect the workflow.

.github/workflows/proto.yml (2)

15-15: Minor formatting adjustment noted.

The normalization of whitespace in the permissions section is a minor change and does not affect the functionality of the workflow.


35-35: Version updates approved.

The updates from bufbuild/[email protected] to v1.39.0 in two separate job definitions are noted. Similar to the previous file, it's crucial to check the release notes of bufbuild/[email protected] to ensure compatibility and understand any new features or breaking changes that might affect the workflow.

Also applies to: 44-44

CHANGELOG.md (1)

11-11: Changelog update approved.

The addition of the new entry for PR #43 in the changelog is appropriate and helps document the synchronization with upstream changes effectively.

ante/evm/08_gas_consume_test.go (1)

99-99: Refactor Error Handling in Test Cases

The changes to use string messages for expected errors instead of error types are correctly implemented. This approach simplifies the error checking logic and enhances the readability of the test cases.

  • The removal of the expectedError for successful scenarios simplifies the test structure.
  • The update to use descriptive string messages for errors, such as "failed to deduct transaction costs from user balance," provides clearer expectations for test failures.

These changes should make the test cases easier to maintain and understand.

Also applies to: 104-105, 112-112, 123-123, 169-171

example_chain/go.mod (10)

11-11: Dependency Update Approved: github.com/cometbft/cometbft

The update from v0.37.9 to v0.37.10 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


13-13: Dependency Update Approved: github.com/cosmos/cosmos-sdk

The update from v0.47.12 to v0.47.13 is a minor version change. Such updates typically include bug fixes or small feature enhancements, which can improve the stability and functionality of the project without introducing significant new risks.


14-14: Dependency Update Approved with Caution: github.com/cosmos/gogoproto

The update from v1.4.10 to v1.7.0 spans several minor versions. While this likely includes improvements and bug fixes, it is advisable to review the release notes for any breaking changes or significant modifications that could affect the project.


15-15: Dependency Update Approved: github.com/cosmos/ibc-go/v7

The update from v7.6.0 to v7.7.0 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


18-18: Dependency Update Approved: github.com/spf13/cast

The update from v1.6.0 to v1.7.0 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


47-47: Dependency Update Approved: github.com/btcsuite/btcd/btcutil

The update from v1.1.5 to v1.1.6 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


155-155: Dependency Update Approved: github.com/prometheus/client_model

The update from v0.4.0 to v0.6.0 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


194-194: Dependency Update Approved: golang.org/x/crypto

The update from v0.25.0 to v0.26.0 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


197-197: Dependency Update Approved: golang.org/x/net

The update from v0.27.0 to v0.28.0 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


208-208: Dependency Update Approved: google.golang.org/grpc

The update from v1.65.0 to v1.66.0 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.

go.mod (6)

12-12: Dependency Update Approved: github.com/btcsuite/btcd/btcutil

The update from v1.1.5 to v1.1.6 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


13-13: Dependency Update Approved: github.com/cometbft/cometbft

The update from v0.37.9 to v0.37.10 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


16-16: Dependency Update Approved: github.com/cosmos/cosmos-sdk

The update from v0.47.12 to v0.47.13 is a minor version change. Such updates typically include bug fixes or small feature enhancements, which can improve the stability and functionality of the project without introducing significant new risks.


18-18: Dependency Update Approved with Caution: github.com/cosmos/gogoproto

The update from v1.4.10 to v1.7.0 spans several minor versions. While this likely includes improvements and bug fixes, it is advisable to review the release notes for any breaking changes or significant modifications that could affect the project.


19-19: Dependency Update Approved: github.com/cosmos/ibc-go/v7

The update from v7.6.0 to v7.7.0 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.


30-30: Dependency Update Approved: github.com/onsi/ginkgo/v2

The update from v2.19.1 to v2.20.2 is a minor version change, likely including bug fixes or minor improvements. This change should be safe to integrate, assuming no breaking changes are introduced in the minor version.

@@ -97,7 +97,7 @@ require (
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/flatbuffers v1.12.1 // indirect
github.com/google/flatbuffers v23.5.26+incompatible // indirect
Copy link

Choose a reason for hiding this comment

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

Dependency Update Caution: github.com/google/flatbuffers

The update from v1.12.1 to v23.5.26+incompatible is a significant version jump and is marked as incompatible. This suggests potential breaking changes or major modifications that could impact the project. It is crucial to thoroughly review the release notes and test extensively to ensure compatibility.

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: 2

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b35efda and 5b62170.

Files ignored due to path filters (3)
  • example_chain/go.sum is excluded by !**/*.sum
  • go.sum is excluded by !**/*.sum
  • go.work.sum is excluded by !**/*.sum
Files selected for processing (6)
  • .github/workflows/bsr-push.yml (1 hunks)
  • .github/workflows/proto.yml (3 hunks)
  • CHANGELOG.md (1 hunks)
  • ante/evm/08_gas_consume_test.go (4 hunks)
  • example_chain/go.mod (6 hunks)
  • go.mod (8 hunks)
Files skipped from review due to trivial changes (2)
  • .github/workflows/bsr-push.yml
  • example_chain/go.mod
Files skipped from review as they are similar to previous changes (3)
  • .github/workflows/proto.yml
  • CHANGELOG.md
  • go.mod
Additional comments not posted (1)
ante/evm/08_gas_consume_test.go (1)

104-105: Review of test case changes in TestConsumeGasAndEmitEvent.

The changes in test cases reflect a shift towards using descriptive string messages for expected errors, enhancing clarity and maintainability. However, ensure that these string messages are well-documented and standardized to avoid confusion or misinterpretation.

The changes are approved, but consider adding documentation for the error messages used across test cases to maintain consistency and clarity.

Also applies to: 112-112, 123-123

@MalteHerrmann MalteHerrmann merged commit d22f510 into main Aug 30, 2024
23 of 25 checks passed
@MalteHerrmann MalteHerrmann deleted the malte/merge-evmos-main branch August 30, 2024 12:26
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