-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove fuzzers from our binaries #4398
Comments
Moving things into _test files, results in a small amount of reduction in binary size: vaikas@vaikas-a01 mink % echo '61121452 61103260 - p' | dc However, that change alone does not get rid of all the fuzzer code, I think we need to do some additional work in the pkg code base. |
Ok, we no longer have any knative.dev/* related fuzzery in our binary. However we'll tackle that later: vaikas@vaikas-a01 eventing % go tool nm -size main | grep fuzz | wc -l |
Looks like we need to pull this commit in to get rid of the gofuzz: Currently we don't have that version and we're seeing this (after the PR to rename fuzzer -> fuzzer_test.go). github.com/google/gofuzzknative.dev/eventing/cmd/mtbroker And we're still using this version: |
We should still do this. |
Yeah, absolutely, but if I read the upstream correctly, we need 1.20 of the apimachinery to get this. |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
This is still present, even though we're using 1.20 of api machinery
|
This issue is stale because it has been open for 90 days with no |
Describe the bug
We discovered this while looking at some fuzzer code, it was dealt with in serving:
knative/serving#9725
Expected behavior
We should not be baking in our testing libraries into our binaries.
To Reproduce
There are other binaries, but just looking at one:
vaikas@vaikas-a01 eventing % go build ./cmd/controller/main.go
vaikas@vaikas-a01 eventing % go tool nm -size main | grep fuzz
143dbe0 32 T github.com/google/gofuzz.(*Continue).ExpFloat64
143dc00 32 T github.com/google/gofuzz.(*Continue).Float32
143dc20 32 T github.com/google/gofuzz.(*Continue).Float64
143dc40 128 T github.com/google/gofuzz.(*Continue).Fuzz
143dcc0 128 T github.com/google/gofuzz.(*Continue).FuzzNoCustom
... ...
Just recording this to see what impact this may have.
vaikas@vaikas-a01 eventing % ls -l main
-rwxr-xr-x 1 vaikas staff 61121452 Oct 27 11:25 main
Knative release version
all of them.
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: