-
Notifications
You must be signed in to change notification settings - Fork 158
test: add zetaclient only upgrade tests #4310
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
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4310 +/- ##
=======================================
Coverage 65.17% 65.17%
=======================================
Files 451 451
Lines 34141 34141
=======================================
Hits 22253 22253
Misses 10916 10916
Partials 972 972 🚀 New features to boost your workflow:
|
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.
Comment @cursor review or bugbot run to trigger another review on this PR
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.
We shouldn't have to wait for an height for an upgrade since there is now coordinated proposal. We should look into a solution where the orchestrator can signal the zetaclient to upgrade after the first pass of tests complete.
Additional I don't think we need a light version for this test.
Yeah, that's a good idea, we can skip waiting for the height . However,we should keep the light test, as it provides a quicker way to test the current zetaclient against the old zetacore version, even if we use it for localnet The only thing that looks a bit weird to me is, we would still need to use the We can separate the logic out into two flags, |
The previous light test was introduce to quickly test the upgrade script of the zetacore itself, I'm not sure it's this interesting for zetaclient since there is no migration logic for the zetaclient itself, mostly need to ensure that the transition doesn't cause issue in the network activities |
It's just faster to test using the light script when debugging in local |
|
@kingpinXD is it ready for review? Looks like the CI is failing |
|
|
Please ensure the issue is attached to the PR |
Using the |
|
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
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.
LGTM though I don't see that the light upgrade test is run in the CI, was it tested that it is successful?
yes |
Description
Closes: #4261
The pr adds two new targets
These are identical to their older counterparts, but don't upgrade the Zetacored , and dont wait for the upgrade height in between runs
These tests should be used when creating a zetaclient-only release, to work with the existing zetacored
How Has This Been Tested?
Note
Introduces a zetaclient-only upgrade E2E path (Make targets, CI wiring, env/compose changes) and adds supervisor support to upgrade zetaclientd via a file trigger, with minor runner/test tweaks.
UPGRADE_TEST_ZETACLIENTmatrix output/label handling and job to runmake start-upgrade-test-zetaclient.start-upgrade-test-zetaclientandstart-upgrade-test-zetaclient-lightsettingUPGRADE_ZETACLIENT_ONLY=trueand usingupgrade-zetaclientprofile.UPGRADE_ZETACLIENT_ONLYenv toorchestratorincontrib/localnet/docker-compose.yml.contrib/localnet/orchestrator/start-zetae2e.sh):zetaclient*containers and skip zetacored version change check whenUPGRADE_ZETACLIENT_ONLY=true.cmd/zetaclientd-supervisor/lib.go):/root/.zetaclientd/zetaclientd-upgrade-trigger, download newzetaclientdfromhttp://upgrade-host:8000/zetaclientd, replace binary, and signal reload.EnvKeyUpgradeZetaclientOnlyandIsRunningZetaclientOnlyUpgrade(); adjust post-upgrade handler logic to honor zetaclient-only mode; skip Sui gateway upgrade tests in this mode; fix Sui chain params error msg.TestBitcoinToZEVMCallExcessiveFundsRevertwithWithMinimumVersion("v37.0.0").changelog.mdwith "add zetaclient only upgrade tests".Written by Cursor Bugbot for commit 9dd7cae. This will update automatically on new commits. Configure here.