mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Improve features dev-ex (#1831)
Adds a config file that allows to run `zepter` without any arguments in the workspace to address all issues. A secondary workflow for the CI is provided as `zepter run check`. Both the formatting and linting are now in one check for efficiancy. The latest version also detects some more things that `featalign` was already showing. Error message [in the CI](https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3916205) now looks like this: ```pre ... crate 'test-parachains' (/Users/vados/Documents/work/polkadot-sdk/polkadot/parachain/test-parachains/Cargo.toml) feature 'std' must propagate to: parity-scale-codec Found 55 issues (run with --fix to fix). Error: Command 'lint propagate-feature' failed with exit code 1 Polkadot-SDK uses the Zepter CLI to detect abnormalities in the feature configuration. It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`. Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you. For more information, see: - https://github.com/paritytech/polkadot-sdk/issues/1831 - https://github.com/ggwpez/zepter ``` TODO: - [x] Check that CI fails correctly --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
12130a76ac
commit
4a44356773
@@ -21,16 +21,6 @@ check-try-runtime:
|
||||
# experimental code may rely on try-runtime and vice-versa
|
||||
- time cargo check --locked --all --features try-runtime,experimental
|
||||
|
||||
cargo-fmt-manifest:
|
||||
stage: check
|
||||
extends:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
script:
|
||||
- cargo install zepter --locked --version 0.11.0 -q -f --no-default-features && zepter --version
|
||||
- echo "👉 Hello developer! If you see this CI check failing then it means that one of the your changes in a Cargo.toml file introduced ill-formatted or unsorted features. Please take a look at 'docs/STYLE_GUIDE.md#manifest-formatting' to find out more."
|
||||
- zepter format features --check
|
||||
|
||||
# FIXME
|
||||
.cargo-deny-licenses:
|
||||
stage: check
|
||||
@@ -91,17 +81,14 @@ job-starter:
|
||||
script:
|
||||
- echo ok
|
||||
|
||||
test-rust-feature-propagation:
|
||||
check-rust-feature-propagation:
|
||||
stage: check
|
||||
extends:
|
||||
- .kubernetes-env
|
||||
- .test-pr-refs
|
||||
script:
|
||||
- cargo install --locked --version 0.11.1 -q -f zepter && zepter --version
|
||||
- echo "👉 Hello developer! If you see this CI check failing then it means that one of the crates is missing a feature for one of its dependencies. The output below tells you which feature needs to be added for which dependency to which crate. You can do this by modifying the Cargo.toml file. For more context see the MR where this check was introduced https://github.com/paritytech/substrate/pull/14660"
|
||||
- zepter lint propagate-feature --feature try-runtime --left-side-feature-missing=ignore --workspace --feature-enables-dep="try-runtime:frame-try-runtime" --locked
|
||||
- zepter lint propagate-feature --feature runtime-benchmarks --left-side-feature-missing=ignore --workspace --feature-enables-dep="runtime-benchmarks:frame-benchmarking" --locked
|
||||
- zepter lint propagate-feature --feature std --left-side-feature-missing=ignore --workspace --locked
|
||||
- cargo install --locked --version 0.13.2 -q -f zepter && zepter --version
|
||||
- zepter run check
|
||||
|
||||
# More info can be found here: https://github.com/paritytech/polkadot/pull/5865
|
||||
.check-runtime-migration:
|
||||
|
||||
Reference in New Issue
Block a user