add fuzz_runner_pool.py, valid_projects.txt, fail_projects in the oss-fuzz repo's python-branch#19
Merged
Conversation
Contributor
joyguoguo
commented
Jul 21, 2025
- fuzz_runner_pool.py: Batch fuzz-test on items in valid_projects.txt
- valid_projects.txt: List of python projects in the original oss-fuzz projects folder
- fail_projects: the list of projects that failed the test.
Member
|
Please also remove your Also, where are the new files? |
Member
|
@joyguoguo Please put |
Contributor
Author
|
I have modified it as required, please review it |
Contributor
Author
|
I have modified it as required, please review it🙂 |
EYH0602
reviewed
Jul 22, 2025
| timestamp = datetime.now().strftime("%Y%m%d%H%M%S") | ||
| return LOG_DIR / f"build_{project_name}_{timestamp}.log" | ||
|
|
||
| def log_and_print(message: str, log_file: Path, to_stdout: bool = True): |
Member
There was a problem hiding this comment.
Please use the logging module, see examples in other files.
| process = subprocess.Popen( | ||
| f"yes | {cmd}", # Auto-confirm all prompts | ||
| shell=True, | ||
| stdout=subprocess.PIPE, |
Member
There was a problem hiding this comment.
we don't really need to keep the build log for our experiments.
| return True | ||
| log_and_print(f"❌ Command failed (exit code: {exit_code})", log_file) | ||
| return False | ||
| except Exception as e: |
Member
There was a problem hiding this comment.
When catching exceptions, please be as precise as possible (i.e. know what may fail).
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.