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

Coretime Zombienet test #2867

Merged
merged 17 commits into from
Jan 8, 2024
Merged

Coretime Zombienet test #2867

merged 17 commits into from
Jan 8, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jan 6, 2024

This adds a Zombienet test for Coretime.

Requires: #2862

@bkchr bkchr added the R0-silent Changes should not be mentioned in any release notes label Jan 6, 2024
@bkchr bkchr requested a review from a team as a code owner January 6, 2024 14:08
Copy link
Contributor

@seadanda seadanda left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -215,6 +222,9 @@ impl pallet_broker::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type OnRevenue = CreditToCollatorPot;
#[cfg(feature = "fast-runtime")]
type TimeslicePeriod = ConstU32<10>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious why not even lower?

Copy link
Member Author

Choose a reason for hiding this comment

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

IDK :D Session length on Rococo local is also around 1 Minute aka 10 blocks.

Copy link
Contributor

@seadanda seadanda Jan 8, 2024

Choose a reason for hiding this comment

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

Seems as good a reason as any for the tests as they are now.
I was wondering why not e.g. 2 - shorter splittable number, but it would limit the interlacing options when we make more complicated tests.

@@ -247,7 +252,7 @@ fn mk_coretime_call(call: crate::coretime::CoretimeCalls) -> Instruction<()> {
origin_kind: OriginKind::Superuser,
// Largest call is set_lease with 1526 byte:
// Longest call is reserve() with 31_000_000
require_weight_at_most: Weight::from_parts(100_000_000, 20_000),
require_weight_at_most: Weight::from_parts(110_000_000, 20_000),
Copy link
Member

Choose a reason for hiding this comment

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

Was it really that tight?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. I think 106_000_000 or so was it AFAIR.

@bkchr bkchr merged commit 4fdab49 into master Jan 8, 2024
127 of 128 checks passed
@bkchr bkchr deleted the bkchr-coretime-zombienet branch January 8, 2024 18:41
@bkchr bkchr mentioned this pull request Jan 10, 2024
7 tasks
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants