Skip to content
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

[pallet-broker] add tests for renewing leases #4099

Merged
merged 5 commits into from
Apr 15, 2024

Conversation

seadanda
Copy link
Contributor

@seadanda seadanda commented Apr 12, 2024

The first test proves that parachains who were migrated over on a legacy lease can renew without downtime.

The exception is if their lease expires in period 0 - aka within region_length timeslices after start_sales is called. The second test is designed such that it passes if the issue exists and should be fixed.
This will require an intervention on Kusama to add these renewals to storage as it is too tight to schedule a runtime upgrade before the start_sales call. All leases will still have at least two full regions of coretime.

@seadanda seadanda added R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet. labels Apr 12, 2024
@seadanda seadanda requested review from eskimor and bkchr April 12, 2024 11:52
@seadanda seadanda self-assigned this Apr 12, 2024
@seadanda seadanda requested a review from a team as a code owner April 12, 2024 11:52
substrate/frame/broker/src/tests.rs Show resolved Hide resolved
substrate/frame/broker/src/tests.rs Outdated Show resolved Hide resolved
substrate/frame/broker/src/tests.rs Show resolved Hide resolved
@github-actions github-actions bot requested review from bkchr and eskimor April 15, 2024 15:42
Copy link

Review required! Latest push from author must always be reviewed

Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

(approving to unblock)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants