Conversation
|
if correct, it should be fixed in polkadot runtimes as well. |
Already on it. |
|
Then this is making a regression in all weights, right? |
I don't think so. It was only for one specific dispatchable in pallet_contracts which had a lot of |
phew, I thought we had artificially f-ed the weights in runtime v30, first version to have this feature. |
|
Yeah this works, but this also disables the logging for the node without benchmarking |
|
|
As I said in the polkadot pr, cargo and feature resolution is broken, since always |
|
Yeah you are right. Just verified that behaviour. Rolling back the PR. I guess this is the best we can do right now. |
This reverts commit f060321.
|
The failing test parses logging output of the node. Because all tests are run with the So automatically activating this feature on benchmarking does not seem to be a viable path, right? |
runtime-benchmarks
shawntabrizi
left a comment
There was a problem hiding this comment.
Not a fan of the new feature flag.
Should not possible that someone can compile their node for benchmarking and forget to disable logging such that their results are wrong.
Basti says:
I think we can optimize this by introducing a new host function that returns the max log level. Than we could prevent so call into the host for every log line, which is very likely rejected on the host
|
Not sure how to progress without removing those tests then. |
|
#8655 this should fix it. |
|
Superseded by #8655 |
Fixes #8611
Same for Polkadot: paritytech/polkadot#2901
bench-bot: paritytech/bench-bot#14
Currently, there is no way to compile out logging instructions from the runtime without modifying
Cargo.tomlfiles. This caused the situation in the linked issue.In order to prevent such problems in the future we allow disabling logging on the command line by forwarding the feature from the
node-clito the runtime.This means in order to run benchmarks properly the following command line needs to be supplied:
Please note that we cannot disable logging it automatically when benchmarking because our CI test supplies the
runtime-benchmarkfeature in order to test the benchmarking code while at the same time relying on logging output.