-
Notifications
You must be signed in to change notification settings - Fork 558
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
Add generic tworker. #4418
Add generic tworker. #4418
Conversation
This tworker will only run preprocess and postprocess. It can do this regardless of the platform of the task. b/380104573
# TODO(b/378684001): This code is very ugly, get rid of it when no more | ||
# fuzz tasks are executed on the bots themselves (i.e. when the rearch | ||
# is complete). | ||
self.is_from_queue = is_from_queue |
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.
Does this mean that, once this gets deployed, everything is coming from batch?
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.
No.
It means that I don't need the hacky is_from_queue method to schedule fuzz tasks on batch anymore.
Because instead we are pushing to the preprocess queue.
|
||
|
||
def is_tworker(): | ||
return get_value('TWORKER', False) |
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 this be True? This is a bit confusing, by reading environment.py, I do know what to expect from ast.eval when it gets '1' as input
return ast.literal_eval(value_string) |
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.
No. THis is the default value, which I want to be False if the env var isn't defined.
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.
I thought i replied to this earlier, but no, I want the default to be False.
This tworker will only run preprocess and postprocess.
By generic, I mean it can do this regardless of the platform of the task.
Also, get rid of some kludges used to test utasks in oss-fuzz.
b/380104573