Skip to content
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

Merged
merged 14 commits into from
Mar 7, 2025

Conversation

javanlacerda
Copy link
Contributor

@javanlacerda javanlacerda commented Feb 27, 2025

It implements corpus pruning for centipede fuzzer.

@javanlacerda javanlacerda changed the title Javan.prune cent [Centipede] Implement corpus prune for centipede on corpus prune task Feb 27, 2025
@javanlacerda javanlacerda marked this pull request as ready for review February 27, 2025 20:27
@alhijazi
Copy link
Collaborator

Seems that you have some formatting/linting errors, let's try to get the basic tests running

.style.yapf Outdated
@@ -1,5 +1,5 @@
[style]
based_on_style = chromium
based_on_style = google
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed here #4710

@javanlacerda javanlacerda changed the base branch from master to javan.bump-yapf March 1, 2025 23:20
@javanlacerda javanlacerda changed the base branch from javan.bump-yapf to master March 1, 2025 23:21
@javanlacerda javanlacerda mentioned this pull request Mar 5, 2025
alhijazi and others added 14 commits March 6, 2025 17:33
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>
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
@javanlacerda
Copy link
Contributor Author

@jonathanmetzman @alhijazi I just removed the match case usage for simplicity and avoid any other frictions for now.

Copy link
Collaborator

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@alhijazi alhijazi left a 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.

@javanlacerda javanlacerda merged commit 1d2c8d1 into master Mar 7, 2025
7 checks passed
@javanlacerda javanlacerda deleted the javan.prune-cent branch March 7, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants