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

Problem: recent fixes not released #1278

Merged
merged 8 commits into from
Jan 3, 2024

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Dec 26, 2023

Solution:

  • merge into the un-released rc2 veresion

Updates

  • fix several panic issues in ethermint
  • remove authz module

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Summary by CodeRabbit

  • New Features

    • Support for hard-fork style upgrades introduced.
    • Integration test updated to include push0 opcode functionality.
  • Updates

    • Application upgraded to version v1.1.0-rc2.
    • Updated dependencies to the latest versions.
  • Bug Fixes

    • Resolved an issue with concurrent write in fee history.
  • Refactor

    • Removed the authz module for streamlining the application.
  • Chores

    • Adjusted fee parameters in upgrade handlers for improved fee management.

Solution:
- merge into the un-released rc2 veresion
Copy link
Contributor

coderabbitai bot commented Dec 26, 2023

Walkthrough

The latest release, v1.1.0-rc2, brings a notable upgrade capability with support for hard-fork style changes. It also includes an update to ethermint and cosmos-sdk, along with the introduction of the push0 opcode in integration tests. The authz module has been removed, and a bug fix has been applied to address concurrent write issues in fee history. Additionally, there are enhancements in fee management within the RegisterUpgradeHandlers function.

Changes

File(s) Summary of Changes
CHANGELOG.md - Version updated to v1.1.0-rc2
- Added hard-fork style upgrade support
- Updated ethermint and cosmos-sdk to newer versions
- Enabled push0 opcode in integration tests
- Removed authz module
- Fixed concurrent write bug in fee history
app/upgrades.go - Modified RegisterUpgradeHandlers to update fee parameters (BaseFeeChangeDenominator, ElasticityMultiplier, BaseFee, MinGasPrice) using FeeMarketKeeper
app/test_helpers.go - Modified SimBlockMaxGas from 81500000 to 815000000, impacting the maximum gas allowed for simulation blocks
integration_tests/test_upgrade.py - Modified maxFeePerGas value from 1000000000000 to 10000000000000 within a dictionary

🐇✨
In the realm of code, where the data streams flow,
A new version springs, with upgrades in tow.
Bugs in the night, now chased away,
Hard-forks and fees, all set to play.
🌟🚀

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 with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid.
    • @coderabbitai read the files in the src/scheduler package and generate README in the markdown format.

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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

CHANGELOG.md Outdated Show resolved Hide resolved
feeparams.ElasticityMultiplier = 4
feeparams.BaseFee = sdk.NewInt(10000000000000)
feeparams.MinGasPrice = sdk.NewDec(10000000000000)
app.FeeMarketKeeper.SetParams(ctx, feeparams)

Check warning

Code scanning / gosec

Errors unhandled. Warning

Errors unhandled.
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (4cf57d8) 35.77% compared to head (81b7477) 35.75%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1278      +/-   ##
==========================================
- Coverage   35.77%   35.75%   -0.03%     
==========================================
  Files         116      116              
  Lines       10663    10670       +7     
==========================================
  Hits         3815     3815              
- Misses       6471     6478       +7     
  Partials      377      377              
Files Coverage Δ
app/upgrades.go 36.13% <0.00%> (-2.26%) ⬇️

@yihuang yihuang marked this pull request as ready for review January 3, 2024 06:45
@yihuang yihuang requested a review from a team as a code owner January 3, 2024 06:45
@yihuang yihuang requested review from JayT106 and calvinaco and removed request for a team January 3, 2024 06:45
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.

Review Status

Actionable comments generated: 3

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 42f2597 and 1a176aa.
Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • app/upgrades.go (1 hunks)
Additional comments: 6
app/upgrades.go (2)
  • 134-139: The changes to the fee market parameters look correct, but ensure that the new values for BaseFeeChangeDenominator, ElasticityMultiplier, BaseFee, and MinGasPrice are consistent with the system's requirements and have been reviewed by the domain experts for economic implications.

  • 139-139:

CHANGELOG.md (4)
  • 3-14: The changelog correctly reflects the updates for version v1.1.0-rc2, including support for hard-fork style upgrades, updates to Ethermint and Cosmos-SDK, enabling the push0 opcode in integration tests, removal of the authz module, and a bug fix for concurrent write in fee history.

  • 9-9: The update to the integration test enabling the push0 opcode is mentioned, which is good as it reflects changes in testing procedures that could affect how features are validated.

  • 7-7: The inclusion of support for hard-fork style upgrades is correctly documented, which is crucial as it indicates significant protocol-level changes.

  • 8-8: The updates to Ethermint and Cosmos-SDK are mentioned, which is important for tracking dependency updates and potential impacts on the system's stability and functionality.

app/upgrades.go Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
go.mod Show resolved Hide resolved
@yihuang yihuang requested a review from mmsqe January 3, 2024 06:53
@yihuang
Copy link
Collaborator Author

yihuang commented Jan 3, 2024

/runsims

@yihuang
Copy link
Collaborator Author

yihuang commented Jan 3, 2024

/runsim

Copy link

github-actions bot commented Jan 3, 2024

Simulation tests get triggered and started by /runsim.
Please check further progress here

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 1a176aa and 322f118.
Files ignored due to filter (5)
  • client/docs/config.json
  • client/docs/swagger-ui/swagger.yaml
  • go.mod
  • go.sum
  • gomod2nix.toml
Files selected for processing (1)
  • app/test_helpers.go (1 hunks)
Additional comments: 1
app/test_helpers.go (1)
  • 44-44: The SimBlockMaxGas constant has been increased from 81500000 to 815000000. Ensure that this tenfold increase is intentional and that all tests and simulations that rely on this value are still valid and performant with this new limit.

Copy link

github-actions bot commented Jan 3, 2024

/runsim simulation test has failed 😅
Please further check here

@yihuang yihuang enabled auto-merge January 3, 2024 07:58
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 322f118 and 81b7477.
Files selected for processing (1)
  • integration_tests/test_upgrade.py (1 hunks)
Files skipped from review due to trivial changes (1)
  • integration_tests/test_upgrade.py

@yihuang yihuang added this pull request to the merge queue Jan 3, 2024
Merged via the queue into crypto-org-chain:main with commit 86ad7b3 Jan 3, 2024
35 of 36 checks passed
@yihuang yihuang deleted the remove-authz branch January 3, 2024 10:22
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.

2 participants