Establish conventions which aligns with what is supported upstream
today, whilst expanding on documentation to ensure folks have
pointers on how to debug/check for issues going forwards.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
The upstream build is failing with:
/usr/local/bin/compile_native_go_fuzzer: line 35: addimport: command
not found
The changes uses the upstream approach to install the missing commands.
Note that one of the reasons of the unilateral failure upstream is due
to the base image changed in:
e71e320709
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Latest base image should contain Go 1.18, removing
the need of updating that ourselves, apart from
benefiting from latest changes upstream.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Moving into Go Native, the adhoc changes and on-demand build is no
longer necessary.
Previously calls to r.EventRecorder.AnnotatedEventf resulted in panic.
The new dummy recorder resolves the problem without impacting
resource consumption.
A new make target `fuzz-native` was introduced, to loop through all
fuzz tests for the duration of time specified via the environment
variable `FUZZ_TIME`.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This includes an update of the source-controller to v0.22.0, to pull in
the v1beta2 API which makes use of the same packages.
Signed-off-by: Sunny <darkowlzz@protonmail.com>
oss-fuzz integration breaks as some of the execution merges with tests code
leading to duplicated symbols.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Structure the fuzz implementation to be closer to what go native will support.
Add Makefile target to enable smoketesting fuzzers.
Add smoketest as CI workflow.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>