Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Move PVF timeouts to executor environment parameters #6823

Merged
merged 12 commits into from
Mar 8, 2023

Conversation

s0me0ne-unkn0wn
Copy link
Contributor

Closes #6793

PVF execution and preparation timeouts are stored in the executor environment parameters and are applied per session.

@s0me0ne-unkn0wn s0me0ne-unkn0wn added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. T4-parachains_engineering This PR/Issue is related to Parachains performance, stability, maintenance. labels Mar 5, 2023
@mrcnski mrcnski self-requested a review March 5, 2023 18:53
Copy link
Contributor

@mrcnski mrcnski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like this change! I mostly left a bunch of nits and a few questions.

primitives/src/vstaging/executor_params.rs Outdated Show resolved Hide resolved
primitives/src/vstaging/executor_params.rs Outdated Show resolved Hide resolved
primitives/src/v2/mod.rs Outdated Show resolved Hide resolved
node/core/pvf/src/pvf.rs Outdated Show resolved Hide resolved
node/core/pvf/src/pvf.rs Outdated Show resolved Hide resolved
node/core/pvf/src/prepare/queue.rs Outdated Show resolved Hide resolved
// Start a non-precheck preparation for this one.
test.send_queue(ToQueue::Enqueue {
priority,
pvf_with_params: PvfWithExecutorParams::from_discriminator(3),
preparation_timeout: LENIENT_PREPARATION_TIMEOUT,
pvf: PvfExhaustive::from_discriminator_and_timeout(3, TEST_PREPARATION_TIMEOUT * 3),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use TEST_LENIENT_PREPARATION_TIMEOUT instead? (Below too.)

node/core/pvf/src/execute/queue.rs Show resolved Hide resolved
node/core/pvf/src/host.rs Outdated Show resolved Hide resolved
primitives/src/v2/mod.rs Outdated Show resolved Hide resolved
s0me0ne-unkn0wn and others added 8 commits March 6, 2023 14:03
Co-authored-by: Marcin S. <[email protected]>
* Changing dispute db errors to fatal

* fmt
…ordinator` (#6775)

* Additional tracing in `provisioner`, `vote_selection`

* Add `fetched_onchain_disputes` metric to provisioner

* Some tracelines in dispute-coordinator

TODO: cherry pick this in the initial branch!!!

* Remove spammy logs

* Remove some trace lines
@s0me0ne-unkn0wn s0me0ne-unkn0wn added the A0-please_review Pull request needs code review. label Mar 6, 2023
Copy link
Contributor

@mrcnski mrcnski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!!

Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LVGTM

Copy link
Member

@eskimor eskimor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, great work @s0me0ne-unkn0wn !

primitives/src/vstaging/executor_params.rs Outdated Show resolved Hide resolved
@s0me0ne-unkn0wn
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 0122e14 into master Mar 8, 2023
@paritytech-processbot paritytech-processbot bot deleted the s0me0ne/executor-params-timeouts branch March 8, 2023 22:43
ordian added a commit that referenced this pull request Mar 16, 2023
* master: (50 commits)
  Issue 4393: Correcting Unnecessary Use of Arc (#6882)
  Companion for #13287  (#6655)
  timestamp ci job logs (#6890)
  Release parachain host API v4 (#6885)
  polkadot companion: #13128 (Pools commission) (#6264)
  companion for #13555 (#6842)
  Bump libgit2-sys from 0.14.1+1.5.0 to 0.14.2+1.5.1 (#6600)
  Bump bumpalo from 3.8.0 to 3.12.0 (#6599)
  Bump git2 from 0.16.0 to 0.16.1 (#6601)
  Council as SpendOrigin (#6877)
  PVF: Document that preparation cannot lead to disputes (#6873)
  Sync versions with current release (0.9.39) (#6875)
  Companion for paritytech/substrate#13592 (#6869)
  Update orchestra to the recent version (#6854)
  Delete unused Cargo.lock (#6870)
  Remove use of Store trait (#6835)
  Companion for Substrate #13564 (#6845)
  Adding Dispute Participation Metrics (#6838)
  Update `substrate` to 48e7cb1 (#6851)
  Move PVF timeouts to executor environment parameters (#6823)
  ...
ordian added a commit that referenced this pull request Mar 21, 2023
…slashing-client

* ao-past-session-slashing-runtime: (23 commits)
  Issue 4393: Correcting Unnecessary Use of Arc (#6882)
  Companion for #13287  (#6655)
  timestamp ci job logs (#6890)
  Release parachain host API v4 (#6885)
  polkadot companion: #13128 (Pools commission) (#6264)
  companion for #13555 (#6842)
  Bump libgit2-sys from 0.14.1+1.5.0 to 0.14.2+1.5.1 (#6600)
  Bump bumpalo from 3.8.0 to 3.12.0 (#6599)
  Bump git2 from 0.16.0 to 0.16.1 (#6601)
  Council as SpendOrigin (#6877)
  PVF: Document that preparation cannot lead to disputes (#6873)
  Sync versions with current release (0.9.39) (#6875)
  Companion for paritytech/substrate#13592 (#6869)
  Update orchestra to the recent version (#6854)
  Delete unused Cargo.lock (#6870)
  Remove use of Store trait (#6835)
  Companion for Substrate #13564 (#6845)
  Adding Dispute Participation Metrics (#6838)
  Update `substrate` to 48e7cb1 (#6851)
  Move PVF timeouts to executor environment parameters (#6823)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. T4-parachains_engineering This PR/Issue is related to Parachains performance, stability, maintenance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include PVF execution and preparation timeouts into executor environment parameters
7 participants