Skip to content

fuzz: copy some more files from rust-bitcoin#285

Merged
apoelstra merged 3 commits into
ElementsProject:masterfrom
apoelstra:2026-06/fix-fuzzing
Jun 29, 2026
Merged

fuzz: copy some more files from rust-bitcoin#285
apoelstra merged 3 commits into
ElementsProject:masterfrom
apoelstra:2026-06/fix-fuzzing

Conversation

@apoelstra

Copy link
Copy Markdown
Member

This should complete the transition to cargo-fuzz.

Fixes #271.

If we want to keep seeds from these directories we should move them to the
qa-assets repo and make some effort to minimize them. It's easy to get 10s
of 000s of these files if you're just running the fuzzer without making an
effort to clean them up.
You should be able to run this script cleanly. Update it to include a
recent Cargo.toml change, and add a big header which will hopefully
remind me not to edit the Cargo.toml file directly.
The README has a few references to rust-bitcoin. I left these alone because
all the content of the doc should be the same between the two repos, and it
is probably a useful hint to somebody reading the README that the fuzz
infrastructure was copied from rust-bitcoin.
@apoelstra

Copy link
Copy Markdown
Member Author

On 53efbb2 successfully ran local tests

@delta1 delta1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 53efbb2; tested locally

Comment thread fuzz/generate-files.sh
# 1. Generate fuzz/Cargo.toml
cat > "$REPO_DIR/fuzz/Cargo.toml" <<EOF
######
## DO NOT EDIT THIS FILE DIRECTLY. It is generated by generate-fuzz.sh.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can be done in a follow-up if necessary

Suggested change
## DO NOT EDIT THIS FILE DIRECTLY. It is generated by generate-fuzz.sh.
## DO NOT EDIT THIS FILE DIRECTLY. It is generated by generate-files.sh.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do in a followup so we can get the CI job running (or not) ASAP.

@apoelstra apoelstra merged commit ff1abab into ElementsProject:master Jun 29, 2026
10 checks passed
@apoelstra apoelstra deleted the 2026-06/fix-fuzzing branch June 29, 2026 13:17
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.

The Fuzz workflow is failing

2 participants