Check spawned worker version vs node version before PVF preparation (#6861)
* Check spawned worker version vs node version before PVF preparation
* Address discussions
* Propagate errors and shutdown preparation and execution pipelines properly
* Add logs; Fix execution worker checks
* Revert "Propagate errors and shutdown preparation and execution pipelines properly"
This reverts commit b96cc3160ff58db5ff001d8ca0bfea9bd4bdd0f2.
* Don't try to shut down; report the condition and exit worker
* Get rid of `VersionMismatch` preparation error
* Merge master
* Add docs; Fix tests
* Update Cargo.lock
* Kill again, but only the main node process
* Move unsafe code to a common safe function
* Fix libc dependency error on MacOS
* pvf spawning: Add some logging, add a small integration test
* Minor fixes
* Restart CI
---------
Co-authored-by:
Marcin S <marcin@realemail.net>
Showing
- polkadot/Cargo.lock 1 addition, 0 deletionspolkadot/Cargo.lock
- polkadot/cli/src/cli.rs 4 additions, 0 deletionspolkadot/cli/src/cli.rs
- polkadot/cli/src/command.rs 8 additions, 2 deletionspolkadot/cli/src/command.rs
- polkadot/node/core/pvf/Cargo.toml 4 additions, 1 deletionpolkadot/node/core/pvf/Cargo.toml
- polkadot/node/core/pvf/build.rs 19 additions, 0 deletionspolkadot/node/core/pvf/build.rs
- polkadot/node/core/pvf/src/execute/worker.rs 26 additions, 8 deletionspolkadot/node/core/pvf/src/execute/worker.rs
- polkadot/node/core/pvf/src/lib.rs 1 addition, 0 deletionspolkadot/node/core/pvf/src/lib.rs
- polkadot/node/core/pvf/src/prepare/worker.rs 24 additions, 4 deletionspolkadot/node/core/pvf/src/prepare/worker.rs
- polkadot/node/core/pvf/src/testing.rs 17 additions, 5 deletionspolkadot/node/core/pvf/src/testing.rs
- polkadot/node/core/pvf/src/worker_common.rs 41 additions, 2 deletionspolkadot/node/core/pvf/src/worker_common.rs
- polkadot/node/core/pvf/tests/it/worker_common.rs 9 additions, 0 deletionspolkadot/node/core/pvf/tests/it/worker_common.rs
- polkadot/node/malus/src/malus.rs 2 additions, 2 deletionspolkadot/node/malus/src/malus.rs
Please register or sign in to comment