Repository navigation
Add a new CI builder that builds fuzz targets - #5352
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.shwith an OSS-Fuzz-aligned build script that performs an out-of-tree build inbuild-clang-libfuzzer/and copies builtfuzz_*binaries to$OUT. - Adds a new GitHub Actions job
build-linux-fuzz-targetsand wires it into thecompletejob 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. |
graydon
force-pushed
the
build-fuzzers-in-ci
branch
from
July 24, 2026 04:03
bc84221 to
f91706f
Compare
graydon
enabled auto-merge
July 24, 2026 05:30
leighmcculloch
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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".