-
Notifications
You must be signed in to change notification settings - Fork 26
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
Raunak/uch upgrade testing #96
Conversation
Warning Rate Limit Exceeded@RnkSngh has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 13 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe recent updates focus on enhancing and expanding the capabilities of the Dispatcher and upgradeable proxy systems. New imports and functionalities have been introduced, including the addition of version upgrades for Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
dee7968
to
7e2d744
Compare
fe30152
to
2206290
Compare
2206290
to
34527ea
Compare
91d32e4
to
6847751
Compare
34527ea
to
3ce2273
Compare
3f57d4b
to
b774356
Compare
3ce2273
to
f5bda64
Compare
b774356
to
3161ac7
Compare
f5bda64
to
8f381e7
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.
Lgtm
70df3c0
to
1a4ecea
Compare
8f381e7
to
952b487
Compare
952b487
to
b895ff7
Compare
b895ff7
to
5c5beac
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: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- test/Dispatcher/Dispatcher.t.sol (1 hunks)
- test/upgradeableProxy/Dispatcher.upgrade.t.sol (3 hunks)
- test/upgradeableProxy/DispatcherRC4.upgrade.t.sol (11 hunks)
Additional comments not posted (13)
test/upgradeableProxy/Dispatcher.upgrade.t.sol (4)
30-31
: New imports forUniversalChannelHandler
andIUniversalChannelHandler
have been added.Ensure that these new dependencies are properly managed and documented, especially since they are critical for the upgrade testing of the UCH.
33-33
: Introduction ofUniversalChannelHandlerV2
suggests testing against a new version of UCH.Verify that
UniversalChannelHandlerV2
is fully compatible with existing systems and that all necessary migration steps are documented.
54-57
: TheupgradeUch
function has been added to handle the upgrade of the UCH from version 2 to version 3.Ensure comprehensive testing of this function to prevent any issues during the upgrade process.
69-73
: Deployment ofUniversalChannelHandlerV2
via a proxy.Confirm that the initialization data and proxy setup are correctly configured to ensure that the new UCH version functions as expected.
test/upgradeableProxy/DispatcherRC4.upgrade.t.sol (8)
8-8
: Import ofEarth
from../../contracts/examples/Earth.sol
.Ensure that the
Earth
contract is correctly integrated and used within the tests.
21-22
: Introduction ofUniversalPacket
from the Ibc library.Check that
UniversalPacket
is being used appropriately in the context of the tests and that its interactions are well-documented.
35-37
: New imports forIUniversalChannelHandler
,VirtualChain
, andGeneralMiddleware
.These additions suggest a broader and more complex test setup. Confirm that these components are integrated correctly and that their interactions are tested.
44-46
: Setup of test environment withIUniversalChannelHandler
,Earth
, and local ends.Ensure that the setup is robust and covers all necessary scenarios for upgrade testing.
58-59
: Deployment ofUniversalChannelHandlerV2
and instantiation ofEarth
in the context of Dispatcher RC4 upgrade testing.Verify the correct deployment and initialization of these components, especially in the upgrade context.
68-68
: Setup of local ends for UCH in the test environment.Confirm that the local end configurations are correct and that they properly simulate the intended test scenarios.
79-82
: Execution of channel handshake via UCH and interaction withEarth
.Ensure that the handshake and interactions are correctly implemented and that they accurately reflect the upgrade scenario being tested.
85-85
: Upgrading of dispatcherProxy and UCH for tests.Confirm that the upgrade process is correctly implemented and thoroughly tested to prevent any issues.
test/Dispatcher/Dispatcher.t.sol (1)
10-10
: Introduction ofBase
from../utils/Dispatcher.base.t.sol
.Check that
Base
is correctly utilized within the test suites and that it provides the necessary functionalities for the tests.
PR to test upgrades to our uch proxy
The main state we need to worry about in UCH is the
mwStackAddrs
array so this testing orients around that, and tests both a direct Earth-> UCH connection and also one with an extra middleware layer(i.e. Earth -> GeneralMiddleware -> UCH) .Summary by CodeRabbit