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>
parent
12130a76
Showing
- .config/zepter.yaml 45 additions, 0 deletions.config/zepter.yaml
- .gitlab/pipeline/check.yml 3 additions, 16 deletions.gitlab/pipeline/check.yml
- bridges/primitives/chain-polkadot-bulletin/Cargo.toml 1 addition, 0 deletionsbridges/primitives/chain-polkadot-bulletin/Cargo.toml
- bridges/primitives/relayers/Cargo.toml 2 additions, 0 deletionsbridges/primitives/relayers/Cargo.toml
- cumulus/pallets/parachain-system/Cargo.toml 1 addition, 0 deletionscumulus/pallets/parachain-system/Cargo.toml
- cumulus/pallets/xcmp-queue/Cargo.toml 1 addition, 0 deletionscumulus/pallets/xcmp-queue/Cargo.toml
- cumulus/parachains/common/Cargo.toml 3 additions, 0 deletionscumulus/parachains/common/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-kusama/Cargo.toml 1 addition, 0 deletions...us/parachains/runtimes/assets/asset-hub-kusama/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml 1 addition, 0 deletions...us/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml 1 addition, 0 deletions...s/parachains/runtimes/assets/asset-hub-westend/Cargo.toml
- cumulus/parachains/runtimes/assets/common/Cargo.toml 1 addition, 0 deletionscumulus/parachains/runtimes/assets/common/Cargo.toml
- cumulus/parachains/runtimes/assets/test-utils/Cargo.toml 1 addition, 0 deletionscumulus/parachains/runtimes/assets/test-utils/Cargo.toml
- cumulus/parachains/runtimes/test-utils/Cargo.toml 1 addition, 0 deletionscumulus/parachains/runtimes/test-utils/Cargo.toml
- cumulus/primitives/timestamp/Cargo.toml 1 addition, 0 deletionscumulus/primitives/timestamp/Cargo.toml
- cumulus/primitives/utility/Cargo.toml 1 addition, 0 deletionscumulus/primitives/utility/Cargo.toml
- docs/STYLE_GUIDE.md 1 addition, 1 deletiondocs/STYLE_GUIDE.md
- polkadot/parachain/test-parachains/Cargo.toml 1 addition, 1 deletionpolkadot/parachain/test-parachains/Cargo.toml
- polkadot/parachain/test-parachains/adder/Cargo.toml 1 addition, 1 deletionpolkadot/parachain/test-parachains/adder/Cargo.toml
- polkadot/parachain/test-parachains/undying/Cargo.toml 7 additions, 1 deletionpolkadot/parachain/test-parachains/undying/Cargo.toml
- polkadot/runtime/parachains/Cargo.toml 2 additions, 0 deletionspolkadot/runtime/parachains/Cargo.toml
.config/zepter.yaml
0 → 100644
Please register or sign in to comment