PVF preparation: do not conflate errors (#6384)
* PVF preparation: do not conflate errors + Adds some more granularity to the prepare errors. + Better distinguish whether errors occur on the host side or the worker. + Do not kill the worker if the error happened on the host side. + Do not retry preparation if the error was `Panic`. + Removes unnecessary indirection with `Selected` type. * Add missing docs, resolve TODOs * Address review comments and remove TODOs * Fix error in CI * Undo unnecessary change * Update couple of comments * Don't return error for stream shutdown * Update node/core/pvf/src/worker_common.rs
Showing
- polkadot/node/core/candidate-validation/src/lib.rs 9 additions, 8 deletionspolkadot/node/core/candidate-validation/src/lib.rs
- polkadot/node/core/candidate-validation/src/tests.rs 1 addition, 1 deletionpolkadot/node/core/candidate-validation/src/tests.rs
- polkadot/node/core/pvf/src/error.rs 48 additions, 26 deletionspolkadot/node/core/pvf/src/error.rs
- polkadot/node/core/pvf/src/host.rs 8 additions, 9 deletionspolkadot/node/core/pvf/src/host.rs
- polkadot/node/core/pvf/src/prepare/pool.rs 58 additions, 26 deletionspolkadot/node/core/pvf/src/prepare/pool.rs
- polkadot/node/core/pvf/src/prepare/queue.rs 1 addition, 1 deletionpolkadot/node/core/pvf/src/prepare/queue.rs
- polkadot/node/core/pvf/src/prepare/worker.rs 34 additions, 36 deletionspolkadot/node/core/pvf/src/prepare/worker.rs
- polkadot/node/core/pvf/src/worker_common.rs 14 additions, 1 deletionpolkadot/node/core/pvf/src/worker_common.rs
Please register or sign in to comment