Skip to content

test: rejoin_test_long_rounds causes more expensive canister state cloning#10040

Merged
mraszyk merged 3 commits intomasterfrom
mraszyk/rejoin-test-long-rounds-much-cloning
Apr 28, 2026
Merged

test: rejoin_test_long_rounds causes more expensive canister state cloning#10040
mraszyk merged 3 commits intomasterfrom
mraszyk/rejoin-test-long-rounds-much-cloning

Conversation

@mraszyk
Copy link
Copy Markdown
Contributor

@mraszyk mraszyk commented Apr 28, 2026

This PR fixes rejoin_test_long_rounds to cause more expensive canister state cloning. The motivation for this change is that cloning many (100,000) canisters whose state does not change is cheap now that their canister state is wrapped in an Arc. Hence, the updated test cycles through all those many canisters and keeps bumping their freezing threshold so that their canister state under an Arc must actually be cloned. The cyclic iteration is a busy computation and thus the original busy canisters with expensive heartbeats could be dropped now.

@github-actions github-actions Bot added the test label Apr 28, 2026
@mraszyk mraszyk marked this pull request as ready for review April 28, 2026 10:21
@mraszyk mraszyk requested a review from a team as a code owner April 28, 2026 10:21
Copy link
Copy Markdown
Contributor

@alin-at-dfinity alin-at-dfinity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you.

Comment thread rs/rust_canisters/statesync_test/test/test.rs Outdated
@mraszyk mraszyk enabled auto-merge April 28, 2026 13:21
@mraszyk mraszyk added this pull request to the merge queue Apr 28, 2026
Merged via the queue into master with commit f75e4fa Apr 28, 2026
62 of 64 checks passed
@mraszyk mraszyk deleted the mraszyk/rejoin-test-long-rounds-much-cloning branch April 28, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants