8000 remove force_* features and move runtime selection to runtime configuration by nagisa · Pull Request #9539 · near/nearcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

remove force_* features and move runtime selection to runtime configuration #9539

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

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

nagisa
Copy link
Collaborator
@nagisa nagisa commented Sep 19, 2023

There are a couple of reasons, but the most major one is that these force_* fetures make it impossible to run tools with --all-features enabled on macOS (where use of wasmer0 would be forced somewhat arbitrarily.)

That said, these options don't make sense, in the world of limited replayability, and with runtime configuration there is also now a fairly straightforward approach to forcing the use of a different runtime than the "default" (just chnge some yamls.)

As an upside this also forced my hand to go and fix the Config::test nonsense, a little bit, hence

Fixes #8202

and tests will now actually exercise the system in a configuration that is going to run in production most of the time! Yay!

@nagisa nagisa requested a review from a team as a code owner September 19, 2023 13:34
@nagisa nagisa requested a review from nikurt September 19, 2023 13:34
@nagisa nagisa changed the title remove force_* features and move runtime selection to runtime configu… remove force_* features and move runtime selection to runtime configuration Sep 19, 2023
@nagisa nagisa requested review from jakmeier and Ekleog-NEAR and removed request for nikurt September 19, 2023 13:35
@nagisa
Copy link
Collaborator Author
nagisa commented Sep 19, 2023

This ought to be a non functional change…

@nagisa nagisa force-pushed the nagisa/removes_force_runtime_features branch from 767331c to 9cbd9fb Compare September 20, 2023 10:22
Copy link
Contributor
@jakmeier jakmeier left a comment

Choose a reason for hiding this comment

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

I like this change!

I left many comments but most of them are for the same question: Why are we testing protocol version !0 rather than PROTOCOL_VERSION? I think when running tests without the nightly feature, we don't want the nightly version runtime configs to apply, right?

@nagisa nagisa added this pull request to the merge queue Sep 20, 2023
@nagisa nagisa removed this pull request from the merge queue due to a manual request Sep 20, 2023
@nagisa nagisa force-pushed the nagisa/removes_force_runtime_features branch from ef2c776 to 497baf7 Compare September 20, 2023 15:07
@nagisa nagisa enabled auto-merge September 20, 2023 15:38
…ration

There are a couple of reasons, but the most major one is that these
`force_*` fetures make it impossible to run tools with `--all-features`
enabled on macOS (where use of wasmer0 would be forced somewhat
arbitrarily.)

That said, these options don't make sense, in the world of limited
replayability, and with runtime configuration there is also now a fairly
straightforward approach to forcing the use of a differ
8000
ent runtime than
the "default" (just chnge some yamls.)

As an upside this also forced my hand to go and fix the Config::test
nonsense, a little bit, hence

Fixes #8202

and tests will now actually exercise the system in a configuration that
is going to run in production most of the time! Yay!
@nagisa nagisa force-pushed the nagisa/removes_force_runtime_features branch from 3c5bb2d to a7c9ad1 Compare September 21, 2023 07:14
@nagisa nagisa added this pull request to the merge queue Sep 21, 2023
Merged via the queue into master with commit 20ee8a1 Sep 21, 2023
@nagisa nagisa deleted the nagisa/removes_force_runtime_features branch September 21, 2023 07:50
nikurt pushed a commit that referenced this pull request Sep 22, 2023
…ration (#9539)

* remove force_* features and move runtime selection to runtime configuration

There are a couple of reasons, but the most major one is that these
`force_*` fetures make it impossible to run tools with `--all-features`
enabled on macOS (where use of wasmer0 would be forced somewhat
arbitrarily.)

That said, these options don't make sense, in the world of limited
replayability, and with runtime configuration there is also now a fairly
straightforward approach to forcing the use of a different runtime than
the "default" (just chnge some yamls.)

As an upside this also forced my hand to go and fix the Config::test
nonsense, a little bit, hence

Fixes #8202

and tests will now actually exercise the system in a configuration that
is going to run in production most of the time! Yay!

* Replace !0 with PROTOCOL_VERSION

* Remove the wasmtime feature from runtime-params-estimator

* Fix test expectations
nikurt pushed a commit that referenced this pull request Sep 26, 2023
…ration (#9539)

* remove force_* features and move runtime selection to runtime con
8000
figuration

There are a couple of reasons, but the most major one is that these
`force_*` fetures make it impossible to run tools with `--all-features`
enabled on macOS (where use of wasmer0 would be forced somewhat
arbitrarily.)

That said, these options don't make sense, in the world of limited
replayability, and with runtime configuration there is also now a fairly
straightforward approach to forcing the use of a different runtime than
the "default" (just chnge some yamls.)

As an upside this also forced my hand to go and fix the Config::test
nonsense, a little bit, hence

Fixes #8202

and tests will now actually exercise the system in a configuration that
is going to run in production most of the time! Yay!

* Replace !0 with PROTOCOL_VERSION

* Remove the wasmtime feature from runtime-params-estimator

* Fix test expectations
nikurt pushed a commit that referenced this pull request Sep 26, 2023
…ration (#9539)

* remove force_* features and move runtime selection to runtime configuration

There are a couple of reasons, but the most major one is that these
`force_*` fetures make it impossible to run tools with `--all-features`
enabled on macOS (where use of wasmer0 would be forced somewhat
arbitrarily.)

That said, these options don't make sense, in the world of limited
replayability, and with runtime configuration there is also now a fairly
straightforward approach to forcing the use of a different runtime than
the "default" (just chnge some yamls.)

As an upside this also forced my hand to go and fix the Config::test
nonsense, a little bit, hence

Fixes #8202

and tests will now actually exercise the system in a configuration that
is going to run in production most of the time! Yay!

* Replace !0 with PROTOCOL_VERSION

* Remove the wasmtime feature from runtime-params-estimator

* Fix test expectations
nikurt pushed a commit that referenced this pull request Oct 2, 2023
…ration (#9539)

* remove force_* features and move runtime selection to runtime configuration

There are a couple of reasons, but the most major one is that these
`force_*` fetures make it impossible to run tools with `--all-features`
enabled on macOS (where use of wasmer0 would be forced somewhat
arbitrarily.)

That said, these options don't make sense, in the world of limited
replayability, and with runtime configuration there is also now a fairly
straightforward approach to forcing the use of a different runtime than
the "default" (just chnge some yamls.)

As an upside this also forced my hand to go and fix the Config::test
nonsense, a little bit, hence

Fixes #8202

and tests will now actually exercise the system in a configuration that
is going to run in production most of the time! Yay!

* Replace !0 with PROTOCOL_VERSION

* Remove the wasmtime feature from runtime-params-estimator

* Fix test expectations
nikurt pushed a commit that referenced this pull request Oct 2, 2023
…ration (#9539)

* remove force_* features and move runtime selection to runtime configuration

There are a couple of reasons, but the most major one is that these
`force_*` fetures make it impossible to run tools with `--all-features`
enabled on macOS (where use of wasmer0 would be forced somewhat
arbitrarily.)

That said, these options don't make sense, in the world of limited
replayability, and with runtime configuration there is also now a fairly
straightforward approach to forcing the use of a different runtime than
the "default" (just chnge some yamls.)

As an upside this also forced my hand to go and fix the Config::test
nonsense, a little bit, hence

Fixes #8202

and tests will now actually exercise the system in a configuration that
is going to run in production most of the time! Yay!

* Replace !0 with PROTOCOL_VERSION

* Remove the wasmtime feature from runtime-params-estimator

* Fix test expectations
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.

Tech Debt: get rid of VMConfig::test()
2 participants
0