Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1691 consider pvf executor params #2218

Merged
merged 9 commits into from
Sep 24, 2024
Merged

Conversation

ErakhtinB
Copy link
Contributor

@ErakhtinB ErakhtinB commented Sep 19, 2024

Referenced issues

Closes #1691

Description of the Change

PVF execution timeout is taken from the parameters of runtime, not the config

Possible Drawbacks

Checklist Before Opening a PR

Before you open a Pull Request (PR), please make sure you've completed the following steps and confirm by answering 'Yes' to each item:

  1. Code is formatted: Have you run your code through clang-format to ensure it adheres to the project's coding standards? [Yes|No]
  2. Code is documented: Have you added comments and documentation to your code according to the guidelines in the project's contributing guidelines? [Yes|No]
  3. Self-review: Have you reviewed your own code to ensure it is free of typos, syntax errors, logical errors, and unresolved TODOs or FIXME without linking to an issue? [Yes|No]
  4. Zombienet Tests: Have you ensured that the zombienet tests are passing? Zombienet is a network simulation and testing tool used in this project. It's important to ensure that these tests pass to maintain the stability and reliability of the project. [Yes|No]

@ErakhtinB ErakhtinB linked an issue Sep 19, 2024 that may be closed by this pull request
core/runtime/runtime_context.hpp Outdated Show resolved Hide resolved
core/parachain/pvf/workers.hpp Outdated Show resolved Hide resolved
@@ -3,6 +3,7 @@ timeout = 1000

[relaychain]
chain = "rococo-local"
chain_spec_path = "./rococo-local-raw.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove chain_spec_path and use [relaychain.genesis.runtimeGenesis.patch].

Or create new zombienet test with chain_spec_path json without --raw flag.

Why use zombie test for this feature?
May use unit test for sessionParams instead, or no test at all.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep this test with rococo-local

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@kamilsa kamilsa left a comment

Choose a reason for hiding this comment

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

We will need to add processing of different timeouts for approvals and backing executions. Either in this PR or in the separate one

core/parachain/pvf/session_params.hpp Show resolved Hide resolved
@@ -3,6 +3,7 @@ timeout = 1000

[relaychain]
chain = "rococo-local"
chain_spec_path = "./rococo-local-raw.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep this test with rococo-local

@@ -119,7 +119,6 @@ namespace kagome::parachain {
scheduler_{std::move(scheduler)},
exe_{exePath()},
max_{app_config.pvfMaxWorkers()},
timeout_{app_config.pvfSubprocessDeadline()},
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are not using pvf subprocess deadline anymore it should be removed from CLI as well (app_configuration_impl)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ErakhtinB ErakhtinB force-pushed the 1691-consider-pvf-executor-params branch from ed63178 to 457b22f Compare September 24, 2024 04:37
Copy link
Contributor

@kamilsa kamilsa left a comment

Choose a reason for hiding this comment

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

We probably don't need to add a new chain spec if it is not used anywhere

@ErakhtinB ErakhtinB merged commit e153bdc into master Sep 24, 2024
13 checks passed
@ErakhtinB ErakhtinB deleted the 1691-consider-pvf-executor-params branch September 24, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider PVF executor params
4 participants