Commit 9afe5cd
authored
opentelemetry-go: add new fuzz tests and change fuzzer naming pattern (#14250)
This PR add new fuzzers and renames fuzzer binaries in the OpenTelemetry
Go projects to include the module path as a prefix, improving clarity
and avoiding name collisions.
## Changes
### projects/opentelemetry-go/build.sh
- Added 3 new fuzzers: `FuzzHashKVs`, `FuzzTraceIDFromHex`, and
`FuzzSpanIDFromHex`
- Renamed fuzzer binaries to include module prefixes:
- `FuzzHashKVs` → `sdk_attribute_FuzzHashKVs`
- `FuzzGetBin` → `sdk_metric_internal_aggregate_FuzzGetBin`
- `FuzzTraceIDFromHex` → `trace_FuzzTraceIDFromHex`
- `FuzzSpanIDFromHex` → `trace_FuzzSpanIDFromHex`
### projects/opentelemetry-go-contrib/build.sh
- Added new fuzzer: `FuzzYAMLWithEnvVars`
- Renamed fuzzer binaries to include module and version prefixes:
- `FuzzJSON` → `otelconf_v0.3.0_FuzzJSON`
- `FuzzYAML` → `otelconf_v0.3.0_FuzzYAML`
- `FuzzYAMLWithEnvVars` → `otelconf_v0.3.0_FuzzYAMLWithEnvVars`
## Benefits
- **Clearer naming**: Fuzzer binary names now indicate which module they
test
- **Avoid collisions**: Prevents potential name conflicts when multiple
modules have fuzzers with the same function name1 parent 85631ab commit 9afe5cd
2 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments