Add total_fuzzing_time_seconds to FuzzTaskOutput#5225
Draft
Add total_fuzzing_time_seconds to FuzzTaskOutput#5225
Conversation
22939ff to
b07c112
Compare
dylanjew
commented
Mar 31, 2026
| crashes[0].application_command_line) | ||
| self.assertEqual('/app/app_1 -r=3 -x -y /tests/2', | ||
| crashes[1].application_command_line) | ||
| self.assertGreaterEqual(session.fuzz_task_output.total_fuzzing_time_seconds, |
Collaborator
Author
There was a problem hiding this comment.
I didn't mock time.time() here because it introduced flakiness to this test where the threads were finishing out of order
b07c112 to
8f5d4ae
Compare
8f5d4ae to
bdd9c2b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
total_fuzzing_time_secondsto the FuzzTaskOutput proto. We already calculate the fuzzing time to power our Monitoring metric FUZZER_TOTAL_FUZZ_TIME.This allows us write the total fuzzing time for blackbox fuzzers to Big Query, similar to how we upload test case stats during postprocessing for engine guided fuzzers to power the cluseterfuzz.com/fuzzer-stats page.
Ran
./src/clusterfuzz/_internal/protos/generate.shto generate the proto files