Skip to content

prometheus: update to native go fuzzing#14183

Merged
AdamKorcz merged 1 commit intogoogle:masterfrom
roidelapluie:prometheus_native_fuzz
Mar 3, 2026
Merged

prometheus: update to native go fuzzing#14183
AdamKorcz merged 1 commit intogoogle:masterfrom
roidelapluie:prometheus_native_fuzz

Conversation

@roidelapluie
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown

roidelapluie has previously contributed to projects/prometheus. The previous PR was #3908

@roidelapluie roidelapluie force-pushed the prometheus_native_fuzz branch from b49a476 to c3f3ab7 Compare October 27, 2025 09:29
@roidelapluie roidelapluie marked this pull request as ready for review January 13, 2026 09:41
@roidelapluie roidelapluie force-pushed the prometheus_native_fuzz branch from b0e6533 to 00abcf6 Compare January 13, 2026 10:16
roidelapluie added a commit to roidelapluie/oss-fuzz that referenced this pull request Jan 13, 2026
The script uses recursive grep to find fuzzer functions, which can match
function names in multiple files. This causes fuzzer_filename to contain
multiple files, breaking the convertLibFuzzerTestcaseToStdLibGo command
during coverage builds.

Fix by searching directly for the function signature with testing.F parameter,
which only exists in the actual fuzzer test file. This avoids false matches in
files that only reference the function name in comments or helper functions.
The script now also explicitly fails if multiple matching files are found.

Required for google#14183

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
roidelapluie added a commit to roidelapluie/oss-fuzz that referenced this pull request Jan 13, 2026
The script uses recursive grep to find fuzzer functions, which can match
function names in multiple files. This causes fuzzer_filename to contain
multiple files, breaking the convertLibFuzzerTestcaseToStdLibGo command
during coverage builds.

Fix by searching directly for the function signature with testing.F parameter,
which only exists in the actual fuzzer test file. This avoids false matches in
files that only reference the function name in comments or helper functions.
The script now also explicitly fails if multiple matching files are found.

Required for google#14183

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
roidelapluie added a commit to roidelapluie/oss-fuzz that referenced this pull request Jan 13, 2026
The script uses recursive grep to find fuzzer functions, which can match
function names in multiple files. This causes fuzzer_filename to contain
multiple files, breaking the convertLibFuzzerTestcaseToStdLibGo command
during coverage builds.

Fix by searching directly for the function signature with testing.F parameter,
which only exists in the actual fuzzer test file. This avoids false matches in
files that only reference the function name in comments or helper functions.
The script now also explicitly fails if multiple matching files are found.

Required for google#14183

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie force-pushed the prometheus_native_fuzz branch from 00abcf6 to b49e114 Compare January 13, 2026 10:46
roidelapluie added a commit to roidelapluie/oss-fuzz that referenced this pull request Feb 24, 2026
The script uses recursive grep to find fuzzer functions, which can match
function names in multiple files. This causes fuzzer_filename to contain
multiple files, breaking the convertLibFuzzerTestcaseToStdLibGo command
during coverage builds.

Fix by searching directly for the function signature with testing.F parameter,
which only exists in the actual fuzzer test file. This avoids false matches in
files that only reference the function name in comments or helper functions.
The script now also explicitly fails if multiple matching files are found.

Required for google#14183

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
AdamKorcz pushed a commit that referenced this pull request Mar 2, 2026
…14783)

The script uses recursive grep to find fuzzer functions, which can match
function names in multiple files. This causes fuzzer_filename to contain
multiple files, breaking the convertLibFuzzerTestcaseToStdLibGo command
during coverage builds.

Fix by searching directly for the function signature with testing.F
parameter, which only exists in the actual fuzzer test file. This avoids
false matches in files that only reference the function name in comments
or helper functions. The script now also explicitly fails if multiple
matching files are found.

Required for #14183

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie force-pushed the prometheus_native_fuzz branch 2 times, most recently from a0e33f9 to f1b1a2e Compare March 3, 2026 10:53
@roidelapluie
Copy link
Copy Markdown
Contributor Author

cc @AdamKorcz

Following up Yesterday's pull request, this change is ready to fly 🛫

Related to prometheus/prometheus#17393

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie force-pushed the prometheus_native_fuzz branch from f1b1a2e to eb1ea69 Compare March 3, 2026 10:58
@AdamKorcz
Copy link
Copy Markdown
Collaborator

@roidelapluie has been working with upstream Prometheus. A maintainer approved their work in prometheus/prometheus#17393 (review).

@AdamKorcz AdamKorcz merged commit d0c1b5a into google:master Mar 3, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants