ParachainsInherent: apply weight limit only in ProvideInherent (#7530)

* move filtering and panic in enter

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* typo

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* more typo

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* review feedback

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* 🤦🤦🤦 Test only `polkadot-runtime-parachains`

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
This commit is contained in:
Andrei Sandu
2023-07-25 12:00:44 +03:00
committed by GitHub
parent f79b75c6c2
commit 57169b22b9
3 changed files with 116 additions and 19 deletions
@@ -42,6 +42,9 @@ test-linux-stable:
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
script:
- time cargo test --workspace --profile testnet --verbose --locked --features=runtime-benchmarks,runtime-metrics,try-runtime,ci-only-tests
# Run `polkadot-runtime-parachains` tests a second time because `paras_inherent::enter` tests are gated by not having
# the `runtime-benchmarks` feature enabled.
- time cargo test --profile testnet --verbose --locked --features=runtime-metrics,try-runtime -p polkadot-runtime-parachains
test-linux-oldkernel-stable:
extends: test-linux-stable