Skip to content

stop turning on runtime-benchmarks in tests#1360

Closed
gilescope wants to merge 1 commit intomasterfrom
giles-unfeature-runtime-benchmarks-in-tests
Closed

stop turning on runtime-benchmarks in tests#1360
gilescope wants to merge 1 commit intomasterfrom
giles-unfeature-runtime-benchmarks-in-tests

Conversation

@gilescope
Copy link
Copy Markdown
Contributor

@gilescope gilescope commented Sep 2, 2023

Fixes https://github.com/paritytech/ci_cd/issues/864

The runtime-benchmarks is not just additive. As well as adding some additional useful benchmarking types, it also turns off certain functionality used in production:

#[cfg(feature = "runtime-benchmarks")]

It is safer not to have this feature enabled for our main test runs. Not enabling this feature means that the code we are testing is closer to the code that production runs.

(Associated: There are tests that only run if the runtime-benchmarks feature is turned off: #1247 - we could have peppered the tests with different assertions as to what to assert for depending on whether runtime-benchmarks was turned on or not but did not seem that maintainable)

@gilescope gilescope requested a review from alvicsam September 2, 2023 08:17
@gilescope
Copy link
Copy Markdown
Contributor Author

Given that this is changing the CI do we have to do anything special to make the CI use the CI defined in this PR rather than master @alvicsam ?

@gilescope gilescope requested a review from ggwpez September 2, 2023 08:18
@gilescope gilescope added the T10-tests This PR/Issue is related to tests. label Sep 2, 2023
@gilescope
Copy link
Copy Markdown
Contributor Author

We'll make the changes in this PR: #1335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T10-tests This PR/Issue is related to tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant