-
Notifications
You must be signed in to change notification settings - Fork 110
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: use v19 binaries in upgrade tests #2689
Conversation
WalkthroughWalkthroughThe changes involve an update to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant App
participant ZetaNode
User->>App: Initiate Upgrade
App->>ZetaNode: Build from Source (v19)
App->>ZetaNode: Download Binary (v19.1.1)
ZetaNode-->>App: Upgrade Complete
App-->>User: Notify Upgrade Success
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
Documentation and Community
|
85ee0f0
to
cf46593
Compare
cf46593
to
4803c8a
Compare
There was a problem hiding this 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
Outside diff range, codebase verification and nitpick comments (1)
app/setup_handlers.go (1)
Line range hint
47-47
: Improve error handling strategy.The use of
panic
for handling errors retrieved fromgetIncrementalUpgrades
might not be the best approach in a production environment. Consider implementing a more graceful error handling mechanism that could include:
- Logging the error and continuing with a default or safe operation.
- Returning the error to the caller if the function's design allows for it, enabling the caller to decide on the appropriate action.
Also applies to: 50-50
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- Makefile (1 hunks)
- app/setup_handlers.go (2 hunks)
Additional context used
Path-based instructions (1)
app/setup_handlers.go (1)
Pattern
**/*.go
: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
Additional comments not posted (3)
app/setup_handlers.go (1)
Line range hint
58-58
: Upgrade handler setup appears robust, suggest thorough testing.The setup of the upgrade handler and the integration with the application's lifecycle are well-implemented. However, given the critical nature of upgrade processes, it is recommended to ensure that this setup is thoroughly tested. This includes:
- Unit tests covering various scenarios and edge cases.
- Integration tests that simulate actual upgrade processes from previous versions to the current one.
Also applies to: 68-68
Makefile (2)
296-296
: Update to v19 binaries for building from source.The change to use
release/v19
for theOLD_VERSION
argument when building from source aligns with the PR's objective to update the upgrade tests to utilize v19 binaries. This ensures that the tests are run against the latest version, which is crucial for maintaining the integrity and performance of the upgrade tests.
301-301
: Update to v19.1.1 binaries for building from binaries.The update to point to the v19.1.1 binaries via the URL
https://github.com/zeta-chain/node/releases/download/v19.1.1
is a critical change. This ensures that the binaries used in the upgrade tests are the latest, reflecting the changes and improvements made in the new version. It is important to verify that all dependencies and configurations are compatible with this new version to avoid potential integration issues.Run the following script to verify the compatibility of the new binaries with existing configurations:
Blocked by: https://github.com/zeta-chain/infrastructure/issues/1523
Blocked by: #2827
Running with the v19 state export now (state-export-v19-H4699407-2024-09-04_23-27.json)
Summary by CodeRabbit
New Features
zetanode
(v19.1.1), enhancing functionality and compatibility.Bug Fixes