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: update dependencies #421

Merged
merged 5 commits into from
Nov 6, 2024
Merged

chore: update dependencies #421

merged 5 commits into from
Nov 6, 2024

Conversation

boojamya
Copy link
Member

@boojamya boojamya commented Nov 5, 2024

This PR:

  • updates Noble's asset issuer modules to the latest release candidates
  • updates several modules to their latest releases

@boojamya boojamya requested a review from a team as a code owner November 5, 2024 19:47
Copy link

coderabbitai bot commented Nov 5, 2024

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (5)
  • e2e/go.mod is excluded by !**/*.mod
  • e2e/go.sum is excluded by !**/*.sum, !**/*.sum
  • go.mod is excluded by !**/*.mod
  • go.sum is excluded by !**/*.sum, !**/*.sum
  • go.work.sum is excluded by !**/*.sum, !**/*.sum

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The changes involve updates to the import paths and keeper declarations in the app.go and legacy.go files of the Noble application. The import path for the forwarding module has been simplified, reflecting a restructuring of the module's organization. This includes adjustments in the keeper declarations to align with the new import paths. The modifications are focused solely on these organizational aspects, with no alterations to the application's logic or control flow.

Changes

File Change Summary
app.go, legacy.go - Updated import path from github.com/noble-assets/forwarding/v2/x/forwarding to github.com/noble-assets/forwarding/v2.
- Updated keeper declaration from forwardingkeeper "github.com/noble-assets/forwarding/v2/x/forwarding/keeper" to forwardingkeeper "github.com/noble-assets/forwarding/v2/keeper" in app.go.

Sequence Diagram(s)

sequenceDiagram
    participant App
    participant Forwarding as Fwd

    App->>Fwd: Import forwarding module
    Fwd->>App: Forwarding functionalities available
Loading

🐇 "In the code where changes reside,
Paths were simplified, side by side.
With keepers now in clearer view,
The structure shines, all fresh and new.
Hops of joy, let’s celebrate,
Noble's code, we elevate!" 🌟


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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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.

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 (1)
app.go (1)

Line range hint 56-95: Overall dependency update looks clean and focused.

The changes are well-structured and maintain consistency:

  1. Import paths are updated to reflect the new module organization
  2. Changes are minimal and focused on dependency updates only
  3. No impact on application logic or behavior

Consider adding a changelog entry to document this dependency update for future reference.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 411a17a and 5abba92.

⛔ Files ignored due to path filters (5)
  • e2e/go.mod is excluded by !**/*.mod
  • e2e/go.sum is excluded by !**/*.sum, !**/*.sum
  • go.mod is excluded by !**/*.mod
  • go.sum is excluded by !**/*.sum, !**/*.sum
  • go.work.sum is excluded by !**/*.sum, !**/*.sum
📒 Files selected for processing (2)
  • app.go (3 hunks)
  • legacy.go (1 hunks)
🔇 Additional comments (5)
legacy.go (3)

Line range hint 120-135: Ensure middleware stack compatibility with updated forwarding module.

The forwarding middleware is a critical component in the IBC transfer stack. Since this PR updates the forwarding module, please ensure that:

  1. The middleware stack initialization remains compatible
  2. The interaction between forwarding middleware and other middleware components (PFM, blockibc) is not affected
#!/bin/bash
# Description: Check for any breaking changes in the forwarding middleware interface
# Test: Look for any changes in the middleware initialization pattern across the codebase
rg -A 2 "forwarding\.NewMiddleware\("

Line range hint 15-43: Verify version constraints in go.mod.

Since this PR updates dependencies, please ensure that:

  1. The new forwarding module version is properly constrained in go.mod
  2. Integration tests pass to verify compatibility with other IBC modules
#!/bin/bash
# Description: Check version constraints and related modules
# Test 1: Check forwarding module version in go.mod
rg "github.com/noble-assets/forwarding/v2" go.mod

# Test 2: Check versions of related IBC modules
rg "github.com/cosmos/ibc-go/v8" go.mod

42-42: Verify the forwarding module's new import structure.

The import path has been simplified from github.com/noble-assets/forwarding/v2/x/forwarding to github.com/noble-assets/forwarding/v2. While this aligns with the PR's dependency updates, we should verify the module's new structure.

✅ Verification successful

Let me gather more information about the forwarding module's structure and usage to ensure the import change is valid.


Import path change is valid and correctly implemented

The verification shows that:

  • The new import path github.com/noble-assets/forwarding/v2 is correctly specified in go.mod as version v2.0.0-rc.0
  • The module is properly used in the codebase with consistent imports:
    • Main module import in legacy.go
    • Keeper import as forwardingkeeper in app.go
  • The ForwardingKeeper is correctly referenced in the middleware setup and app initialization
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the forwarding module's new structure and imports
# Test 1: Check if the new import path exists in go.mod
rg -l "github.com/noble-assets/forwarding/v2" go.mod

# Test 2: Verify that the forwarding types and keeper are still accessible
ast-grep --pattern 'forwarding.NewMiddleware($_, $_, $_)'

Length of output: 427


Script:

#!/bin/bash
# Check the actual usage of forwarding types and keeper in the codebase
rg "ForwardingKeeper" -A 2

# Check if there are any other imports from the forwarding module
rg "github.com/noble-assets/forwarding"

# Look for any potential breaking changes in the module initialization
ast-grep --pattern 'app.ForwardingKeeper = forwarding.$_'

Length of output: 1330

app.go (2)

95-95: LGTM! Keeper import path update is consistent.

The keeper import path change aligns with the module restructuring and maintains proper organization within the Noble modules section.


56-56: Verify forwarding module version compatibility.

The import path change suggests a significant restructuring in the forwarding module. Please ensure that:

  1. The version being imported is the intended release candidate
  2. All dependent modules are compatible with this version
✅ Verification successful

Import path update is consistent with the module version

The forwarding module is correctly set to v2.0.0-rc.0 in go.mod, and there are no remaining references to the old import path structure. The import path change aligns with the module's release candidate version.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the forwarding module version and its usage
# Check the go.mod file for the forwarding module version
rg -A 1 "github.com/noble-assets/forwarding/v2" go.mod

# Check for any remaining old import paths that might have been missed
rg "github.com/noble-assets/forwarding/v2/x/forwarding"

Length of output: 206

Copy link
Member

@johnletey johnletey left a comment

Choose a reason for hiding this comment

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

Looks great @boojamya, thanks for getting on this!

I've resolved the merge conflicts on main, and additionally bumped CometBFT to the latest v0.38.x patch release. The Informal Systems released a new patch this morning EU time to resolve a bug in the vote extension logic (which for now is disabled on Noble).

Reason why I'm holding off on an approval is because the CometBFT patch included a Go version bump from v1.22 to v1.23, which I've reached out to their team in the #shared-community-cometbft Slack channel to explain further!

Copy link
Member

@johnletey johnletey left a comment

Choose a reason for hiding this comment

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

Approving this now as the CometBFT agreed with us that Golang shouldn't of been bumped to v1.23 -- they released this fix in another patch!

@johnletey johnletey merged commit d6e1153 into main Nov 6, 2024
36 checks passed
@johnletey johnletey deleted the dan/deps branch November 6, 2024 16:09
@boojamya
Copy link
Member Author

boojamya commented Nov 6, 2024

@Mergifyio backport v8.0.x-testnet

Copy link

mergify bot commented Nov 6, 2024

backport v8.0.x-testnet

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 6, 2024
Co-authored-by: John Letey <[email protected]>
(cherry picked from commit d6e1153)
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