-
Notifications
You must be signed in to change notification settings - Fork 36
feat: new pop add-to command + pop new pallet add pallet to runtime #492
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
Closed
tsenovilla
wants to merge
49
commits into
r0gue-io:main
from
tsenovilla:feat-pop-add-and-related-updates
Closed
Changes from 47 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
d96603c
Add pop-add feature with config-type and runtime-pallet options; Upda…
tsenovilla 3ee92dd
Small bug with config_preludes expansion
tsenovilla 47d4a41
Workaround to preseve non-used declarative macros if rust_writer is used
tsenovilla caad226
Refactor: pop add runtime-pallet => pop add pallet + it detects if it…
tsenovilla 2168974
Refactor: pop add runtime-pallet => pop add pallet + it detects if it…
tsenovilla 764b9ab
Remake error message if pop add pallet path not valid
tsenovilla 9b78cb4
pop add pallet path argument becomes runtime_path
tsenovilla 37e9fe1
Rust writer functions refactor to make them more correct
tsenovilla 4f07e10
Redo pop add config-type
tsenovilla 521639a
Fmt + clippy
tsenovilla d0e5027
Add first expand tests
tsenovilla 65beb6e
Add a new type of error to describe something; cannot write runtime i…
tsenovilla 93b5ddc
Test files for expanding runtime macros
tsenovilla f8c98d5
Macro to reduce add_ast functions in pop_common::rust_writer::expand:…
tsenovilla 83b48a1
Add tests expand runtime add pallet
tsenovilla dc16a9b
Changing ParameterTypes struct so it uses Ident instead of String
tsenovilla 98eb502
Adding test for expand_runtime_add_impl_block
tsenovilla 63894c8
Add test for expand_runtime_add_impl_block
tsenovilla 318c78b
Refactor: split expand_runtime_add_impl_block test in 3 different tests
tsenovilla c7f44fc
Add test expand add_use_statement
tsenovilla ead6477
Finalizing expand tests
tsenovilla 62794a9
Move test builder from expand test to rust writer tests
tsenovilla 4631bad
Refactor rust_writer::parse + add several tests
tsenovilla 343059f
correct find_composite_enum + finish rust_witer::parse tests
tsenovilla 18e4fb0
New way of preserve code to improve performance and UX
tsenovilla 4647bdd
Fix preserver bug
tsenovilla aca725d
Merge remote main branch
tsenovilla 3b1c003
Improve commands to get a better UX
tsenovilla 7bcbce7
rust writer helpers became rust writer preserver; solve a small bug w…
tsenovilla 740b351
Improving error message
tsenovilla 147e4f0
Finishing pop add-to runtime pallet command; concurrent execution + d…
tsenovilla 86c6c3f
Small fixes
tsenovilla 93c8e1a
pop new pallet adds configs in the appropriate path
tsenovilla 6b2c960
pop add-to pallet detects pallet directory + concurrency
tsenovilla 6471c31
Add rollback + finish preserver
tsenovilla fb68d99
Integrate functionality from new extern crates; Integration tests
tsenovilla aa20eb6
Merge main
tsenovilla 9904563
Adding rustls-webpki explicitly to Cargo.toml
tsenovilla 2ff6209
Adding rustls-webpki explicitly to Cargo.toml
tsenovilla 5560343
Pin deranged 0.4.0 => https://github.com/jhpratt/deranged/issues/18
tsenovilla 26c0691
Merge main
tsenovilla 33c9567
Update integration tests for add-to + add them to CI
tsenovilla 90843f5
Move add tests to their respective modules; It's testing the command …
tsenovilla 7530ffc
Assert_cmd has problems finding binary if not integration test; Rever…
tsenovilla 05313e1
Modify construct_runtme add pallet test; unparsing an AST sometimes r…
tsenovilla 5affe2c
Modify construct_runtme add pallet test; unparsing an AST sometimes r…
tsenovilla 0fec7e0
fmt
tsenovilla 19775e5
Bump fs_rollback to 3.0.0 and fix related issue in pop new pallet and…
tsenovilla c274901
Suggested change
tsenovilla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
Curious why do we need an additional CI job here? Wouldn't it be covered by other integration tests CI?
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.
It's currently not covered in
parachain-integration-testsbecause we havecargo test --no-default-features --features parachain --test parachain. But definitely easier to just add it there (https://github.com/r0gue-io/pop-cli/blob/main/.github/workflows/ci.yml#L201) than having a whole new job: