Commit Graph

3156 Commits

Author SHA1 Message Date
Denis Pisarev 04f5a15be4 CI: rename ambiguous jobs (#5313) 2022-04-12 15:53:13 +02:00
Bastian Köcher 905ec74f6a Prepare for rust 1.60 (#5282)
* Prepare for rust 1.60

* change ci image to staging

* empty commit for pipeline rerun

* ci image production

Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
Co-authored-by: alvicsam <alvicsam@gmail.com>
2022-04-11 11:31:39 +02:00
dependabot[bot] 3fef84a69a Bump proc-macro2 from 1.0.36 to 1.0.37 (#5265)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.36...1.0.37)

---
updated-dependencies:
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 23:44:41 +02:00
Sergei Shulepov b89dc00ec0 Fixes the dead lock when any of the channels get at capacity. (#5297)
The PVF host is designed to avoid spawning tasks to minimize knowledge
of outer code. Using `async_std::task::spawn` (or Tokio's counterpart)
deemed unacceptable, `SpawnNamed` undesirable. Instead there is only one
task returned that is spawned by the candidate-validation subsystem.
The tasks from the sub-components are polled by that root task.

However, the way the tasks are bundled was incorrect. There was a giant
select that was polling those tasks. Particularly, that implies that as soon as
one of the arms of that select goes into await those sub-tasks stop
getting polled. This is a recipe for a deadlock which indeed happened
here.

Specifically, the deadlock happened during sending messages to the
execute queue by calling
[`send_execute`](https://github.com/paritytech/polkadot/blob/a68d9be35656dcd96e378fd9dd3d613af754d48a/node/core/pvf/src/host.rs#L601).
When the channel to the queue reaches the capacity, the control flow is
suspended until the queue handles those messages. Since this code is
essentially reached from [one of the select
arms](https://github.com/paritytech/polkadot/blob/a68d9be35656dcd96e378fd9dd3d613af754d48a/node/core/pvf/src/host.rs#L371),
the queue won't be given the control and thus no further progress can be
made.

This problem is solved by bundling the tasks one level higher instead,
by `selecting` over those long-running tasks.

We also stop treating returning from those long-running tasks as error
conditions, since that can happen during legit shutdown.
2022-04-09 10:57:34 +00:00
dependabot[bot] a68d9be356 Bump syn from 1.0.90 to 1.0.91 (#5273)
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.90...1.0.91)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-08 19:56:15 +02:00
João Paulo Silva de Souza c8eb992cfd create .github/workflows/pr-custom-review.yml (#5280) 2022-04-08 17:39:29 +02:00
Mara Robin B 11fc94176d [ci] fix pallet benchmark script (#5247) (#5292) 2022-04-08 14:50:10 +02:00
Mara Robin B 2cc30515d8 bump spec_version to 9190 (#5291) 2022-04-08 11:48:52 +00:00
Mara Robin B 7ed275bff8 bump version to 0.9.19 (#5290) 2022-04-08 11:48:43 +00:00
Robert Klotzner 243c855f03 Session is actually ancient not unknown. (#5286) 2022-04-08 13:04:59 +02:00
Mara Robin B 6608975861 [ci] point benchmark script to sub-commands (#5247) (#5289) 2022-04-08 12:13:58 +02:00
Sergejs Kostjucenko d56c5f86ef Remove Travis CI (#5287) 2022-04-08 12:41:56 +03:00
Koute ef4e64c641 Improve error handling in approval voting block import (#5283)
* Print out original the runtime API error

* Improved error handling in approval voting block import

* Fix test

* Update comment
2022-04-08 10:26:38 +02:00
João Paulo Silva de Souza ecd42d5408 fix .github/pr-custom-review.yml (#5279) 2022-04-08 10:52:00 +03:00
Oliver Tale-Yazdi 08163de073 Co #11164: Sub-commands for benchmark (#5247)
* Restructure benchmark commands

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add benchmark storage test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* cargo update -p sp-io

* Revert "cargo update -p sp-io"

This reverts commit c321b570cef806934acfb7e1a18f543a681b9927.

* cargo update -p sp-io

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* update lockfile for {"substrate"}

* remove `useless_attribute`

* Remove rococo-native cfg

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Make cumulus build

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix benchmark commands for the CI

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Make cumulus build

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Make cumulus build

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Disable new bench commands for rococo

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Make cumulus build

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
2022-04-07 22:29:16 +00:00
dependabot[bot] 7b58f85a2b Bump clap from 3.1.6 to 3.1.8 (#5240)
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.6 to 3.1.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.6...v3.1.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-07 22:06:30 +02:00
Shawn Tabrizi 4d837bac88 Custom Slots Migration for Fund Index Change (#5227)
* new migration

* use new migration in runtime
2022-04-07 10:51:37 -04:00
João Paulo Silva de Souza 8db1b341e5 create pr-custom-review.yml (#5253)
syntax in accordance to https://github.com/paritytech/pr-custom-review/tree/5814820aa0e5d35412f31dc02f9d130a8b138cae#configuration-syntax

rules in accordance to https://github.com/paritytech/pr-custom-review/blob/da1d81b9fd39705cc8b37f59235283801c818708/rules.md
2022-04-07 16:23:08 +02:00
Stephen Shelton 2433de588a Replace TransactionByteFee with LengthToFee (#5028)
* Replace TransactionByteFee with LengthToFee

* s/ConstantModifierFee/ConstantMultiplier/

* fmt

* Remove duplicate import

* fmt

* Update runtime/test-runtime/src/lib.rs

* update lockfile for {"substrate"}

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
2022-04-07 13:13:32 +00:00
dependabot[bot] cccf59d742 Bump lru from 0.7.4 to 0.7.5 (#5251)
Bumps [lru](https://github.com/jeromefroe/lru-rs) from 0.7.4 to 0.7.5.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases)
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.4...0.7.5)

---
updated-dependencies:
- dependency-name: lru
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-07 14:22:25 +02:00
Sergejs Kostjucenko be085c253d CI Fix paths to vault secrets (#5272)
* Fix paths to vault secrets

* Fix paths
2022-04-07 12:24:29 +03:00
Niklas Adolfsson e682424034 companion for #11173 (#5264)
* staking miner: update jsonrpsee v0.10.1

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-04-07 10:01:31 +02:00
Amar Singh 1297d77c51 Add epoch index to well known keys (#5259)
* add epoch index to well known keys

* fmt
2022-04-06 18:22:07 +02:00
dependabot[bot] a6120e4655 Bump femme from 2.1.1 to 2.2.0 (#5260)
Bumps [femme](https://github.com/lrlna/femme) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/lrlna/femme/releases)
- [Commits](https://github.com/lrlna/femme/compare/2.1.1...2.2.0)

---
updated-dependencies:
- dependency-name: femme
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-06 11:59:10 +02:00
Mara Robin B d50b5bdb06 rococo: update weights (#5242) 2022-04-06 10:15:11 +02:00
Robert Klotzner 4ca9691dcf Better metrics for availability-recovery (#5249)
* Better metrics.

- Fix time metric
- Add counters

* Typo

* Better docs.
2022-04-04 14:31:08 +00:00
Pierre Besson fc041426db Update Rococo chainspec to v2_1 (#5113)
* update rococo sudo in chain specification

* update rococo chainspec JSON to v2.1

* Update node/service/src/chain_spec.rs

Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
2022-04-04 13:34:52 +00:00
Javier Viola cd4f9abf6f bump zombienet version (#5225)
* bump zombienet version

* update path for zombienet scripts

* bump version and move from  extra_args to args

Co-authored-by: Andrei Sandu <andrei-mihail@parity.io>
2022-04-04 12:07:50 +00:00
Nikos Kontakis eafbb813dd Add ws bootnodes in polkadot, kusama, rococo and westend chainspecs (#5204)
* Add ws in polkadot, kusama, rococo and westend chainspecs

* run update

* revert beefy-gadget source

Co-authored-by: Bastian Köcher <info@kchr.de>
2022-04-04 13:55:27 +02:00
dependabot[bot] f04e6065dd Bump lru from 0.7.3 to 0.7.4 (#5244)
Bumps [lru](https://github.com/jeromefroe/lru-rs) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases)
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.3...0.7.4)

---
updated-dependencies:
- dependency-name: lru
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 13:55:11 +02:00
Qinxuan Chen 74078d8eb9 Comanion for substrate#11136 (#5218)
* Comanion for substrate#11136

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* revert changes in bridge

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2022-04-04 11:13:34 +02:00
cheme 8f784d592a Trie State migration rpc (#5180)
* update

* unsafe

* switch remote

* update rpc usage

* update cargo.lock

* lock from master

* updated lock
2022-04-04 09:33:35 +02:00
dependabot[bot] 521f97ae48 Bump kvdb-rocksdb from 0.15.1 to 0.15.2 (#5166)
Bumps [kvdb-rocksdb](https://github.com/paritytech/parity-common) from 0.15.1 to 0.15.2.
- [Release notes](https://github.com/paritytech/parity-common/releases)
- [Commits](https://github.com/paritytech/parity-common/compare/kvdb-rocksdb-v0.15.1...kvdb-rocksdb-v0.15.2)

---
updated-dependencies:
- dependency-name: kvdb-rocksdb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-03 21:49:02 +02:00
dependabot[bot] 1c37ee372e Bump indexmap from 1.8.0 to 1.8.1 (#5222)
Bumps [indexmap](https://github.com/bluss/indexmap) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/bluss/indexmap/releases)
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/1.8.0...1.8.1)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-03 21:30:36 +02:00
dependabot[bot] 40248ea282 Bump paste from 1.0.6 to 1.0.7 (#5215)
Bumps [paste](https://github.com/dtolnay/paste) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dtolnay/paste/releases)
- [Commits](https://github.com/dtolnay/paste/compare/1.0.6...1.0.7)

---
updated-dependencies:
- dependency-name: paste
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-03 20:54:01 +02:00
dependabot[bot] 76e3256585 Bump quote from 1.0.16 to 1.0.17 (#5214)
Bumps [quote](https://github.com/dtolnay/quote) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.16...1.0.17)

---
updated-dependencies:
- dependency-name: quote
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-03 20:40:01 +02:00
Mara Robin B 11c897eaca [ci] add update_rococo_weights job (#5239) 2022-04-02 22:57:00 +02:00
dependabot[bot] dff1fa7cdb Bump tracing-subscriber from 0.3.9 to 0.3.10 (#5238)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.9 to 0.3.10.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.9...tracing-subscriber-0.3.10)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 22:43:16 +02:00
dependabot[bot] 601a18290a Bump syn from 1.0.89 to 1.0.90 (#5221)
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.89 to 1.0.90.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.89...1.0.90)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 19:02:30 +00:00
Shawn Tabrizi 9fd79f9dd8 Companion for #10808 (Transactional Layer Limit) (#5232)
* use unchecked for backwards compat

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-04-02 18:05:03 +00:00
Mara Robin B ac56959078 [ci] scripted update of block- and extrinsic base weights (#5216) 2022-04-02 16:46:55 +02:00
Andrei Sandu 784ca5bf0f bump metric timeout (#5231)
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
2022-04-01 16:28:43 +00:00
Oliver Tale-Yazdi c8cdf9fc03 Integrate benchmark-overhead command (#5137)
* Integrate benchmark-overhead command

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Beauty fix test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Spellcheck on

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove constants:: module

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update block+extrinsic weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Revert "Update block+extrinsic weights"

This reverts commit d77bf977f6bca0b1ded35daa2fd54b97e18a67db.

* Revert "Remove constants:: module"

This reverts commit 2d3bcd0212c438f6b96755900a01762592d90265.

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* CI

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: parity-processbot <>
2022-04-01 10:34:40 +00:00
Web3 Smith 30dcadacdc Refactor beefy-mmr implementation (#4719)
* update pallet-beefy-mmr implementation

* minor fix

* fix build

* use H256 for rococo leaf extra

* update lockfile for {"substrate"}

* fix fmt

Co-authored-by: acatangiu <adrian@parity.io>
2022-04-01 13:09:45 +03:00
Oliver Tale-Yazdi bd33013a4b Integrate benchmark-block (#5224)
* Integrate benchmark-block

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* fmt

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add dep

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* fmt

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: parity-processbot <>
2022-04-01 10:38:32 +02:00
Oliver Tale-Yazdi 41d8c97113 CI: Require kusama benchmark to pass (#5228)
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-04-01 09:46:27 +02:00
asynchronous rob 52912ab392 fix approval-voting force-approve (#5229) 2022-03-31 21:12:38 +00:00
Kian Paimani 5900c50c7b Companion for bags-list iter-from interface (#5209)
* companion for bags-list iter-from

* remove unused

* update lockfile for {"substrate"}

* fix CI

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-03-31 17:28:50 +00:00
Oliver Tale-Yazdi b04a2d2b54 Update storage weights (#5220)
* Update storage weights

These weights were generated on a recent Polkadot chain snapshot
at Block 9643856 from 2022-03-29 17:50:30 (+UTC) using RocksDB.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update ParityDb weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-03-31 12:57:43 -04:00
Shawn Tabrizi 37b8bc4886 Migrate Slot Depositors in Crowdloan Migration (#5173)
* Also migrate lease depositors

* bump spec version

* Update runtime/common/src/crowdloan/migration.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
2022-03-30 18:41:08 +00:00