-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
If no db option was given benchmarks shall use temporary database. Otherwise the test can use locally stored database which maybe out-of-date causing test to fail.
This should happen automatically depending on whether a
In which cases did you observe this? |
self, cmd, cmd.base_path() | ||
}; | ||
|
||
match inner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comment on why we are doing this would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
To reproduce the issue (assuming no local database stored): Then switch to 00fed3b, and run tests again. The error message was:
The single command line to reproduce the issue: Also removal of |
|
But then there is an issue with it not using a temporary directory for a |
The parameters are modifed to And later executed w/o |
Okay that is a surprise for me. I was under the impression all
Yea that test checks that the command succeeds only with |
I think substrate/client/cli/src/params/shared_params.rs Lines 36 to 39 in 23bb5a6
From what I see the |
Yes, sort of. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sort of. --dev had always this same behavior. The assumption that there is only one dev chain. One of the fuckups of the cli. Maybe we should just get entirely rid of it.
Yea either removing the -dev
runtimes or the --dev
flag would be nice.
Not sure if doable, but how about extending Chain name given to |
Are |
I may be wrong but |
bot merge |
Waiting for commit status. |
* master: [Fix] parameter_types! dead code errors (#12340) [Feature] Sequential migration execution for try-runtime (#12319) bench: Use `_` instead of `::` in auto-generated file names (#12332) Fast Unstake Pallet (#12129) Rename anonymous to pure proxy (#12283) Migrate remaining old decl_* macros to the new pallet attribute macros (#12271) pallet-utility: Disallow none origin (#12321) Make automatic storage deposits resistant against changing deposit prices (#12083) Format templates and fix `--steps` default value (#12286) Bump `wasmtime` to 1.0.0 (#12317) Introduce 'intermediate_insert' method to hide implementation details (#12215) Bound staking storage items (#12230) Use `array-bytes` for All Array/Bytes/Hex Operations (#12190) BREAKING: Rename Origin (#12258) Use temporary db for benchmarking (#12254) rpc: Implement `chainSpec` RPC API (#12261) Import target block body during warp sync (#12300) Proper naming wrt expectations (#12311) [ci] Revert cancel-pipeline job (#12309)
* Use temporary db for benchmarking If no db option was given benchmarks shall use temporary database. Otherwise the test can use locally stored database which maybe out-of-date causing test to fail. * nicer syntax * explanatory comment added * Update utils/frame/benchmarking-cli/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]>
If no db option was given benchmarks shall use temporary database. Otherwise the test can use locally stored database which maybe out-of-date causing test to fail.