-
Notifications
You must be signed in to change notification settings - Fork 526
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
add frontier-pos-template-m1 #1235
Conversation
Thanks for the delivery, @weimeme. Sorry for the delay, but most of the team is out of office over the holidays, so it'll take another week at least before someone can have a look. |
Hi @weimeme sorry for the delay, I have started the evaluation and will let you know if I have any comments/questions. |
@keeganquigley Very excited! We're also happy to let you known that two public chains developed based on this project template will be launching soon. The Polkadot ecosystem is attracting more and more teams. |
@weimeme awesome happy to hear it! So I'm able to compile and run the node but when I run the unit tests with Tarpaulin I get the following error: Compiling common-runtime v0.1.0 (/home/ubuntu/frontier-pos-template/runtime/common)
Compiling node-rpc v3.0.0-dev (/home/ubuntu/frontier-pos-template/node/rpc)
Compiling substrate-test-runtime-client v2.0.0 (https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.13.0#d5160c1d)
Compiling sc-service-test v2.0.0 (https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.13.0#d5160c1d)
error: could not compile `staging-node-cli` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `kitchensink-testnet-runtime` (lib test) due to 2 previous errors; 2 warnings emitted
2025-01-14T23:24:40.614706Z ERROR cargo_tarpaulin: Failed to compile tests!
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/ubuntu/.rustup/toolchains/1.80.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux I get the same thing when I run regular |
Additionally, when I try to run with Docker Compose I get the following:
Could you update the .yaml file? |
@keeganquigley This seems to be due to an environment problem. I would like to know what OS you are using? |
In order to facilitate development, I made some updates to Docker a few days ago. I will rebuild and push it today, and I will also conduct basic tests. |
rust: 1.80 install envirenment
|
@keeganquigley
|
@keeganquigley |
@keeganquigley I noticed you encountered errors when running cargo clippy. I have updated the tutorial, you can just follow the commands provided here https://github.com/ChainSupport/frontier-pos-template/blob/main/docs/tutorial.md#cargo-clippy |
Regarding unit test coverage, we only need to focus on |
The low test coverage of the babe-consensus-data-provider module is due to my thorough research of both the babe module and moonbeam's pending-consensus-data-provider during development. I decided to directly adopt most methods from the babe module. Only the VRF generation and verification need to be tested, and this part of the unit testing has already been implemented at https://github.com/ChainSupport/frontier-pos-template/blob/main/client/babe-consensus-data-provider/src/lib.rs#L251.Actually, all of my personally added new code has been thoroughly tested. |
The explanation for this part has been added to the documentation https://github.com/ChainSupport/frontier-pos-template/blob/main/client/babe-consensus-data-provider/src/lib.rs#L18 |
Thanks @weimeme sounds good, will try the above commands. Thanks for responding to my eval notes too. |
Thanks for your patience @weimeme while I ran a control experiment with regular Frontier template node to make sure the issues weren't on my end. I am running Ubuntu 20.04. But you saw my notes and fixed it anyway. Thanks also for explanations on the unit tests. Everything is working now, I was finally able to add the network manually in MetaMask and transfer UNIT balance, as well as use Remix. Thanks for the nice work! Here is my final evaluation. |
🪙 Please fill out the invoice form in order to initiate the payment process. Thank you! |
We noticed that this is the last milestone of your project. Congratulations on completing your grant! 🎊 |
@keeganquigley @semuelle @PieWol I have submitted the invoice. If there are any issues, please let me know immediately. Thank you again. |
Milestone Delivery Checklist
Link to the application pull request: https://github.com/w3f/Grants-Program/blob/master/applications/frontier-pos-template.md