Bernhard Schuster
aa2af6a460
allow overseer to be enabled anyways ( #4840 )
...
Closes #4763
2022-02-07 10:46:27 +01:00
Chevdor
16ecb3648e
Add a few items to the release checklist and move the doc away ( #4844 )
2022-02-03 18:27:49 +01:00
Alexander Samusev
12f3e943b1
[ci] revert #4779 ( #4843 )
2022-02-03 16:24:45 +01:00
Bernhard Schuster
5b06cc23d6
[chore] runtime split tests ( #4834 )
2022-02-03 09:12:41 +01:00
Lldenaurois
f7564591e7
Add tests to ensure session is set correctly in OnChainScrapingVotes ( #4821 )
...
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-02-02 18:40:21 +01:00
Chevdor
7e9a58fc99
Version bumps to v0.9.16 and 9160 ( #4767 )
...
* Bump spec_version
* Bump version to 0.9.16
2022-02-02 15:22:32 +01:00
Alexander Theißen
e8e6470fb7
Bump substrate ( #4828 )
...
* Bump substrate
* Update Substrate
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-02-02 14:45:09 +01:00
Mara Robin B
ff5230e4fc
Bump transaction_version for polkadot, kusama, & westend ( #4831 )
...
* bump transaction_version for kusama
* bump transaction_version for polkadot
* bump transaction_version for westend
2022-02-02 14:33:48 +01:00
radupopa2010
f69ca55712
feat(cicd): expire artifacts after 7 days ( #4833 )
...
We received several alerts about disk space in gitlab server.
Even if we have 1TiB allocated, disk space is consumed very fast.
We need to address this problem by expiring artifacts after 7 days.
2022-02-02 13:56:41 +01:00
Bernhard Schuster
0ef0108264
reduce forwarded number of disputes by one order of magnitude
2022-02-02 12:39:39 +01:00
Alexander Samusev
d9ab8ff576
[ci] Fix docker credentials ( #4826 )
2022-02-01 16:11:55 +01:00
sandreim
50828ad145
Update pvf metric histogram buckets ( #4818 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-01-31 17:28:58 +00:00
Andronik
db4cff49ca
parainherent: fix session in OnChainVotes
2022-01-30 21:50:40 +01:00
Andronik
9ce2798d5b
dispute-coordinator: more useful logs
2022-01-30 21:50:40 +01:00
Oliver Tale-Yazdi
88a4a748be
Add baseline benchmarks ( #4777 )
...
* Don't merge this
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* Add baseline benches
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Don't merge this"
This reverts commit d0fcc4f9cf83492862618c3b254cb6589f1b1831.
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_benchmarking::baseline --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/frame_benchmarking_baseline.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_benchmarking::baseline --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/frame_benchmarking_baseline.rs
* Add weight modules
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Apply suggestions from code review
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-01-30 19:37:13 +00:00
Bernhard Schuster
1e0984bca6
wrong if-case ( #4798 )
...
* fixup
* fmt
* fix tests
2022-01-28 17:32:19 +01:00
Lldenaurois
23ee153e74
Refactor check_validation_outputs ( #4727 )
...
* Move PersistedValidationData check into
* Address feedback
* Remove incorrect comment
* Update runtime/parachains/src/inclusion/mod.rs
* fmt
* Add logging
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Andronik <write@reusable.software >
2022-01-28 11:21:28 +01:00
Robert Klotzner
0302271053
Fix incomplete sorting. ( #4795 )
...
* Fix incomplete sorting.
* fmt.
* Better test.
* Update runtime/parachains/src/disputes.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* chore fmt
* simplify the sorting for two items
* add test for assure duplicates are detected
* fixup tests
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-01-27 18:16:31 +00:00
Georges
d306d64e73
Companion for better way to resolve Phase::Emergency via governance #10663 ( #4757 )
...
* Adding `GovernanceFallback` after changes to
substrate
* Update Substrate
* Update Substrate again
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-01-27 15:43:35 +01:00
sandreim
806cb541b7
Refactor and fix usage of get_session_index() and get_session_info_by_index() ( #4735 )
...
* Rename/refactor around get_session_index
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* choose proper head for fetching session
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* revert rename
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix comments
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* renaming and more comments
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Run Fetch task in correct session
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Log warning when ancestors unavailable
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-01-26 15:17:46 +00:00
sandreim
2661930b77
relay chain selection and dispute-coordinator fixes and improvements (#4752 )
...
* Dont error in finality_target_with_longest_chain
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add error flag
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add error flag in dispute-coordinator
Make sure to send errors to subsystems requesting data depending on missing session info
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Scrape ancestors
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix naming
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* 💬 fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* consume
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* typo
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* review fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Bump scraped blocks LRU capacity
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* 🧯 🔥
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* remove prints
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Increase scraped blocks cache size
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* more review fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* another fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix target_ancestor
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Scrape up to max finalized block
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* undo comment change
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Limit ancestry lookup to last finalized block or
max finality lag
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* debug damage
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-01-26 14:06:27 +00:00
Bastian Köcher
109f73092f
Fix tests ( #4787 )
2022-01-26 12:35:09 +00:00
Robert Habermeier
7c07192c6e
log concluded disputes ( #4785 )
2022-01-26 08:59:04 +00:00
Chris Sosnin
0e2eb6d26c
availability-distribution: look for leaf ancestors within the same session ( #4596 )
...
* availability-distribution: look for leaf ancestors
* Re-use subsystem-util
* Rework ancestry tasks scheduling
* Requester tests
* Improve readability for ancestors lookup
2022-01-25 22:52:07 -06:00
Georges
922eb606c3
Companion for Use proper bounded vector type for nominations #10601 ( #4709 )
...
* Fixing polkadot after subtrate changes
`MAX_NOMINATIONS` was changed to `MaxNominations`
* Fixing some more places
* Apply suggestions from code review
* update lockfile for {"substrate"}
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-01-25 20:38:47 +01:00
Chevdor
0f4843b10c
Fix release profile ( #4778 )
...
* Add codeden-units=1
ref #4311
* opt-level to 3
* Fix opt-level
* Refactor apt-level into the release profile
2022-01-25 15:19:20 +00:00
Alexander Samusev
89c86d6300
[ci] remove publish-s3-release ( #4779 )
2022-01-25 12:06:04 +01:00
Qinxuan Chen
f4ec9b0341
Companion for substrate#10632 ( #4689 )
...
* Companion for substrate#10632
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix bags-list
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update Substrate
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix bridges test
* FMT
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-01-25 10:58:17 +00:00
Alexander Samusev
6b7e40cd6c
[ci] pipeline chores ( #4775 )
...
* [ci] WIP: pipeline chores
* fix vault
* fix secrets
2022-01-24 18:18:53 +01:00
Chevdor
0269532fa8
New changelog scripts ( #4491 )
...
* Add templates
* Add folder for local storage of the digests
* Add first draft of the changelog scripts
* Enable Audits in the change template
* Fixes for Polkadot
* Fix templating issue in case there is no high prio change
* Fix Ruby setup
* Remove shell
* Fix chain names
* Fix ENV
* Fix how to get runtime
* Fix runtime_dir
* Fix context location
* Pin changelogerator to a specific version
2022-01-24 09:44:55 +01:00
Bastian Köcher
ef13a0ab8d
Companion for Substrate#10655 ( #4765 )
...
* Companion for Substrate#10655
https://github.com/paritytech/substrate/pull/10655
This removes the last usages of `Default` in conjunction with `AccountId`
* More fixes
* More of them!
* FMT
* Update Substrate
2022-01-21 20:14:09 +00:00
Oliver Tale-Yazdi
cc1201ef27
Use define_benchmarks! ( #4760 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-01-21 17:12:45 +00:00
Bastian Köcher
8756678a83
polkadot-test-service: Enable wasmtime feature ( #4762 )
...
We use the `Compiled` wasm execution and for that the `wasmtime` needs
to be enabled.
2022-01-21 15:18:21 +00:00
Kian Paimani
3cb2d62665
HRMP benchmarks ( #3876 )
...
* wip template for hrmp benchmarks
* add all of the benchmarks, first draft
* File was not saved :/
* cargo +nightly fmt
* Use configs
* add configs
* Fix rococo
* Final touches
* revert fmt changes, one last time
* Fix wrappings
* Fix a bunch of tests
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_hrmp.rs
* add to westend
* actually use everything
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_hrmp.rs
* Update runtime/parachains/src/hrmp.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* use real weight in wnd
* reorg
* minor cleanup
* weigh some of the internal stuff as well
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_hrmp.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_hrmp.rs
* add files
* Master.into()
* add validation
* fmt
* fmt
* final fixes
* all runtimes build
* undo formatting
* Update runtime/parachains/src/hrmp.rs
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* non-controversial changes
* do it the parachain-way: use const instead of type configs for simplicity.
* borrow assert_storage_consistency_exhaustive
* move assert_storage_consistency_exhaustive to Pallet, so it can be reused for benchmarks as well.
* fix typo
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Sergey Shulepov <s.pepyakin@gmail.com >
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2022-01-21 13:42:39 +00:00
Keith Yeung
efe290490a
Remove Default bound on AccountId types under the xcm directory ( #4712 )
...
* Refactor ParentIsDefault to ParentIsAllZeroes
* Remove Default bound on all AccountId types under the xcm directory
* Change to ParentIs<A: Get<AccountId>, AccountId>
* Provide a better account for ParentIs
* Fixes
* Fixes
* Fixes
* Fixes
* Update xcm/xcm-builder/src/currency_adapter.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Use preset account ID value for parent MultiLocations
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-01-21 11:03:39 +00:00
Oliver Tale-Yazdi
3d61cc01db
co #10662 : Require MaxEncodedLen per default ( #4746 )
...
* Add `without_storage_info`
The MaxEncodedLen trait is now enforced by default in Substrate.
All pallets missing an implementation need to be marked with
`without_storage_info` now.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove `generate_storage_info`
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add more `without_storage_info`
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-01-20 12:36:22 +00:00
Bernhard Schuster
b7a05fd40b
[runtime] follow up relay chain cleanups ( #4657 )
...
* fix miscalculation of remaining weight
* rename a var
* move out enforcing filtering by dropping inherents
* prepare for dispute statement validity check being split off
* refactor
* refactor, only check disputes we actually want to include
* more refactor and documentation
* refactor and minimize inherent checks
* chore: warnings
* fix a few tests
* fix dedup regression
* fix
* more asserts in tests
* remove some asserts
* chore: fmt
* skip signatures checks, some more
* undo unwatend changes
* Update runtime/parachains/src/paras_inherent/mod.rs
Co-authored-by: sandreim <54316454+sandreim@users.noreply.github.com >
* cleanups, checking CheckedDisputeStatments makes no sense
* integrity, if called create_inherent_inner, it shall do the checks, and not rely on enter_inner
* review comments
* use from impl rather than into
* remove outdated comment
* adjust tests accordingly
* assure no weight is lost
* address review comments
* remove unused import
* split error into two and document
* use assurance, O(n)
* Revert "adjust tests accordingly"
This reverts commit 3cc9a3c449f82db38cea22c48f4a21876603374b.
* fix comment
* fix sorting
* comment
Co-authored-by: sandreim <54316454+sandreim@users.noreply.github.com >
2022-01-20 11:00:29 +00:00
Javier Viola
883b490cae
[Zombienet] add dummy upgrade test ( #4660 )
2022-01-20 10:02:50 +01:00
Gavin Wood
fe7c34bbff
Mainnets have upper bound on treasury bond required (companion for #10689 ) ( #4739 )
...
* Mainnets have upper bound on treasury bond required
* Update runtime/common/src/impls.rs
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Bump
* Update Substrate
Co-authored-by: RRTTI <raul@justopensource.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-01-19 21:26:10 +00:00
Robert Klotzner
8ec793e67f
Bump substrate. ( #4747 )
2022-01-19 14:03:22 +01:00
Sergei Shulepov
fb0258e735
pvf-checker-subsystem: metrics ( #4741 )
...
* pvf-checker-subsystem: metrics
This commits adds metrics to the PVF pre-checking subsystem.
* Apply suggestions from code review
Co-authored-by: sandreim <54316454+sandreim@users.noreply.github.com >
Co-authored-by: sandreim <54316454+sandreim@users.noreply.github.com >
2022-01-18 16:44:11 +00:00
Alexander Theißen
3800b01fe1
Fix pallet_xcm::execute ( #4490 )
...
* Make `pallet_xcm::execute` supply the proper weight credit
* Use weight correction
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-01-18 16:39:23 +00:00
Bastian Köcher
550e81b63f
Check that try-runtime compiles in CI ( #4736 )
...
It also moves some simple scripts directly into the .gitlab.yaml file.
2022-01-18 16:17:07 +01:00
zqhxuyuan
c0ed54f1df
make xcm_config public ( #4731 )
2022-01-17 18:39:17 +00:00
Sergei Shulepov
815021ab8a
paras: do not allow PVF vote submission if disabled ( #4684 )
...
if the PVF pre-checking is disabled the runtime dispatchable will reject
any attempts of submission. This is also concern the unsigned tx
validation.
Right now, the `include_pvf_check_statement` dispatchable is effectively
uncallable because of the weight set to the maximum value. If we were to
benchmark it, it would become includable in a block, but since there
will be no active votes, the dispatchable won't do anything.
However, it will execute some code, like signature validation and
querying some storage entries. To be completely safe, we can bail out
early if the `pvf_checking_enabled` config is disabled. That's what this
PR does.
2022-01-17 15:28:20 +01:00
Zeke Mostov
7ef476c241
Change EraIndex import path: companion #10671 ( #4728 )
...
* Change EraIndex import path: companion #10671
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-01-17 03:09:43 +00:00
Andronik
762d77e3ec
refactor runtime cache for SessionInfo ( #4723 )
2022-01-15 20:10:09 +00:00
Andronik
6ad8139c39
spellcheck fixes ( #4724 )
2022-01-15 14:11:31 +00:00
Robert Klotzner
fc594e5254
Report the actual missing session. ( #4722 )
2022-01-15 10:41:24 +00:00
Alexander Popiak
401540eefc
Add fast-runtime Cargo Feature for Quick Test Runs ( #4332 )
...
* add fast-runtime feature for reduced session times
* make democracy periods fast on fast-runtime
* propagate fast-runtime feature through cargo.toml files
* add fast motion and term durations to Kusama
* Update runtime/westend/Cargo.toml
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* set session time to 2 minutes to avoid block production issues
* formatting
* update Substrate
* set democracy fast periods back to 1min
* set launch period and enactment period to 1 block in fast-runtime
* remove unnecessary westend period configs
* add prod_or_test macro to allow specifying prod, test and env values for parameter types
* move prod_or_test macro into common module and use it consistently
* rename macro to prod_or_fast
* cargo +nightly fmt
* bump impl_versions
* newline
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* add note that env variable is evaluated at compile time
* newline
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* newline
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* cargo fmt
* impl_version: 0
* impl_version: 0
* use prod_or_fast macro for LeasePeriod and LeaseOffset
* use prod_or_fast macro in WND and ROC constants
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Giles Cope <gilescope@gmail.com >
2022-01-13 20:08:24 +00:00