-
Notifications
You must be signed in to change notification settings - Fork 175
@myanvoos: Extend web.py and add local hot reload #922
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
base: main
Are you sure you want to change the base?
Conversation
/gcbrun exp -n mv -ag |
1 similar comment
/gcbrun exp -n mv -ag |
Looks like we're missing the |
Thanks! Let's do this in a new PR based on this branch (exp-884) |
Should fix the lint error in #922 cc: @DonggeLiu
/gcbrun exp -n mv1 -ag |
Related discussion #862 This PR extends the command line parser in [`web.py`](https://github.com/google/oss-fuzz-gen/blob/main/report/web.py) to take in some additional inputs as outlined [here](#862 (comment)). It also adds an optional server-side hot-reloading functionality with the `watchdog` library. Happy to iterate upon this @DonggeLiu, and whenever you're ready --------- Co-authored-by: Dongge Liu <[email protected]>
Should fix the lint error in #922 cc: @DonggeLiu
/gcbrun exp -n mv -ag |
Hmm... the report is still empty, suggesting something wrong with the experiment. |
/gcbrun exp -n mv -ag |
Hey @DonggeLiu, I'm just revisiting this watcher now and noticed that I should probably update the README to reference the I will also add some extra logic to the watcher so that it makes sure This is more of a folder organisation/tidying up thing and isn't related to the contents of the reports, which should be updated regardless of if we add or remove benchmarks. Also, were you able to reproduce the issue? The hot reloading is working locally for me but I'm keen to fix it! |
The cloud log did not show much useful information, unfortunately. Here are relevant lines: oss-fuzz-gen/report/upload_report.sh Lines 63 to 74 in dc06767
QQ: Do we need to modify this? oss-fuzz-gen/report/upload_report.sh Line 58 in dc06767
|
Oh right I think I might know what's happening. def main():
args = _parse_arguments()
logging.getLogger().setLevel(os.environ.get('LOGLEVEL', 'INFO').upper())
watcher = ReportWatcher(args)
watcher.start()
try:
should_continue = args.serve or args.watch_filesystem or args.watch_template
while should_continue:
generate_report(args)
time.sleep(args.interval_seconds)
except KeyboardInterrupt:
watcher.stop()
logging.info('Exiting.')
os._exit(0) Without a I'll put in an initial call to generate the report before initialising the watcher, that should fix it. Edit for QQ: I don't think we need to modify
because we already re-generate the report periodically here
(Unless you meant like for debugging -- oops) |
/gcbrun exp -n mv -ag |
Running experiment for #884, contributed by @myanvoos