Skip to content

Conversation

@daniel-wong-dfinity-org
Copy link
Contributor

@daniel-wong-dfinity-org daniel-wong-dfinity-org commented Jan 16, 2026

Uses golden state.

Subnet Rental Canister build used: 7C709599CC04091EFC712B72BDD254773D2EE8BA212FB9170E6F90D854A0099D

How to run:

bazel test \  
    --test_env=SSH_AUTH_SOCK \
    --test_env=NNS_CANISTER_UPGRADE_SEQUENCE=subnet-rental \
    --test_output=streamed \
    --test_arg=--nocapture \
    //rs/nns/integration_tests:upgrade_canisters_with_golden_nns_state

See attachment for test output.

@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the test-upgrading-subnet-rental-canister-with-one-time-swiss-subnet-fix-daniel-wong branch from 6c131ce to fe23501 Compare January 16, 2026 14:41
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the test-upgrading-subnet-rental-canister-with-one-time-swiss-subnet-fix-daniel-wong branch from fe23501 to f22392b Compare January 16, 2026 14:42
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the test-upgrading-subnet-rental-canister-with-one-time-swiss-subnet-fix-daniel-wong branch from f0528ae to 8f5a72c Compare January 16, 2026 15:07
nns_canister_upgrade.modify_wasm_but_preserve_behavior();
}

let rental_agreements_after_first_upgrade = list_rental_agreements(&state_machine);
Copy link
Contributor

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.

Copy link
Contributor Author

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.

mraszyk added a commit to dfinity/subnet-rental-canister that referenced this pull request Jan 16, 2026
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]>
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the test-upgrading-subnet-rental-canister-with-one-time-swiss-subnet-fix-daniel-wong branch 2 times, most recently from 8fff047 to a3da712 Compare January 16, 2026 15:58
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the test-upgrading-subnet-rental-canister-with-one-time-swiss-subnet-fix-daniel-wong branch from a3da712 to ce0f9b8 Compare January 16, 2026 15:59
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the test-upgrading-subnet-rental-canister-with-one-time-swiss-subnet-fix-daniel-wong branch from 6c868c2 to 473514f Compare January 16, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants