Skip to content

[Reproduce tool] Serialize fuzz target information along with testcases.#899

Merged
mbarbella-chromium merged 7 commits into
masterfrom
reproduce-tool-fix
Aug 28, 2019
Merged

[Reproduce tool] Serialize fuzz target information along with testcases.#899
mbarbella-chromium merged 7 commits into
masterfrom
reproduce-tool-fix

Conversation

@mbarbella-chromium

Copy link
Copy Markdown
Contributor

PTAL. This fixes the recent breakage with the reproduce tool and should allow it to work with any future engines we add. If this seems too hacky it should be possible to modify the calls to these functions to plumb this information in, but we'd still need to serialize it and pass it from the reproduce tool somehow (and the other changes to support this would be fairly invasive). Longer-term, I think we might need a better way to intercept some datastore access, and I think the current solution will make it easier to switch to something that does that later.

@mbarbella-chromium

Copy link
Copy Markdown
Contributor Author

/gcbrun

@mbarbella-chromium

Copy link
Copy Markdown
Contributor Author

/gcbrun

Comment thread src/python/datastore/data_handler.py Outdated
"""Get FuzzTarget by fully qualified name."""
# TODO(mbarbella): This is a fairly brittle hack. Remove it after finding a
# more general fix for datastore issues with the reproduce tool.
if environment.get_value('REPRODUCE_TOOL'):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is extremely hacky, @oliverchang any thoughts on how to do this better.

@mbarbella-chromium

Copy link
Copy Markdown
Contributor Author

/gcbrun

@mbarbella-chromium

Copy link
Copy Markdown
Contributor Author

/gcbrun

@mbarbella-chromium

Copy link
Copy Markdown
Contributor Author

PTAL. This has a little bit of code duplication in data_types.py but seems much cleaner overall.

@mbarbella-chromium

Copy link
Copy Markdown
Contributor Author

/gcbrun

@inferno-chromium inferno-chromium left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, thanks for doing this.

Comment thread src/local/butler/reproduce.py Outdated
@mbarbella-chromium

Copy link
Copy Markdown
Contributor Author

/gcbrun

@mbarbella-chromium mbarbella-chromium merged commit a4a0f6b into master Aug 28, 2019
@mbarbella-chromium mbarbella-chromium deleted the reproduce-tool-fix branch August 28, 2019 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes CLA signed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants