-
Notifications
You must be signed in to change notification settings - Fork 138
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
experimental: add post-processing logic #440
Conversation
Signed-off-by: David Korczynski <[email protected]>
Sample run:
|
/gcbrun skip |
LOG_FMT = '[%(filename)s:%(lineno)d]: %(message)s' | ||
|
||
|
||
def _get_edge_cov_from_line(line: str) -> Optional[int]: |
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.
A regex for the same purpose:
oss-fuzz-gen/experiment/builder_runner.py
Line 327 in 350333b
m = LIBFUZZER_COV_REGEX.match(line) |
Feel free to use either.
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.
Will do this in a similar fashion as mentioned in #440 (comment)
|
||
def oss_fuzz_out_dir(oss_fuzz_dir: str) -> str: | ||
"""Returns the out folder of a given OSS-Fuzz repository.""" | ||
return os.path.join(oss_fuzz_dir, 'build', 'out') |
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.
This function is quite generally useful, how about relocating it to oss_fuzz_checkout.py
, where we store all OSS-Fuzz-related functions? (e.g., if so, please also consider removing oss_fuzz
in the function name to avoid stuttering, e.g., get_out_dir()
or out_dir()
as a @property
)
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.
Good point. I'll leave this for now as this PR is in a bit grander-scheme an effort to prepare for merging the codebases #450 -- A larger PR will come in the near future that does this on a more rigorous level so will do this at that point
Signed-off-by: David Korczynski <[email protected]>
/gcbrun skip |
This is needed to easily digest the results from a larger scale run