-
Notifications
You must be signed in to change notification settings - Fork 567
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
[Centipede] Implement corpus prune for centipede on corpus prune task #4707
Conversation
427ad2e
to
f94468c
Compare
src/clusterfuzz/_internal/tests/core/bot/fuzzers/centipede/centipede_engine_test.py
Show resolved
Hide resolved
src/clusterfuzz/_internal/bot/tasks/utasks/corpus_pruning_task.py
Outdated
Show resolved
Hide resolved
src/clusterfuzz/_internal/bot/tasks/utasks/corpus_pruning_task.py
Outdated
Show resolved
Hide resolved
Seems that you have some formatting/linting errors, let's try to get the basic tests running |
8bbd8d7
to
a64a86e
Compare
.style.yapf
Outdated
@@ -1,5 +1,5 @@ | |||
[style] | |||
based_on_style = chromium | |||
based_on_style = google |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the style here makes it harder to review since many changes are just formatting. Maybe we can keep this to a follow-up PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree! but the basic tests
will fail without it. If we're ok for merging with this, I can move this bump to another PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed here #4710
2556681
to
a64a86e
Compare
This change call's centipede's minimize_corpus method on each fuzzing round. This allows us to distill the corpus and only add useful units. On a local run, this allowed to decrease the number of units added from 2000+ to 5 with the same coverage. The cl also extracts some common functionality into engine_common.
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
@jonathanmetzman @alhijazi I just removed the match case usage for simplicity and avoid any other frictions for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's rebase and get this landed and see if this works as expected.
f196558
to
d2c0a9d
Compare
It implements corpus pruning for centipede fuzzer.