-
Notifications
You must be signed in to change notification settings - Fork 38.7k
bench: Fix benchmarks filters #18013
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
Conversation
|
ACK 0dae5a5 Thanks for the fix |
|
I wonder if there might be a good place to add a really basic CI test that makes sure bench jobs can run successfully? |
|
@instagibbs There is, and all benches do run successfully. This fixes an issue where the |
|
@MarcoFalke ok well that's a suggestion :) |
|
Here is the existing check, which is run in ci: bitcoin/src/Makefile.test.include Line 594 in 94c6f2b
|
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
I get this error: Am I doing something wrong |
that seems to be unrelated to the bug I'm fixing, the regex engine here( |
0dae5a5 Fix benchmarks filters (Elichai Turkel) Pull request description: The bug was introduced in #17781 before this fix `./src/bench/bench_bitcoin -filter=*` will fail with: ``` # Benchmark, evals, iterations, total, min, max, median bench_bitcoin: bench/bench.cpp:119: static void benchmark::BenchRunner::RunAll(benchmark::Printer&, uint64_t, double, const string&, bool): Assertion `g_testing_setup == nullptr' failed. Aborted (core dumped) ``` ACKs for top commit: MarcoFalke: ACK 0dae5a5 Tree-SHA512: 43de4c7f4a5f29593972cf3bc822429466d0609c159c95d37c9e5370be392ace698b218a65542c7d53bfa52db7377ebdab808501ae109c2249f7f956bd318312
Summary: > The bug was introduced in [[bitcoin/bitcoin#17781 | PR17781]] > before this fix `./src/bench/bitcoin-bench -filter="RIPEMD160|SHA256|SHA1"` will fail with: > ``` > # Benchmark, evals, iterations, total, min, max, median > bench_bitcoin: bench/bench.cpp:119: static void benchmark::BenchRunner::RunAll(benchmark::Printer&, uint64_t, double, const string&, bool): Assertion `g_testing_setup == nullptr' failed. > Aborted (core dumped) > ``` This is a backport of Core [[bitcoin/bitcoin#18013 | PR18013]] Test Plan: `ninja && ./src/bench/bitcoin-bench -filter="RIPEMD160|SHA256|SHA1"` Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D8690
The bug was introduced in #17781
before this fix
./src/bench/bench_bitcoin -filter=*will fail with: