-
Notifications
You must be signed in to change notification settings - Fork 107
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
With "production-ready" by default #1089
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1089 +/- ##
===========================================
- Coverage 80.69% 58.12% -22.58%
===========================================
Files 55 55
Lines 2274 2173 -101
Branches 71 71
===========================================
- Hits 1835 1263 -572
- Misses 422 893 +471
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Looks great @yrong, thanks!
@@ -233,8 +233,8 @@ try-runtime = [ | |||
"snowbridge-system/try-runtime", | |||
"sp-runtime/try-runtime", | |||
] | |||
beacon-spec-mainnet = [ | |||
"snowbridge-ethereum-beacon-client/beacon-spec-mainnet", | |||
fast-runtime = [ |
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.
Lets use beacon-spec-minimal
here so that the flag sounds like its to do with beacon chain as opposed to any of the runtimes.
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.
Agree!
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.
Then the prod_or_fast
macro will not work.
https://github.com/Snowfork/polkadot-sdk/pull/89/files#r1434875211
Btw, it's already used in Polkadot codebase everywhere(e.g. for a fast epoch time) and I would prefer to be in consistent with them.
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.
I don't see that problem. The BridgeHub runtime will continue to have a fast-runtime
feature, that will enable the beacon-spec-mainnet
feature within the beacon client spec
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.
@@ -92,4 +91,4 @@ try-runtime = [ | |||
"pallet-timestamp?/try-runtime", | |||
"sp-runtime/try-runtime", | |||
] | |||
beacon-spec-mainnet = [] | |||
fast-runtime = [] |
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.
Within the context of this crate, I prefer the name beacon-spec-minimal
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.
#1089 (comment) and IMO mininal-spec
is just some kind of the fast-runtime
, it's more abstract not only apply to the context of beacon but other contexts we may need later.
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.
As Vincent suggests, Stick to use fast-runtime feature in BH runtime and only enables the beacon-spec-minimal
feature in that case.
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.
+1
* Refactor with fast runtime * CI test with fast-runtime * Fix ci * Update sdk * beacon-spec-minimal * Fix ci * Update sdk * Update sdk
Address the comments in paritytech/polkadot-sdk#2777 (comment)
Requires: Snowfork/polkadot-sdk#89