tests: Dry run bench_bitcoin as part “make check” to allow for quick identification of assertion/sanitizer failures in benchmarking code #14092

pull practicalswift wants to merge 2 commits into bitcoin:master from practicalswift:dry-run-of-bench_bitcoin-as-part-of-check-local changing 3 files +15 −8
  1. practicalswift commented at 11:55 am on August 28, 2018: contributor

    Dry run bench_bitcoin (-evals=1 -scaling=0: <1 second running time) as part make check to allow for quick identification of assertion/sanitizer failures or crashes in benchmarking code.

    This is already tested in Travis but it is nice to have it locally too. The cost is near zero.

  2. practicalswift renamed this:
    tests: Dry run bench_bitcoin (-evals=1 -scaling=0: <1 second running time) as part "make check" to allow for quick identification of assertion/sanitizer failures in benchmarking code
    tests: Dry run bench_bitcoin as part "make check" to allow for quick identification of assertion/sanitizer failures in benchmarking code
    on Aug 28, 2018
  3. fanquake added the label Tests on Aug 28, 2018
  4. laanwj commented at 1:33 pm on August 28, 2018: member
    in this case you’ll probably want to remove the RUN_BENCH logic from travis as it does pretty much the same (introduced in #13811) ping @MarcoFalke
  5. practicalswift commented at 1:38 pm on August 28, 2018: contributor
    @laanwj Yes, that is my plan if @MarcoFalke is OK with it :-)
  6. MarcoFalke added the label Build system on Aug 28, 2018
  7. MarcoFalke commented at 2:10 pm on August 28, 2018: member
    I don’t see any downside to doing this. So Concept ACK, but I can’t review build system changes.
  8. in src/Makefile.test.include:171 in 1d0e186d50 outdated
    166@@ -167,6 +167,8 @@ check-local: $(BITCOIN_TESTS:.cpp=.cpp.test)
    167 	$(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
    168 	@echo "Running test/util/rpcauth-test.py..."
    169 	$(PYTHON) $(top_builddir)/test/util/rpcauth-test.py
    170+	@echo "Running bench/bench_bitcoin -evals=1 -scaling=0..."
    171+	$(top_builddir)/src/bench/bench_bitcoin -evals=1 -scaling=0 2> >(grep -vE "^WARNING: ") > /dev/null
    


    MarcoFalke commented at 2:12 pm on August 28, 2018:
    Does scaling=0 actually run everything at least once? If not, just set to a small value larger than zero.

  9. practicalswift force-pushed on Aug 29, 2018
  10. practicalswift force-pushed on Aug 29, 2018
  11. practicalswift force-pushed on Aug 29, 2018
  12. Remove RUN_BENCH logic 00c6306a61
  13. tests: Dry run bench_bitcoin (-evals=1 -scaling=0: <1 second running time) as part "make check" to allow for quick identification of assertion/sanitizer failures in benchmarking code dfef0df840
  14. practicalswift force-pushed on Aug 30, 2018
  15. DrahtBot commented at 10:35 am on September 18, 2018: member

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #14252 (build: Run functional tests and benchmarks under the undefined behaviour sanitizer (UBSan) by practicalswift)

    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.

  16. MarcoFalke commented at 7:35 pm on September 18, 2018: member
    Concept ACK dfef0df8406528915aaa718e761ce9eaab14ee37, can’t review the build system changes, though.
  17. fanquake commented at 4:45 am on October 9, 2018: member

    Tested by merging dfef0df and then applying the changes from #14011 (so that make check actually runs on macOS).

    Got the bench output:

    0OK
    1Running bench/bench_bitcoin -evals=1 -scaling=0...
    2bench/bench_bitcoin -evals=1 -scaling=0 > /dev/null
    3.....
    

    Added an assert(0) to AssembleBlock to check that a failure is caught.

    0OK
    1Running bench/bench_bitcoin -evals=1 -scaling=0...
    2bench/bench_bitcoin -evals=1 -scaling=0 > /dev/null
    3Assertion failed: (0), function AssembleBlock, file bench/block_assemble.cpp, line 57.
    4/bin/sh: line 1: 60728 Abort trap: 6           bench/bench_bitcoin -evals=1 -scaling=0 > /dev/null
    5make[3]: *** [check-local] Error 134
    6make[2]: *** [check-am] Error 2
    7make[1]: *** [check-recursive] Error 1
    8make: *** [check-recursive] Error 1
    

    Probably worth getting @theuni to glance over the test.include changes pre-merge.

  18. MarcoFalke merged this on Nov 5, 2018
  19. MarcoFalke closed this on Nov 5, 2018

  20. MarcoFalke referenced this in commit 73a8408bc3 on Nov 5, 2018
  21. practicalswift deleted the branch on Apr 10, 2021
  22. Munkybooty referenced this in commit 7d2a3527bf on Jul 23, 2021
  23. Munkybooty referenced this in commit 842298c46a on Jul 23, 2021
  24. Munkybooty referenced this in commit 8ba9ec7f66 on Jul 23, 2021
  25. Munkybooty referenced this in commit 3371564725 on Jul 23, 2021
  26. Munkybooty referenced this in commit 1060e0259e on Jul 26, 2021
  27. Munkybooty referenced this in commit 0c70b85286 on Dec 25, 2021
  28. Munkybooty referenced this in commit 8cedc1344b on Dec 25, 2021
  29. Munkybooty referenced this in commit 2c3aeec1e1 on Dec 25, 2021
  30. Munkybooty referenced this in commit a2823690c7 on Dec 25, 2021
  31. Munkybooty referenced this in commit 69432e9505 on Dec 28, 2021
  32. Munkybooty referenced this in commit 104c5ddeb1 on Dec 28, 2021
  33. Munkybooty referenced this in commit 56addeeb35 on Dec 28, 2021
  34. Munkybooty referenced this in commit e1cbfe4e48 on Dec 28, 2021
  35. Munkybooty referenced this in commit a9d0ac4793 on Jan 3, 2022
  36. Munkybooty referenced this in commit d95a31cd24 on Feb 1, 2022
  37. Munkybooty referenced this in commit ee2d92ee8f on Feb 16, 2022
  38. Munkybooty referenced this in commit 37534fbb14 on Feb 24, 2022
  39. Munkybooty referenced this in commit bbced37891 on Feb 24, 2022
  40. Munkybooty referenced this in commit 6eb7db3a52 on Mar 6, 2022
  41. Munkybooty referenced this in commit 7c10bf3a48 on Mar 20, 2022
  42. Munkybooty referenced this in commit 84e63db205 on Apr 21, 2022
  43. Munkybooty referenced this in commit 146c38b4ac on Apr 26, 2022
  44. Munkybooty referenced this in commit 80791a4458 on Apr 29, 2022
  45. Munkybooty referenced this in commit e639a33e51 on May 12, 2022
  46. Munkybooty referenced this in commit b1f41fa3d5 on May 12, 2022
  47. Munkybooty referenced this in commit b47ae33067 on May 17, 2022
  48. Munkybooty referenced this in commit a557022252 on May 23, 2022
  49. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-28 22:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me