-
Notifications
You must be signed in to change notification settings - Fork 40
feat: pop build runtime and pop build --deterministic
#510
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
Conversation
6c4971f to
e85ea1e
Compare
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #510 +/- ##
==========================================
- Coverage 78.87% 78.84% -0.04%
==========================================
Files 98 99 +1
Lines 22777 23060 +283
Branches 22777 23060 +283
==========================================
+ Hits 17966 18182 +216
- Misses 2663 2689 +26
- Partials 2148 2189 +41
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
9561b97 to
d2528a8
Compare
AlexD10S
left a comment
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.
Thanks for taking this on ,super cool feature!
I’ve left a few comments.
I know it wasn’t introduced in this PR, but it might be a good time to update the build runtime(https://github.com/r0gue-io/pop-cli/pull/510/files#diff-da16676d7c7c76d5651d4ae3e7c5b280b9f0efe86ba0068272d593577ab8dd60R83) command to handle errors using handle_command_error, similar to how we refactored benchmarking and other feats that invoke commands:
https://github.com/r0gue-io/pop-cli/blob/main/crates/pop-parachains/src/errors.rs#L102
Also, once this is merged, it’d be great to update the docs to include how to build the runtime deterministically:
https://learn.onpop.io/appchains/guides/build-your-parachain/build-deterministic-runtime
AlexD10S
left a comment
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.
LGTM! Thanks for fixing all the feedback
* feat: pop build runtime * fix: test * chore: reformat * chore: feature gating * chore: add test for collect features * feat: select runtime if multiple * chore: resolve review comments * chore: fix cargo deny * chore: clippy warnings * fix: cargo deny
/runtimefolder of the parachain project. Tackling the issue fix: runpop buildin a runtime throwing manifest error #504.pop build --deterministicto build a runtime deterministically. feat: pop build --deterministic #478--only-runtimeis provided and the command is run at the parachain project root, it prompts user to select the runtime to build if there're multiple. If there is only one runtime, it builds the runtime instead of a parachain.Or