PVF: re-preparing artifact on failed runtime construction (#3187)
resolve https://github.com/paritytech/polkadot-sdk/issues/3139
- [x] use a distinguishable error for `execute_artifact`
- [x] remove artifact in case of a `RuntimeConstruction` error during
the execution
- [x] augment the `validate_candidate_with_retry` of `ValidationBackend`
with the case of retriable `RuntimeConstruction` error during the
execution
- [x] update the book
(https://paritytech.github.io/polkadot-sdk/book/node/utility/pvf-host-and-workers.html#retrying-execution-requests)
- [x] add a test
- [x] run zombienet tests
---------
Co-authored-by:
s0me0ne-unkn0wn <48632512+s0me0ne-unkn0wn@users.noreply.github.com>
parent
14530269
Showing
- polkadot/node/core/candidate-validation/src/lib.rs 34 additions, 19 deletionspolkadot/node/core/candidate-validation/src/lib.rs
- polkadot/node/core/pvf/common/src/error.rs 1 addition, 0 deletionspolkadot/node/core/pvf/common/src/error.rs
- polkadot/node/core/pvf/common/src/execute.rs 15 additions, 0 deletionspolkadot/node/core/pvf/common/src/execute.rs
- polkadot/node/core/pvf/common/src/executor_interface.rs 2 additions, 2 deletionspolkadot/node/core/pvf/common/src/executor_interface.rs
- polkadot/node/core/pvf/execute-worker/src/lib.rs 8 additions, 2 deletionspolkadot/node/core/pvf/execute-worker/src/lib.rs
- polkadot/node/core/pvf/src/artifacts.rs 8 additions, 0 deletionspolkadot/node/core/pvf/src/artifacts.rs
- polkadot/node/core/pvf/src/error.rs 4 additions, 0 deletionspolkadot/node/core/pvf/src/error.rs
- polkadot/node/core/pvf/src/execute/mod.rs 1 addition, 1 deletionpolkadot/node/core/pvf/src/execute/mod.rs
- polkadot/node/core/pvf/src/execute/queue.rs 57 additions, 11 deletionspolkadot/node/core/pvf/src/execute/queue.rs
- polkadot/node/core/pvf/src/execute/worker_interface.rs 8 additions, 0 deletionspolkadot/node/core/pvf/src/execute/worker_interface.rs
- polkadot/node/core/pvf/src/host.rs 52 additions, 1 deletionpolkadot/node/core/pvf/src/host.rs
- polkadot/node/core/pvf/tests/it/main.rs 77 additions, 6 deletionspolkadot/node/core/pvf/tests/it/main.rs
- polkadot/primitives/src/v6/executor_params.rs 3 additions, 7 deletionspolkadot/primitives/src/v6/executor_params.rs
- polkadot/roadmap/implementers-guide/src/node/utility/pvf-host-and-workers.md 8 additions, 0 deletions...plementers-guide/src/node/utility/pvf-host-and-workers.md
- prdoc/pr_3187.prdoc 16 additions, 0 deletionsprdoc/pr_3187.prdoc
Please register or sign in to comment