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

fix: add non-nil confirmation params in solana/ton E2E test to avoid chain param update error #3501

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

ws4charlie
Copy link
Contributor

@ws4charlie ws4charlie commented Feb 7, 2025

Description

The Solana and TON E2E tests are failing due to nil ConfirmationParams field when updating chain params.

How Has This Been Tested?

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Summary by CodeRabbit

  • Bug Fixes
    • Addressed an issue that was causing failures in transaction confirmations on Solana and TON.
  • New Features
    • Introduced enhanced transaction confirmation settings, improving reliability and flexibility across supported blockchain platforms.

Copy link
Contributor

coderabbitai bot commented Feb 7, 2025

📝 Walkthrough

Walkthrough

This pull request updates the changelog and test runner configurations for Solana and TON. A new “Fixes” section is added to the changelog to document an E2E test failure caused by nil ConfirmationParams, and an existing entry has been reformatted for consistency. Additionally, both the Solana and TON test runners now include a new ConfirmationParams field in their ChainParams structure to configure confirmation counts for inbound and outbound transactions. The changes are limited to documentation and configuration enhancements without impacting existing control flow.

Changes

File(s) Change Summary
changelog.md Added new “Fixes” section with an entry documenting the fix for nil ConfirmationParams causing an E2E test failure; updated formatting on an existing changelog entry.
e2e/runner/setup_solana.go, e2e/runner/setup_ton.go Introduced new ConfirmationParams field in the ChainParams structure. In Solana, parameters are initialized (SafeInboundCount and SafeOutboundCount set to 32), while in TON they’re initialized to 1.

Possibly related PRs

Suggested labels

bug, zetaclient, chain:solana

Suggested reviewers

  • lumtis
  • gartnera
  • skosito
✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

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.

@ws4charlie ws4charlie added UPGRADE_LIGHT_TESTS Run make start-upgrade-test-light SOLANA_TESTS Run make start-solana-test TON_TESTS Runs TON E2E tests PERFORMANCE_TESTS Run make start-e2e-performance-test labels Feb 7, 2025
@ws4charlie ws4charlie marked this pull request as ready for review February 7, 2025 16:14
@ws4charlie ws4charlie requested a review from a team as a code owner February 7, 2025 16:14
@ws4charlie ws4charlie requested review from gartnera and lumtis February 7, 2025 16:15
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: 0

🧹 Nitpick comments (2)
e2e/runner/setup_ton.go (1)

100-100: Consider removing legacy ConfirmationCount field.

The ConfirmationCount field is planned to be deprecated in favor of the new confirmation count system using SafeInboundCount and SafeOutboundCount fields.

e2e/runner/setup_solana.go (1)

109-109: Consider removing legacy ConfirmationCount field.

The ConfirmationCount field is planned to be deprecated in favor of the new confirmation count system using SafeInboundCount and SafeOutboundCount fields.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 64dcf7c and 12470b9.

📒 Files selected for processing (3)
  • changelog.md (1 hunks)
  • e2e/runner/setup_solana.go (1 hunks)
  • e2e/runner/setup_ton.go (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.go`: Review the Go code, point out issues relative to ...

**/*.go: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.

  • e2e/runner/setup_ton.go
  • e2e/runner/setup_solana.go
📓 Learnings (2)
e2e/runner/setup_ton.go (1)
Learnt from: ws4charlie
PR: zeta-chain/node#3461
File: x/observer/types/chain_params.go:59-62
Timestamp: 2025-02-04T06:12:41.760Z
Learning: The legacy `ConfirmationCount` field in the ChainParams struct is planned to be deprecated after a full upgrade to the new confirmation count system that uses SafeInboundCount, FastInboundCount, SafeOutboundCount, and FastOutboundCount fields.
e2e/runner/setup_solana.go (1)
Learnt from: ws4charlie
PR: zeta-chain/node#3461
File: x/observer/types/chain_params.go:59-62
Timestamp: 2025-02-04T06:12:41.760Z
Learning: The legacy `ConfirmationCount` field in the ChainParams struct is planned to be deprecated after a full upgrade to the new confirmation count system that uses SafeInboundCount, FastInboundCount, SafeOutboundCount, and FastOutboundCount fields.
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: start-e2e-performance-test / e2e
🔇 Additional comments (3)
e2e/runner/setup_ton.go (1)

113-116: LGTM! Addition of ConfirmationParams.

The addition of non-nil ConfirmationParams with both SafeInboundCount and SafeOutboundCount set to 1 fixes the E2E test failure.

e2e/runner/setup_solana.go (1)

123-126: LGTM! Addition of ConfirmationParams.

The addition of non-nil ConfirmationParams with both SafeInboundCount and SafeOutboundCount set to 32 fixes the E2E test failure.

changelog.md (1)

14-16: LGTM! Clear and well-formatted changelog entry.

The changelog entry accurately describes the fix for the E2E test failure caused by nil ConfirmationParams.

@lumtis lumtis added this pull request to the merge queue Feb 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 7, 2025
@ws4charlie ws4charlie added this pull request to the merge queue Feb 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 7, 2025
@ws4charlie ws4charlie added this pull request to the merge queue Feb 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 7, 2025
@ws4charlie ws4charlie added this pull request to the merge queue Feb 7, 2025
Merged via the queue into develop with commit 2640b35 Feb 7, 2025
46 checks passed
@ws4charlie ws4charlie deleted the fix-E2E-nightly-failure branch February 7, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PERFORMANCE_TESTS Run make start-e2e-performance-test SOLANA_TESTS Run make start-solana-test TON_TESTS Runs TON E2E tests UPGRADE_LIGHT_TESTS Run make start-upgrade-test-light
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants