Kian Paimani
2fafb9546e
Reduce the execution time of some tests ( #10377 )
...
* Reduce the execution time of some tests
* Fix
* Fix build
* fmt
2021-11-28 12:47:33 +00:00
Bastian Köcher
a093ee03c9
Update Substrate & Polkadot ( #803 )
2021-11-28 07:43:50 +01:00
dependabot[bot]
659beec4c9
Bump syn from 1.0.81 to 1.0.82 ( #4368 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.81...1.0.82 )
---
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>
2021-11-27 23:03:07 +01:00
dependabot[bot]
c839268dbe
Bump serde_json from 1.0.71 to 1.0.72 ( #4366 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.71...v1.0.72 )
---
updated-dependencies:
- dependency-name: serde_json
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>
2021-11-27 22:52:07 +01:00
Sergei Shulepov
7c49545315
Fix typo: ambigious -> ambiguous ( #4380 )
...
* Do not log PVF prunning every hour
This lowers the level of the PVF pruning.
Closes https://github.com/paritytech/polkadot/issues/4361
* Fix typo: ambigious -> ambiguous
The correct spelling is ambiguous
([dictionary](https://dictionary.cambridge.org/dictionary/english/ambiguous ))
2021-11-27 10:14:00 +01:00
Sergei Shulepov
f6b4215100
Do not log PVF prunning every hour ( #4372 )
...
This lowers the level of the PVF pruning.
Closes https://github.com/paritytech/polkadot/issues/4361
2021-11-26 16:41:58 +01:00
Sergei Shulepov
bce0e5ac7f
Impose new restrictions on paras init and cleanup ( #4360 )
...
* Impose new restrictions on paras init and cleanup
For upcoming PVF pre-checking feature we will need to impose a couple of
new restrictions for:
- `schedule_para_initialize`.
- `schedule_para_cleanup`.
Specifically, for the former we do not want to allow registration of
wasm blob that is empty, i.e. 0 bytes. While that currently already
does not make a lot of sense, it allows us to simplify the PVF
pre-checking logic: if this PR is deployed before the following changes
for PVF prechecking then we can be sure that no paras onboarding have to
have to go through the PVF pre-checking. In case, we deploy it
altogether this property will allow us to distingush paras that came in
before PVF pre-checking.
For `schedule_para_cleanup` we do not want to allow offboarding of paras
that are undergoing the upgrade process. While this is not a harsh
restriction this change allows us to avoid making the PVF prechecking
more complicated than it has to be.
* Add a test for schedule_para_initialize
* Link to `ParaLifecycle::is_stable` in docs.
* `schedule_para_{init,cleanup}` docs
Now they link to their original declarations in the pallet for more
details.
2021-11-26 12:53:23 +01:00
sandreim
e4e22f405d
Fix Provisioner dispute metrics naming ( #4374 )
...
* update dispute metric names
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2021-11-26 11:31:22 +01:00
Keith Yeung
1fed3540ba
Update W3F URL links ( #10374 )
2021-11-26 08:58:00 +00:00
Keith Yeung
bbde75e8eb
Update W3F URL links ( #4376 )
2021-11-26 08:49:51 +00:00
dharjeezy
e0c47c48b2
remove base weight annotations ( #10373 )
...
* remove base weight annotations
* Update frame/scheduler/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Damilare <dakinlose@teamapt.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-11-26 04:38:21 +00:00
Andreas Doerr
f12e22a62d
BEEFY add tests for rounds (#10328 )
...
* new_rounds()
* WIP
* test add_vote()
* test drop()
* learn to spell
* go get some coffee
* cargo fmt
* lump everythings together again
2021-11-25 11:26:10 +01:00
Shawn Tabrizi
a33b7c2e36
REAL fix for min-square for --steps=1 --repeats=1 ( #10323 ) ( #10369 )
...
* Revert "frame-benchmarking: Fix `min-square` for `--steps=1` (#10323 )"
This reverts commit 2d0e858b81 .
* actual fix
2021-11-25 11:24:45 +01:00
Alexander Popiak
e23b384763
Add Statemine as parachain 1000 to rococo trusted teleporters ( #4312 )
...
* add Statemine as parachain 1000 to rococo trusted teleporters
* remove Rockmine/parachain 1001 from Rococo runtime
2021-11-25 10:25:59 +01:00
Alexander Samusev
2744faf6f0
[ci] Add ssh token for publishing gh-pages ( #4347 )
...
* [ci] Added ssh token for publishing gh-pages
* returned github_token
* fix ssh commands for publish-rustdoc
* fix ssh command for publish-docs
* Fix publish-rustdoc, remove clear /tmp
2021-11-25 10:18:38 +01:00
Roman
c5ae5190b2
Bump libp2p to 0.40.0 ( #10035 )
...
* Bump libp2p to 0.40.0-rc.1
* Fix PingFailure import
* Reduce the number of compilation errors (this is a FIXME commit)
* Bump libp2p to 0.40.0-rc.2
* Fix sc-network::Behaviour to inject events into fields
* Fix some NetworkBehaviourAction types
* More fixes
* More fixes
* More fixes
* Fix DiscoveryBehaviour
* Fix PeerInfoBehaviour
* Fix RequestResponsesBehaviour
* Fix RequestResponsesBehaviour
* Fix Notifications
* Fix NetworkWorker
* Fix Behaviour
* Please borrowchk
* Please borrowchk
* Please borrowchk
* Fix fmt
* Cover all cases in matches
* Fix some clippy warnings
* Fix into_peer_id -> to_peer_id
* Fix some warnings
* Fix some inject_dial_failure FIXMEs
* Fix DiscoveryBehaviour::inject_dial_failure
* Fix RequestResponsesBehaviour::inject_dial_failure
* Fix the order of inject_connection_closed PeerInfoBehaviour events
* Make KademliaEvent with filtering unreachable
* Fix Notifications::inject_dial_failure
* Use concurrent_dial_errors in NetworkWorker
* Remove commented-out RequestResponsesBehaviour::inject_addr_reach_failure
* Fix tests
* Dont report new PendingConnectionError and DialError variants to metrics
* Bump libp2p to 0.40.0
* Add fn inject_listen_failure and inject_address_change
* Review fixes
2021-11-25 08:33:33 +00:00
Pierre Krieger
5e2b93c2ea
Don't send ForceClose repeatedly in send_sync_notification ( #10348 )
2021-11-25 08:30:07 +00:00
Bastian Köcher
d94027edb4
Enable wasmtime for aarch64 as well ( #10367 )
2021-11-24 20:46:28 +01:00
Alexander Theißen
6a8c22aafd
Stabilize "seal1" seal_call ( #10366 )
2021-11-24 17:20:55 +00:00
Chevdor
0e48d6c504
CI: Release start ( #788 )
...
* Initial version
* Fix branch pattern
* Fix template
* Update .github/ISSUE_TEMPLATE/release.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update .github/ISSUE_TEMPLATE/release.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Rebase master and fmt
* Swap out Polkadot JS section for integration tests + remove tags
* remove tags
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-11-24 18:15:43 +01:00
Robert Habermeier
093c55cf00
add disputes to Kusama runtime ( #4356 )
...
* add disputes to Kusama runtime
* Update DisputesHandler
* fmt
* add the benchmarks
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::disputes --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_disputes.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Bot <admin@parity.io >
2021-11-24 17:33:44 +01:00
sandreim
0912d6a95e
Fix spellcheck ( #4363 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2021-11-24 16:15:04 +01:00
Gavin Wood
dcd65eabda
Bump ( #792 )
2021-11-24 16:14:04 +01:00
Alexander Samusev
48b03c3732
[ci] Fix publish-rustdoc ( #10364 )
2021-11-24 16:00:03 +01:00
sandreim
66aed0d0a4
fix provisioner metric docs ( #4359 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2021-11-24 15:12:08 +01:00
Bernhard Schuster
10961815cb
add additional assurances to create_inherent ( #4349 )
...
* minor: move checks into separate fn
* add additional validity checks
* simplify shuffling
* Closes potential OOB weight
* improve docs
* fooo
* remove obsolete comment
* move filtering into the rollback-transaction
Technically this is not necessary but avoids future footguns.
* move check up and avoid duplicate checks
* refactor: make sure backed candidates are sane, even more
* doc wording
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* refactor: avoid const generics for sake of wasm size
`true` -> `FullCheck::Skip`, `false` -> `FullCheck::Yes`.
* chore: unify `CandidateCheckContext` instance names
* refactor: introduce `IndexedRetain` for `Vec<T>`
* chore: make tests prefix free
* doc: re-introduce removed comment
* refactor: remove another const generic to save some wasm size
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2021-11-24 14:11:06 +00:00
Alexander Popiak
3675d87f51
derive Debug for CrateVersion and StorageVersion ( #10355 )
2021-11-24 13:39:11 +00:00
Sergei Shulepov
48f6c17e77
OCD: Remove ,) in PVF ( #4362 )
2021-11-24 14:27:30 +01:00
Gavin Wood
e8669aeff8
Fix use of weight limit errors ( #791 )
2021-11-24 13:26:45 +01:00
Gavin Wood
c699ca9c7b
Fix use of weight limit errors ( #4358 )
2021-11-24 13:26:33 +01:00
Vladimir Istyufeev
bf1b93c9bd
Introduce temporary GitLab & GHA benchmarking jobs ( #10311 )
...
* Introduce temporary bench job
* Add runner label
* CI: bench GHA
* CI: bench GHA
* CI: docs
* CI: more docs
* CI: run on master only
Co-authored-by: Denis P <denis.pisarev@parity.io >
2021-11-24 12:10:40 +01:00
sandreim
e08b0fb506
Add Provisioner dispute metrics ( #4352 )
...
* Metrics for InherentDataProvider
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Integrate metrics
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* more changes
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 >
* avoid naming confusion
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Move to Provisioner.
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add metric documentation
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2021-11-24 10:35:46 +00:00
Alexander Samusev
e92a7402ef
[ci] Fix publish-rustdoc job ( #10363 )
2021-11-24 10:42:44 +01:00
Bastian Köcher
485b16984f
Update Substrate & Polkadot ( #789 )
2021-11-24 09:25:53 +01:00
Xiliang Chen
f00a161384
add missing feature ( #4355 )
2021-11-24 01:16:57 +01:00
Zeke Mostov
90e1273462
Inherent filtering follow up ( #4305 )
...
* Add feature more feature gating for benchmarking + tests
* New line
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras_inherent.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras_inherent.rs
* Do not assume we use max validators per core
* Use kusama weights for rococo (hopefully temp)
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras_inherent.rs
* Add more validity votes when neccesary
* Some fixes for the last commit
* Restore westend weights
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras_inherent.rs
* Revert bad westend weights write
* Make sure to update val idx before skipping
* Fix validity vote range to max at group size'
* Temp setup for rococo
* cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras_inherent.rs --header=./file_header.txt
* Augment generated Rococo weights
* Make it compile
* Revert range for enter_backed_candidates_variable
* Delete runtime/kusama/src/weights/runtime_paras_paras_inherent.rs
Co-authored-by: Parity Bot <admin@parity.io >
2021-11-23 23:46:37 +00:00
Alexander Samusev
67cd32f736
[ci] Add ssh token for publishing gh-pages ( #10338 )
...
* [ci] Added ssh token for publishing gh-pages
* changed ssh commands for gh-pages
* return github_token back to vault secrets
* check simnet-tests-quick without vault secrets
* remove vault secrets from simnet jobs
2021-11-23 17:04:06 +01:00
Xavier Lau
f9122a870e
Support MMR Pruning ( #9700 )
...
* Use `0.3.2`
* Replace `u64` with `NodeIndex`
* Fix Typo
* Add Pruning Logic
* Fix Some Tests
* Remove Comment
* Log Only Under STD
* Return while No Element to Append
* Optimize Pruning Algorithm
* Update Doc
* Update Doc
* Zero Copy Algorithm
* Import Missing Type
* Fix Merge Mistake
* Import Missing Item
* Make `verify` Off-Chain
* `cargo fmt`
* Avoid using NodeIndex in incorrect places.
* Simplify pruning.
* Format
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2021-11-23 13:04:05 +00:00
Guillaume Thiolliere
76737891bb
remove unused file ( #10343 )
2021-11-23 10:28:58 +00:00
Guillaume Thiolliere
7ed4a7f022
fix ( #10342 )
2021-11-23 10:06:33 +00:00
Pierre Krieger
a75a8820fb
Put back consensus_engine, only accept its absence ( #10345 )
2021-11-23 10:19:05 +01:00
Bastian Köcher
2d0e858b81
frame-benchmarking: Fix min-square for --steps=1 ( #10323 )
2021-11-23 08:39:43 +00:00
Koute
e5108606eb
Fix WASM executor without instance reuse; cleanups and refactoring ( #10313 )
...
* Fix WASM executor without instance reuse; cleanups and refactoring
* Align to review comments
* Move the functions for reading/writing memory to `util.rs`
* Only `#[ignore]` the test in debug builds
* More review comments and minor extra comments
2021-11-23 06:35:19 +00:00
dependabot[bot]
a47f0243e0
Bump prost from 0.8.0 to 0.9.0 ( #10341 )
...
Bumps [prost](https://github.com/tokio-rs/prost ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Commits](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: prost
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>
2021-11-22 22:57:44 +01:00
dependabot[bot]
566d5ba9a2
Bump paste from 1.0.4 to 1.0.6 ( #10333 )
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.4 to 1.0.6.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.4...1.0.6 )
---
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>
2021-11-22 19:03:41 +00:00
Chevdor
916890ddac
Fix rococo naming ( #785 ) ( #786 )
2021-11-22 17:52:47 +01:00
Sergejs Kostjucenko
d527b60240
Fix CODEOWNERS syntax ( #783 )
2021-11-22 17:13:49 +02:00
Chevdor
4f4e17975f
Add srtool check in master and release branches ( #780 )
2021-11-22 15:39:57 +01:00
Ignacio Palacios
d85003448e
Add XCM pallet and config to Polkadot runtime ( #4313 )
...
* xcm added
* xcm pallet & config added Polkadot
* set advertise XCM version to 2 for Polkadot
* remove ChildSystemParachainAsSuperuser from Polkadot XCM config
* remove unpaid execution for system parachains
* remove unused imports
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-11-22 15:00:42 +01:00
Sergejs Kostjucenko
d34784ff68
Add entry in CODEOWNERS ( #779 )
2021-11-22 15:49:46 +02:00