Skip to content

Add a new CI builder that builds fuzz targets - #5352

Merged
graydon merged 1 commit into
stellar:masterfrom
graydon:build-fuzzers-in-ci
Jul 24, 2026
Merged

graydon merged 1 commit into
stellar:masterfrom
graydon:build-fuzzers-in-ci

Conversation

@graydon

@graydon graydon commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

This adds a new CI builder that builds with the configuration necessary to build the fully-executable fuzz targets -- not just the fuzz-target logic (which is already built and smoke-tested as part of the unit test suite) -- but the actual instrumented-for-greybox-fuzzing build, with unified-build mode, linked against a fuzz driver and ready to run.

This is the configuration that OSS-fuzz runs, and it runs a build script that's lightly adapted from the build script OSS-fuzz runs. This is intended to "keep the OSS-fuzz build building".

Copilot AI review requested due to automatic review settings July 15, 2026 17:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a dedicated CI job intended to build fully executable, libFuzzer-instrumented fuzz targets (matching the OSS-Fuzz build configuration) to ensure the OSS-Fuzz build remains healthy.

Changes:

  • Replaces build-fuzz.sh with an OSS-Fuzz-aligned build script that performs an out-of-tree build in build-clang-libfuzzer/ and copies built fuzz_* binaries to $OUT.
  • Adds a new GitHub Actions job build-linux-fuzz-targets and wires it into the complete job dependency list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
build-fuzz.sh Updated to build fuzz targets in an OSS-Fuzz-like configuration (ccache, unified rust build, fuzz target build + copy to $OUT).
.github/workflows/build.yml Adds a new Linux CI builder job to run the fuzz-target build script and cache relevant build directories.

Comment thread build-fuzz.sh Resolved
Comment thread build-fuzz.sh Resolved
Comment thread build-fuzz.sh Resolved
Comment thread .github/workflows/build.yml Resolved
@graydon
graydon force-pushed the build-fuzzers-in-ci branch from bc84221 to f91706f Compare July 24, 2026 04:03
@graydon
graydon enabled auto-merge July 24, 2026 05:30
@graydon
graydon added this pull request to the merge queue Jul 24, 2026
Merged via the queue into stellar:master with commit 316757d Jul 24, 2026
69 checks passed
@graydon
graydon deleted the build-fuzzers-in-ci branch July 24, 2026 06:30
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