This should catch trivial integer sanitizer bugs if the author and all reviewers forget to look for them.
ci: Run fuzz target even if input folder is empty #27919
pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2306-ci-fuzz- changing 2 files +19 −5-
maflcko commented at 1:14 PM on June 20, 2023: member
- maflcko force-pushed on Jun 20, 2023
-
DrahtBot commented at 1:14 PM on June 20, 2023: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
- DrahtBot added the label Tests on Jun 20, 2023
-
dergoegge commented at 1:18 PM on June 20, 2023: member
Concept ACK
-
in test/fuzz/test_runner.py:272 in fa39e50e41 outdated
270 | os.path.join(build_dir, 'src', 'test', 'fuzz', 'fuzz'), 271 | '-runs=1', 272 | - corpus_path, 273 | ] 274 | + if not any(corpus_path.iterdir()) and empty_min_time: 275 | + args.append(f"-max_total_time={empty_min_time}")
dergoegge commented at 1:23 PM on June 20, 2023:this would still include
runs=1which for an empty corpus would only generate 1 input.Run process_messages with args ['/home/dergoegge/workspace/bitcoin/src/test/fuzz/fuzz', '-runs=1', '-max_total_time=10']INFO: Running with entropic power schedule (0xFF, 100). INFO: Seed: 2455678762 INFO: Loaded 1 modules (350793 inline 8-bit counters): 350793 [0x55c579a854b0, 0x55c579adaef9), INFO: Loaded 1 PC tables (350793 PCs): 350793 [0x55c579adaf00,0x55c57a035390), INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes INFO: A corpus is not provided, starting from an empty corpus [#2](/bitcoin-bitcoin/2/) INITED cov: 2324 ft: 2325 corp: 1/1b exec/s: 0 rss: 115Mb [#2](/bitcoin-bitcoin/2/) DONE cov: 2324 ft: 2325 corp: 1/1b lim: 4 exec/s: 0 rss: 115Mb Done 2 runs in 0 second(s)maflcko force-pushed on Jun 20, 2023maflcko force-pushed on Jun 20, 2023dergoegge commented at 2:03 PM on June 20, 2023: memberTested it locally, seems to work. We should also see this work in the CI here shortly for the
utxo_total_supply,wallet_feesandcoincontroltargets.brunoerg commented at 2:16 PM on June 20, 2023: contributorStrong Concept ACK
dergoegge approvedDrahtBot added the label CI failed on Jun 20, 2023brunoerg commented at 4:11 PM on June 20, 2023: contributorTested locally and it got
wallet_feesbug.brunoerg approvedbrunoerg commented at 4:12 PM on June 20, 2023: contributorACK fae0c9955ed8254665c9afbaf940f1f4295bfa29
Gonna re-ack as soon as it got rebased
ci: Run fuzz target even if input folder is empty 0000f55293maflcko force-pushed on Jun 20, 2023brunoerg commented at 4:21 PM on June 20, 2023: contributorreACK 0000f552937ee787d25c8fd0af3278ea94889216
DrahtBot requested review from dergoegge on Jun 20, 2023DrahtBot removed the label CI failed on Jun 20, 2023in ci/test/06_script_b.sh:173 in 0000f55293
169 | @@ -170,5 +170,5 @@ if [ "${RUN_TIDY}" = "true" ]; then 170 | fi 171 | 172 | if [ "$RUN_FUZZ_TESTS" = "true" ]; then 173 | - bash -c "LD_LIBRARY_PATH=${DEPENDS_DIR}/${HOST}/lib test/fuzz/test_runner.py ${FUZZ_TESTS_CONFIG} $MAKEJOBS -l DEBUG ${DIR_FUZZ_IN}" 174 | + bash -c "LD_LIBRARY_PATH=${DEPENDS_DIR}/${HOST}/lib test/fuzz/test_runner.py ${FUZZ_TESTS_CONFIG} $MAKEJOBS -l DEBUG ${DIR_FUZZ_IN} --empty_min_time=60"
dergoegge commented at 8:44 AM on June 21, 2023:We can probably play around with this value but for now 60s seems fine to me.
maflcko commented at 8:52 AM on June 21, 2023:Yeah, I think it should be 10 seconds or more, but less than 2 minutes? With 1 minute, even with 60 missing fuzz input folders, the overhead will be 1 hour for all runs until fuzz inputs are provided, which seems fine.
dergoegge approveddergoegge commented at 8:44 AM on June 21, 2023: memberreACK 0000f552937ee787d25c8fd0af3278ea94889216
fanquake merged this on Jun 21, 2023fanquake closed this on Jun 21, 2023maflcko deleted the branch on Jun 21, 2023sidhujag referenced this in commit 02c33b9e56 on Jun 21, 2023bitcoin locked this on Jun 20, 2024
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: 2026-04-24 09:14 UTC
More mirrored repositories can be found on mirror.b10c.me