Keith Yeung
89fa61125e
Make some UI test expectations crisper ( #10791 )
...
* Make some UI test expectations crisper
* Update frame/support/test/tests/construct_runtime_ui/undefined_genesis_config_part.rs
* Update UI test expectations
* Missing newlines
* More whitespace issues
2022-02-04 15:42:13 +00:00
Mara Robin B
03ac127508
ci: fix publish-runtimes for rococo-parachain (or any other -parachain) failing on incorrect wasm path ( #957 )
2022-02-04 15:41:47 +00:00
Oliver Tale-Yazdi
24b796bfa4
Make offences benchmark runnable ( #10782 )
...
* Make offences benchmark runnable
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_offences --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/offences/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Revert bench-bot
This reverts commit 73d0cb2e47e93e035af80013991b6a2e5fe2b1ed.
Co-authored-by: Parity Bot <admin@parity.io >
2022-02-04 12:03:28 +00:00
Ignacio Palacios
56d89ab041
Update command for running benchmarks ( #954 )
...
* Update command for running benchmarks
* add --locked
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
2022-02-03 17:41:44 +00: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
Andrew Jones
07d4a6743e
Bump sp-keyring ( #10790 )
2022-02-03 16:58:16 +00:00
Alexander Samusev
12f3e943b1
[ci] revert #4779 ( #4843 )
2022-02-03 16:24:45 +01:00
Shawn Tabrizi
21d0cf0eea
Introduce ModuleError struct ( #10776 )
...
* better partial eq impl
* introduce module error
* fmt
* import module error
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fixes
* fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-02-03 13:02:45 +00: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
Oliver Tale-Yazdi
99fae0cd57
bench-cli: Support JSON output ( #10771 )
...
* Add dependencies
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make benchmark results serializable
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add `--json[-file]` options
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Enable JSON output
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use specific serde version
Polkadot does not compile otherwise.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review comments
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review comment: fs::write
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-02-02 14:25:13 +00: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
Pierre Besson
46f4396657
Substrate alerts rules update ( #10642 )
...
* .maintain/monitoring: Update substrate prometheus alert rules
* match the `substrate_` metrics prefix in alerts instead of `polkadot_`, following changes in #9543
* remove the filtering on polkadot|kusama domain for NumberOfFileDescriptorsHigh alert
* .maintain/monitoring: Update substrate Grafana dashboards
* match the `substrate_` metrics prefix instead of `polkadot_` in dashboards, following changes in #9543
* .maintain/monitoring: make the NumberOfFileDescriptorsHigh alert only apply for metrics tagged with 'chain'
2022-02-02 13:06:25 +01:00
Bernhard Schuster
0ef0108264
reduce forwarded number of disputes by one order of magnitude
2022-02-02 12:39:39 +01:00
Alexander Theißen
d1f490f454
wasm-builder: Fall back to release profile for unknown profiles ( #10775 )
2022-02-02 12:34:52 +01:00
Arkadiy Paronyan
e337f0be4b
Enable download of future forks ( #10739 )
...
* Enable download of future forks
* Fixed external tests
2022-02-02 11:29:36 +00:00
dependabot[bot]
5c589926ce
Bump node-fetch from 2.6.5 to 2.6.7 in /scripts/scale_encode_genesis ( #946 )
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.5 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:00:53 +01:00
dependabot[bot]
77ae936b57
Bump node-fetch from 2.6.1 to 2.6.7 in /scripts/generate_genesis_values ( #945 )
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 23:38:57 +01:00
Alexander Theißen
3938c1cb62
Release pallet-contracts-primitives ( #10772 )
...
* Bump sp-storage
* Bump sp-rpc
* Bump sp-io
* Bump sp-trie
* Bump sp-state-machine
* Bump sp-externalities
* Bump sp-keystore
* Bump sp-application-crypto
* Bump pallet-contracts-primitives
* Bump sp-core
* Bump sp-runtime-interface
* Bump sp-wasm-interface
* Bump sp-runtime
* Bump sp-storage
* Update lock file
* Revert "Bump sp-storage"
This reverts commit f86c6db1ae334e28207b658fd90714ade0332e3b.
* Update lock file
2022-02-01 20:38:02 +01:00
Mara Robin B
21fb5199a3
ci: fix broken reference to rococo srtool digest ( #943 )
2022-02-01 17:07:10 +00:00
Alexander Samusev
d9ab8ff576
[ci] Fix docker credentials ( #4826 )
2022-02-01 16:11:55 +01:00
Oliver Tale-Yazdi
dbb3f24e3e
Add MaxEncodedLen to implement_fixed! ( #10768 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-02-01 14:45:16 +01:00
Chris Sosnin
8a98067d96
Remove unused cli param ( #941 )
2022-02-01 12:03:54 +01:00
Hussein Ait-Lahcen
ba3255376e
derive MaxEncodedLen for MultiSignature ( #10765 )
2022-02-01 09:34:53 +00:00
Alexander Theißen
0bfbf5a89f
Bump strum from 0.22 -> 0.23 ( #10758 )
2022-01-31 20:04:12 +00: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
Alexander Theißen
f3168c3fa0
Add production profile to substrate-wasm-builder ( #10747 )
...
* Add production profile to wasm builder
* Fix profile detection
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Replace panic! by println! + exit
* Default to `release` for wasm on debug builds
* Replaced unwrap by expect
* Update all weights
Rerun on the bm2 server.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Parity Bot <admin@parity.io >
2022-01-31 14:16:26 +00:00
Keith Yeung
d793334bbd
Add the ability to suspend or resume XCM execution on the XCMP queue ( #896 )
...
* Add the ability to suspend or resume XCM execution on the XCMP queue
* Rename QueueActive to QueueSuspended
* Add the ability to suspend the DMP queue
* Rename XCMP to DMP in comments where appropriate
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Add a bypass for XCMP queue suspension
* Revert "Add the ability to suspend the DMP queue"
This reverts commit 363ca09b41e40fce3f2740e7ab78f5c54781ca5c.
* Change controller origin to either root or council-issued origin
* Rename to ControllerOriginConverter
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2022-01-31 12:12:09 +00:00
Bastian Köcher
21d5573b25
pallet-scheduler: Fix migrations V2 to V3 ( #10757 )
...
* pallet-scheduler: Fix migrations V2 to V3
V2 already supported origins, so we need to move them over instead of setting it to `Root`. Besides
that it also removes the custom `Releases` enum and moves it over to `StorageVersion`.
* Fixes
* Fixes
* 🤦
2022-01-31 11:43:42 +00:00
Alexander Theißen
39704979fe
Bump wasm-instrument 0.1.0 -> 0.1.1 ( #10749 )
...
* Bump wasm-instrument 0.1.0 -> 0.1.1
* Fix benchmark
2022-01-31 10:05:30 +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
Piotr Mikołajczyk
ee557b769c
Fix lazy batch contract removal ( #10728 )
...
* Fix lazy batch contract removal
* Apply suggestions
* Qualify ChildInfo
* Negligible change to restart pipeline
* Revert "Negligible change to restart pipeline"
This reverts commit b38abb622a17de9f0d19b3eadcea611ead1a7251.
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2022-01-28 18:37:54 +00:00
Bernhard Schuster
1e0984bca6
wrong if-case ( #4798 )
...
* fixup
* fmt
* fix tests
2022-01-28 17:32:19 +01:00
Pierre Krieger
ffcd97807f
Add attributes and documentation to fork_id ( #10746 )
...
* Add attributes and documentation to fork_id
* Update client/chain-spec/src/chain_spec.rs
Co-authored-by: Sacha Lansky <sacha@parity.io >
Co-authored-by: Sacha Lansky <sacha@parity.io >
2022-01-28 12:25:12 +00: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
Niklas Adolfsson
3f69a2e1ff
remote ext: make it possible to use an existing ws connection ( #10737 )
...
* remote ext: make it possible to pass ws client
* grumbles: introduce `map_uri`
2022-01-28 09:04:52 +00: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
Davide Galassi
7f3bb8d0da
Add stale branches heads to finality notifications ( #10639 )
...
* Add stale branches heads to finality notifications
Warning. Previous implementation was sending a notification for
each block between the previous (explicitly) finalized block and
the new finalized one (with an hardcoded limit of 256).
Now finality notification is sent only for the new finalized head and it
contains the hash of the new finalized head, new finalized head header,
a list of all the implicitly finalized blocks and a list of stale
branches heads (i.e. the branches heads that are not part of the
canonical chain anymore).
* Add implicitly finalized blocks list to `ChainEvent::Finalized` message
The list contains all the blocks between the previously finalized block
up to the parent of the currently finalized one, sorted by block number.
`Finalized` messages handler, part of the `MaintainedTransactionPool`
implementation for `BasicPool`, still propagate full set of finalized
blocks to the txpool by iterating over implicitly finalized blocks list.
* Rust fmt
* Greedy evaluation of `stale_heads` during finalization
* Fix outdated assumption in a comment
* Removed a test optimization that is no more relevant
The loop was there to prevent sending to
`peer.network.on_block_finalized` the full list of finalized blocks.
Now only the finalized heads are received.
* Last finalized block lookup not required anymore
* Tests for block finality notifications payloads
* Document a bit tricky condition to avoid duplicate finalization notifications
* More idiomatic way to skip an iterator entry
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Cargo fmt iteration
* Typo fix
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Fix potential failure when a finalized orphan block is imported
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-01-27 18:21:58 +01: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
Kian Paimani
498c3a5ecc
better way to resolve Phase::Emergency via governance ( #10663 )
...
* better way to resolve Phase::Emergency via governance
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* review grumbles
* Update frame/election-provider-support/src/onchain.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* revert usize -> u32
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-01-27 10:00:48 +00:00
Dan Shields
2b9e3a73f6
Update Node Template ( #10710 )
...
* update node template from downsteam
template version = 4.0.0-dev
rust setup updated
* Update bin/node-template/runtime/Cargo.toml
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Review Rust setup README
* Apply suggestions from code review
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Sacha Lansky <sacha@parity.io >
2022-01-26 22:47:17 +00:00
Alexander Samusev
514b920dd6
[ci] pipeline chores ( #10734 )
...
* [ci] pipeline chores
2022-01-26 18:03:37 +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