Skip to content
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

Merged
merged 6 commits into from
Nov 21, 2024
Merged

Add generic tworker. #4418

merged 6 commits into from
Nov 21, 2024

Conversation

jonathanmetzman
Copy link
Collaborator

@jonathanmetzman jonathanmetzman commented Nov 21, 2024

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

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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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)
Copy link
Collaborator

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)

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

@jonathanmetzman jonathanmetzman merged commit ccb5ef6 into master Nov 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants