Skip to content

Delete nonreduced inputs - #157

Merged
fanquake merged 4 commits into
bitcoin-core:mainfrom
maflcko:main
Oct 25, 2023
Merged

fanquake merged 4 commits into
bitcoin-core:mainfrom
maflcko:main

Conversation

@maflcko

@maflcko maflcko commented Oct 23, 2023 •

Copy link
Copy Markdown
Contributor

As per the usual process to avoid wasted CI resources and timeouts when it runs on large and presumed irrelevant inputs.

Previous: #119

To "reproduce"

Install a fresh VM, as explained in the bash script's doc, and run it:

apt update && apt install curl -y
curl -L -O https://raw.githubusercontent.com/bitcoin-core/bitcoin-maintainer-tools/main/delete_nonreduced_fuzz_inputs.sh
bash delete_nonreduced_fuzz_inputs.sh

To "test"

  • Keep an eye on coverage stats, to ensure it doesn't drop
  • Re-run the script, to ensure it is "reproducible" to some extent
  • Anything else you think is important to test or review

@maflcko

maflcko commented Oct 23, 2023

Copy link
Copy Markdown
Contributor Author

Did a second run. Some stats:

  • 400k deleted files (this pull):
# git diff --stat origin/main..01a9287310b6c2e6344e28c4ba655d179142f719 | tail -1
 446405 files changed, 5974234 deletions(-)
  • Same on the second run:
# git diff --stat origin/main..HEAD | tail -1
 444894 files changed, 5404772 deletions(-)
  • Cross-diff of 24k files:
# git diff --stat 01a9287310b6c2e6344e28c4ba655d179142f719..HEAD | tail -1
 23461 files changed, 50266 insertions(+), 4085 deletions(-)

@maflcko

maflcko commented Oct 23, 2023

Copy link
Copy Markdown
Contributor Author

lint fail is expected (obviously)

cc @murchandamus @dergoegge

@maflcko

maflcko commented Oct 24, 2023

Copy link
Copy Markdown
Contributor Author

Looks like utxo_total_supply is the reason for the 2h timeout. I've removed the large fuzz inputs in this folder for now.

@maflcko

maflcko commented Oct 24, 2023

Copy link
Copy Markdown
Contributor Author

Looks like the CI passed after 43minutes now: https://cirrus-ci.com/task/4832424811560960?logs=ci#L4022

@dergoegge

Copy link
Copy Markdown
Member

Looks like utxo_total_supply is the reason for the 2h timeout. I've removed the large fuzz inputs in this folder for now.

We could add options for that target either to oss-fuzz or in the target itself (e.g. if (buffer.size() > N) return;) to avoid large inputs in the future.

@maflcko

maflcko commented Oct 24, 2023

Copy link
Copy Markdown
Contributor Author

Let's create a separate tracking issue for this target?

@maflcko

maflcko commented Oct 24, 2023

Copy link
Copy Markdown
Contributor Author

@dergoegge

Copy link
Copy Markdown
Member

ACK 428a2e7

root@0e503e9c42d6:/qa-assets# git diff --stat origin/main..HEAD | tail -1
 445073 files changed, 5399978 deletions(-)

@fanquake
fanquake merged commit 4ae1613 into bitcoin-core:main Oct 25, 2023
@dergoegge dergoegge mentioned this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants