clusterfuzz icon indicating copy to clipboard operation
clusterfuzz copied to clipboard

[WIP] Decrease logging volume from googlefuzztest jobs

Open vitorguidi opened this issue 1 year ago • 2 comments

Motivation

This PR addresses issues with excessive log volumes filling disks and making fuzzing jobs unable to run. It also adds basic unit tests for the fuzztest engine.

How to solve it

Fuzztest logs through abseil. This PR overrides the logging configuration by passing the --logtostderr and --minloglevel=3 flags.

Testing

Validated fuzzing binary indeed gets called with correct arguments through unit testing.

vitorguidi avatar Apr 24 '24 18:04 vitorguidi

Can you fix this

googlefuzztest_engine_test.py Imports are incorrectly sorted and/or formatted.

jonathanmetzman avatar Apr 25 '24 21:04 jonathanmetzman

The binary is really large. Can you try compiling it with -Os to reduce the size.

jonathanmetzman avatar Apr 25 '24 21:04 jonathanmetzman

The binary is really large. Can you try compiling it with -Os to reduce the size.

I changed the CXX flag in clang to "clang -Oz" and the binary went from 30MB to 22MB. However, my binary lost the ability to resolve envvars via getenv. Was not able to debug this, so I kept it as is for now

vitorguidi avatar Apr 30 '24 15:04 vitorguidi