Bernhard Schuster
5f622ee68c
Bypass chain-selection subsystem until disputes are enabled. ( #3676 )
...
* cleanup of rob's patch
* depend on feature disputes, both lag and query
* typo
* make it work
TODO move the fallback into selection
* option
* Update node/service/src/relay_chain_selection.rs
* remove trait implementation and fix errors
* hotfix: tests
* fmt
* remove unused trait
* make pub(crate) for test
* disable tests with disputed blocks
* Fix warnings
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2021-08-20 17:22:59 -05:00
Robert Habermeier
9a1b614c47
demote warnings due to disconnected dispute coordinator ( #3672 )
...
* demote warnings due to disconnected dispute coordinator
* cargo fmt
Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at >
2021-08-20 15:01:49 +02:00
Sergei Shulepov
ad0e42537d
Introduce metrics into PVF validation host ( #3603 )
2021-08-20 11:50:47 +02:00
dependabot[bot]
8792d0e407
Bump strum from 0.20.0 to 0.21.0 ( #3343 )
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
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-08-19 21:15:43 +02:00
dependabot[bot]
500c4d2ac7
Bump pin-project from 1.0.7 to 1.0.8 ( #3649 )
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.0.7...v1.0.8 )
---
updated-dependencies:
- dependency-name: pin-project
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-08-19 20:47:41 +02:00
Robert Klotzner
d6abe70c06
Better logs. ( #3650 )
2021-08-19 20:07:59 +02:00
Robert Klotzner
1dafa08934
Provide dummy dispute coordinator by default. ( #3661 )
...
* Provide dummy dispute coordinator by default.
* cargo fmt
2021-08-19 17:03:33 +02:00
Ashley
d88dec65fb
Companion PR for 'Make choosing an executor an explicit part of service construction' ( #9525 ) ( #3615 )
...
* Companion PR
* Update a few files
* Run cargo fmt
* Do better at renaming things
* More renamings
* More fixes
* oops
* Fix simnet problems
* fix compilation
* Update substrate
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-08-18 13:26:30 +00:00
David
9607487442
Companion PR for 'Remove substrate-in-the-browser #9541 ' ( #3652 )
...
* Remove telemetry external transport member
* Make it compile
* Remove more
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-08-17 22:54:10 +00:00
dependabot[bot]
9ecde11698
Bump libc from 0.2.98 to 0.2.99 ( #3642 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.98 to 0.2.99.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.98...0.2.99 )
---
updated-dependencies:
- dependency-name: libc
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-08-16 18:14:46 +00:00
Ashley
5b54c8cae9
Companion PR for 'Simplify NativeExecutionDispatch and remove the native_executor_instance!' (9562) ( #3643 )
...
* Companion PR
* Add test executors
* Change comment to doc comment
* Update node/test/service/src/lib.rs
* Improve comments
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-16 15:44:56 +00:00
dependabot[bot]
1c039fda48
Bump env_logger from 0.8.4 to 0.9.0 ( #3608 )
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.4 to 0.9.0.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.4...v0.9.0 )
---
updated-dependencies:
- dependency-name: env_logger
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-08-13 12:42:26 +02:00
Bernhard Schuster
ac338b6c28
collect better memory stats ( #3612 )
...
* add jemalloc memory statistics tracking
* chore: move Metronome in a separate file
* add meta flag spellcheck
* adjust metrics names
* account for new metrics in test
2021-08-13 12:40:45 +02:00
Robert Klotzner
55154a8d37
Remove request multiplexer ( #3624 )
...
* WIP: Get rid of request multiplexer.
* WIP
* Receiver for handling of incoming requests.
* Get rid of useless `Fault` abstraction.
The things the type system let us do are not worth getting abstracted in
its own type. Instead error handling is going to be merely a pattern.
* Make most things compile again.
* Port availability distribution away from request multiplexer.
* Formatting.
* Port dispute distribution over.
* Fixup statement distribution.
* Handle request directly in collator protocol.
+ Only allow fatal errors at top level.
* Use direct request channel for availability recovery.
* Finally get rid of request multiplexer
Fixes #2842 and paves the way for more back pressure possibilities.
* Fix overseer and statement distribution tests.
* Fix collator protocol and network bridge tests.
* Fix tests in availability recovery.
* Fix availability distribution tests.
* Fix dispute distribution tests.
* Add missing dependency
* Typos.
* Review remarks.
* More remarks.
2021-08-12 13:11:36 +02:00
Marek Kotewicz
276dc1981e
companion pr for substrate:auto_db ( #3590 )
...
* companion pr for substrate:auto_db
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-09 13:59:48 +00:00
Sergei Shulepov
9d6ed7ecae
Add logging to PVF and other related parts ( #3596 )
...
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-08-08 19:39:16 +02:00
dependabot[bot]
a4527cbc49
Bump thiserror from 1.0.24 to 1.0.26 ( #3592 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.24 to 1.0.26.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.24...1.0.26 )
---
updated-dependencies:
- dependency-name: thiserror
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-08-07 19:42:37 +00:00
zjb0807
d1ef456a4d
Companion for #9512 (Support test-runner to submit unsigned_extrinsic) ( #3589 )
...
* update polkadot-simnet
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-07 19:26:25 +00:00
dependabot[bot]
b59bab15f9
Bump hex-literal from 0.3.1 to 0.3.3 ( #3588 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.3.1 to 0.3.3.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.3.1...hex-literal-v0.3.3 )
---
updated-dependencies:
- dependency-name: hex-literal
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-08-07 20:57:24 +02:00
dependabot[bot]
36b390ceea
Bump hex from 0.4.2 to 0.4.3 ( #3584 )
...
Bumps [hex](https://github.com/KokaKiwi/rust-hex ) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/compare/v0.4.2...v0.4.3 )
---
updated-dependencies:
- dependency-name: hex
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-08-06 20:17:47 +02:00
dependabot[bot]
05ec3d9875
Bump lru from 0.6.5 to 0.6.6 ( #3583 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.6.5 to 0.6.6.
- [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.6.5...0.6.6 )
---
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>
2021-08-06 20:17:36 +02:00
Robert Klotzner
d86bb658a0
Follow up for #3282 ( #3571 )
...
Incorporating post merge review remarks.
2021-08-06 18:18:13 +02:00
Chevdor
789017cc76
Version bumps to 0.9.9 ( #3576 )
...
* chore: version bump to 0.9.9
* bump from 0.9.0 to 0.9.9
2021-08-06 16:39:13 +02:00
Sergei Shulepov
68c03f66f3
Mass replace ,); pattern ( #3580 )
...
This is an artifact left by rustfmt which is not dare to remove the
comma being conservative.
2021-08-05 19:53:17 +02:00
Bastian Köcher
fe5c303893
Return relay_parent as result of collation seconded signal as well ( #3577 )
...
* Return `relay_parent` as result of collation seconded signal as well
Before we only returned the seconded statement. However, to verify the
statement in a future proof way, we also need the relay parent that was
used as a context to sign the statement.
* FMT
2021-08-05 14:26:02 +00:00
Martin Pugh
49a46f78d3
Bump versions, substrate and beefy in prep for v0.9.9 ( #3567 )
...
* bump versions, substrate and beefy
* bump substrate
2021-08-05 15:12:18 +02:00
Bastian Köcher
7dc036d6d2
Substrate companion #9491 ( #3568 )
...
* Substrate companion #9491
https://github.com/paritytech/substrate/pull/9491
* update Substrate
* Fix build
Co-authored-by: parity-processbot <>
2021-08-04 17:56:16 +00:00
Lldenaurois
86f14eed07
node/approval-voting: Continue to migrate tests to subsystem tests ( #3471 )
...
* node/approval-voting: Continue to migrate tests to subsystem tests
* node/approval-voting: Continue to implement subsystem tests.
* Add more tests
* node/approval-voting: Add more tests
* node/approval-voting: Difficuly determining the proper test scenario for threshold tests
* node/approval-voting: Introduce should_trigger_assignment tests
* node/approval-voting: Finalize threshold tests
* node/approval-voting: Address Feedback and add comments
* node/approval-voting: Tidy up approval tests
* Tidy up tests
* Fix rustfmt
2021-08-04 11:49:21 -04:00
Robert Klotzner
e0b3c5cba0
Better size limits. ( #3572 )
...
* Better size limits.
* Remove reference to private repo.
* Update node/network/protocol/src/request_response/mod.rs
Fix statement response size.
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-08-04 17:00:56 +02:00
Robert Klotzner
1718ed1dcc
Fix flaky test ( #3569 )
...
Fixes #3557
2021-08-04 14:15:44 +02:00
Sergei Shulepov
1434b20613
Companion: Limit the maximum number of wasm memory pages a runtime can have ( #3449 )
...
* Add `max_memory_pages`
* update Substrate
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2021-08-02 20:05:31 +00:00
Bastian Köcher
2cfda98aca
Change pallet naming in test-runtime ( #3551 )
...
* Change pallet naming in test-runtime
This is required to make the `well_know_keys::ACTIVE_CONFIG` match the
`ActiveConfig` key.
* Use correct name
* 🤦
2021-08-02 10:54:54 +00:00
Shawn Tabrizi
ff5d56fb76
cargo +nightly fmt ( #3540 )
...
* cargo +nightly fmt
* add cargo-fmt check to ci
* update ci
* fmt
* fmt
* skip macro
* ignore bridges
2021-08-02 10:47:33 +00:00
Arkadiy Paronyan
30e3012270
Companion PR for warp sync support. ( #3382 )
...
* Update for the new GrandpaAPI
* Update substrate
* Update substrate
2021-08-02 09:59:50 +00:00
Squirrel
4c5b73097c
Companion for substrate #9319 ( #3456 )
...
* move client consensus code out of primitives
* merging crates
* import tweak
* Fixing build: ServiceFactory is a word...
* updating lock file
* Fixed typo in error message
(to bump build)
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-30 14:02:43 +00:00
ferrell-code
84ca3b2b3b
Parachains configuration.rs FrameV2 ( #3516 )
...
* migration
* genesis build correctly
* migrate runtimes
* add genesis builds
* expose GenesisBuild
* chainspec migration
* fmt
* check before insert
* Reduce visibility of storage items to crate
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-07-28 04:56:35 +00:00
Andronik Ordian
e1be821fe1
change ActiveLeaves to contain at most one activated ( #3525 )
...
* change ActiveLeaves to contain at most one activated
* fix test
2021-07-27 16:45:15 +02:00
Bernhard Schuster
6519ba987c
integrate dispute finality ( #3484 )
...
* finality_target adjustments
* fn finality_target
* partially address review comments
* fixins
* more rustic if condition
* fix tests
* fixins
* Update node/core/approval-voting/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/core/approval-voting/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* review comments part one
* rename candidates -> block_descriptions
* testing outline (incomplete, WIP)
* test foo
* split RelayChainSelection into RelayChainSelection{,WithFallback}, introduce HeaderProvider{,Provider}
* make some stuff public (revert this soon™)
* some test improvements
* slips of pens
* test fixins
* add another trait abstraction
* pending edge case tests + warnings fixes
* more test cases
* fin
* chore fmt
* fix cargo.lock
* Undo obsolete changes
* // comments
* make mod pub(crate)
* fix
* minimize static bounds
* resolve number() as before
* fmt
* post merge fix
* address some nits
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-07-26 17:54:50 +02:00
Andronik Ordian
bd9b743872
enable disputes ( #3478 )
...
* initial integration and migration code
* fix tests
* fix counting test
* assume the current version on missing file
* use SelectRelayChain
* remove duplicate metric
* Update node/service/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* remove ApprovalCheckingVotingRule
* address my concern
* never mode for StagnantCheckInterval
* REVERTME: some logs
* w00t
* it's ugly but it works
* Revert "REVERTME: some logs"
This reverts commit e210505a2e83e31c381394924500b69277bb042e.
* it's handle, not handler
* fix a few typos
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-07-26 14:46:31 +02:00
Koute
8fbd3a4f62
Do not leak active head data in statement distribution ( #3519 )
2021-07-26 13:58:24 +02:00
Lldenaurois
1858ff57fc
Dispute coordinator - Recover disputes on startup ( #3481 )
...
* node/dispute-coordinator: Introduce resume capability
This commit introduces a resume capability for the
dispute coordinator subsystem. Specifically, this will allow
to recover data for disputes for which we have no local statements.
* node/dispute-coordinator: Add resume function to TestState and modify Harness
This commit modifies the TestHarness to return a TestState. We subsequently
define a resume function on TestState that allows to interrupt the test and
test specifically for behavior on startup of the subsystem.
* node/dispute-coordinator: Implement resume functionality
This commit implements the resume functionality for the subsystem.
In addition, we will forward any DisputeParticipation::Participate
message in order to ensure that disputes for which we do not have
local statements may be recovered in due time.
* Address Feedback
* Modify to run handle_leaf on first import
* Modify missing_local_statement logic
* node/dispute-coordinator: Add simple test to ensure we adequately
handle local_statements that are not missing.
* Add missing keystore tests
2021-07-21 16:36:43 -05:00
Andreas Doerr
310aa6f321
Add wococo-local chain spec ( #3509 )
2021-07-21 22:19:26 +02:00
dependabot[bot]
1fd956079a
Bump indexmap from 1.6.1 to 1.7.0 ( #3497 )
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Commits](https://github.com/bluss/indexmap/compare/1.6.1...1.7.0 )
---
updated-dependencies:
- dependency-name: indexmap
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-07-21 10:56:14 +00:00
Xiliang Chen
88a4fd0351
Companion for substrate #9315 ( #3477 )
...
* fix
* update
2021-07-20 20:59:54 +00:00
dependabot[bot]
d3adc575a6
Bump libc from 0.2.91 to 0.2.98 ( #3496 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.91 to 0.2.98.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.91...0.2.98 )
---
updated-dependencies:
- dependency-name: libc
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-07-19 19:31:55 +00:00
dependabot[bot]
4636daa7ce
Bump async-process from 1.0.1 to 1.1.0 ( #3122 )
...
Bumps [async-process](https://github.com/smol-rs/async-process ) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/smol-rs/async-process/releases )
- [Changelog](https://github.com/smol-rs/async-process/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-process/compare/v1.0.1...v1.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-19 11:27:15 -05:00
Seun Lanlege
2c53f686f2
more verbose asserts ( #3476 )
...
Co-authored-by: CI system <>
2021-07-15 21:12:15 +01:00
Bernhard Schuster
c30774a264
overseer gen minor chore fixes ( #3479 )
2021-07-15 16:51:04 +02:00
Denis Pisarev
fc253e6e4d
WIP: CI: add spellcheck ( #3421 )
...
* CI: add spellcheck
* revert me
* CI: explicit command for spellchecker
* spellcheck: edit misspells
* CI: run spellcheck on diff
* spellcheck: edits
* spellcheck: edit misspells
* spellcheck: add rules
* spellcheck: mv configs
* spellcheck: more edits
* spellcheck: chore
* spellcheck: one more thing
* spellcheck: and another one
* spellcheck: seems like it doesn't get to an end
* spellcheck: new words after rebase
* spellcheck: new words appearing out of nowhere
* chore
* review edits
* more review edits
* more edits
* wonky behavior
* wonky behavior 2
* wonky behavior 3
* change git behavior
* spellcheck: another bunch of new edits
* spellcheck: new words are koming out of nowhere
* CI: finding the master
* CI: fetching master implicitly
* CI: undebug
* new errors
* a bunch of new edits
* and some more
* Update node/core/approval-voting/src/approval_db/v1/mod.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update xcm/xcm-executor/src/assets.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Apply suggestions from code review
Co-authored-by: Andronik Ordian <write@reusable.software >
* Suggestions from the code review
* CI: scan only changed files
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-07-14 19:22:58 +02:00
Seun Lanlege
ab9c86d5e7
Introduce test runner biolerplate ( #2609 )
...
* adds test-runner boilerplate
* revert to master
* Update node/test/runtime/Cargo.toml
Co-authored-by: Andronik Ordian <write@reusable.software >
* fix warning
* use polkadot_development_config
* remove vestigial code
* ...
* remove unused dependencies
* adds simnet binary
* adds simnet binary
* merged with remote
* dummy to check pipeline
* add 2 docker files and a build cmd
* adds logging
* atempt to use binary from build host
* fix simnet-binary
* fix docker commands
* switch branches
* ...
* update docker file
* update the dockerfile 2
* add some message in the cheatsheet
* add repo to chaches stage also
* update paths
* do only 1 stage build
* add time when build cmd started
* remove debugg commands
* polkadot-simnet-substrate-working-version-v1
* reduce size of polkadot-simnet image
* update test runner api
* update test-runner
* ...
* revert to master
* Merge branch 'master' of github.com:paritytech/polkadot into substrate-test-runner
* bump impl version
* remove unused imports, fix test
* was_binary.to_vec()
* Apply suggestions from code review
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* remove unused import
* remove unused import
* adds post upgrade test
* dry code
* revert spec_version
* update Cargo.lock
* tested and it works
* compare runtime spec version
* fix spaces, remove docker files
* replace spaces with tabs
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* revert Cargo.lock
* bump cargo.lock
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: radupopa2010 <radupopa2010@yahoo.com >
Co-authored-by: CI system <>
2021-07-13 16:45:27 +01:00