-
Notifications
You must be signed in to change notification settings - Fork 372
DO NOT MERGE Test subnet rental canister with one-time Swiss subnet fix. #8397
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
base: master
Are you sure you want to change the base?
Conversation
6c131ce to
fe23501
Compare
fe23501 to
f22392b
Compare
…g the Subnet Rental canister.
f0528ae to
8f5a72c
Compare
| nns_canister_upgrade.modify_wasm_but_preserve_behavior(); | ||
| } | ||
|
|
||
| let rental_agreements_after_first_upgrade = list_rental_agreements(&state_machine); |
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.
Let's maybe do:
for _ in 0..300 {
state_machine.advance_time(Duration::from_secs(1));
state_machine.tick();
}
to give the timers enough opportunity to execute. Same after the second round of upgrades.
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.
Done. I added to the end of perform_sequence_of_upgrades.
The [proposal] to create the Swiss subnet partially succeeded. The reason it did not fully succeed is that the Subnet Rental canister (SRC) was running old code (we tested against version 0.3.0 of the SRC, dated July 30, but that was never deployed to production). In particular, the Governance canister tried to call the `execute_create_rental_agreement` method on the SRC, but that did not exist. [proposal]: https://dashboard.internetcomputer.org/proposal/139961 What this does is perform the same call that Governance attempted (to `execute_create_rental_agreement`), but during post-upgrade of the SRC. That is the [last step] in the process of creating the Swiss subnet. [last step]: https://sourcegraph.com/github.com/dfinity/ic@48beb3753edc4fff056025764946357b7ed03c62/-/blob/rs/nns/governance/src/proposals/fulfill_subnet_rental_request.rs?L129-134 We put together a [test to make sure that this works][test] against golden state. [test]: dfinity/ic#8397 --------- Co-authored-by: Martin Raszyk <[email protected]>
8fff047 to
a3da712
Compare
a3da712 to
ce0f9b8
Compare
6c868c2 to
473514f
Compare
Uses golden state.
Subnet Rental Canister build used:
7C709599CC04091EFC712B72BDD254773D2EE8BA212FB9170E6F90D854A0099DHow to run:
See attachment for test output.