-
Notifications
You must be signed in to change notification settings - Fork 98
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
Hide useless logs and add useful ones #31
Conversation
Use "" to prevent globbing and work splitting
@@ -354,7 +354,11 @@ def build_and_run(self, generated_project: str, target_path: str, | |||
check=True, | |||
cwd=oss_fuzz_checkout.OSS_FUZZ_DIR) | |||
except sp.CalledProcessError as e: | |||
print('Failed to evaluate target on cloud:', e.stdout, e.stderr) | |||
print(f'Failed to evaluate {os.path.realpath(target_path)} on cloud:', |
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.
Should we migrate to logging.info,debug etc in a future 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.
Yes!
Created #34.
mkdir results-report | ||
cd results-report | ||
# Spin up the web server generating the report (and bg the process). | ||
PYTHONPATH=. /venv/bin/python3 report/web.py "${RESULTS_DIR:?}" "${WEB_PORT:?}" & |
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.
Can be for another PR: Can we replace the PYTHONPATH invocation here?
Also one other thing, it's hard to use this script locally because the local venv path may be different. Can we instead just have this invoke python3
by default, and allow this to be overridden by e.g. PYTHON for infra usages?
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.
Can be for another PR: Can we replace the PYTHONPATH invocation here?
Yes, let me create another PR for this.
it's hard to use this script locally because the local venv path may be different. Can we instead just have this invoke python3 by default, and allow this to be overridden by e.g. PYTHON for infra usages?
Yep, good point!
I will address this in a separate PR.
Hide numerous download progress logs from
wget2
andgsutil
.Add logs for cloud experiments to look for anomalies.