mysql-server: build only fuzz harness targets to skip server/test compile#71
Open
tc-agent wants to merge 2 commits into
Open
mysql-server: build only fuzz harness targets to skip server/test compile#71tc-agent wants to merge 2 commits into
tc-agent wants to merge 2 commits into
Conversation
Fuzzing Coverage ReportTested: project
Per-harness
Δ = (after − before) / before, to accommodate that denominators may change. "new" when before is 0; "deleted" when after is 0. |
tc-agent
force-pushed
the
master
branch
4 times, most recently
from
May 28, 2026 18:05
af7f9a7 to
806b281
Compare
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 is a small build-time optimization: replace
make -j$(nproc)withmake -j$(nproc) <FUZZ_TARGETS>, where the target list is discovered frommake help(matchesroutertest_fuzz_*). The result is that OSS-Fuzz only builds the libFuzzer harnesses and their dependency graph (mysys/strings/router/etc.) instead of the entire mysql-server tree plus its ~2000 gunit unit tests — roughly an order of magnitude fewer object files.The discovery from
make helpmeans the target list stays correct as upstream adds or removes harnesses without anyone touching this script. If no targets are found (e.g. the cmake config disabledLIBFUZZER_COMPILE_FLAGS) the script fails loudly instead of silently rebuilding the whole tree.Fuzz Introspector baseline for the project, unchanged by this PR: https://introspector.oss-fuzz.com/project-profile?project=mysql-server.
Related and orthogonal: #14474 (the harness-collection /
find-based copy) and #13420 (a new in-tree harness). Both apply cleanly before or after this PR.