-
Notifications
You must be signed in to change notification settings - Fork 623
Set fuzzer author as reporter for bugs from external fuzzers #5312
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
Open
jr2bg
wants to merge
10
commits into
master
Choose a base branch
from
feature/report-by-fuzzer-owner
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d991c8b
Set fuzzer author as reporter for bugs from external fuzzers
jr2bg f8ad570
Add license. Modify locations.
jr2bg 62e10a8
Migrate from monorail to buganizer.
jr2bg 4024e3e
Resolve comments on issue filing
jr2bg 5a498d2
Remove migrate and correct comment
jr2bg 751a71e
Remove exception and check attribute in `fuzzer`
jr2bg d85e77a
Restructure mocks for issue filer tests
jr2bg 5c0f78e
consider primary owner on tests
jr2bg cdbe9fe
Add primary owner to data types test
jr2bg 97d0078
Merge remote-tracking branch 'origin/master' into feature/report-by-f…
jr2bg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -320,6 +320,9 @@ def file_issue(testcase, | |
| logs.info(f'Filing new issue for testcase: {testcase.key.id()}.') | ||
|
|
||
| policy = issue_tracker_policy.get(issue_tracker.project) | ||
| fuzzer = data_types.Fuzzer.query( | ||
| data_types.Fuzzer.name == testcase.fuzzer_name).get() | ||
|
|
||
| is_crash = not utils.sub_string_exists_in(NON_CRASH_TYPES, | ||
| testcase.crash_type) | ||
| properties = policy.get_new_issue_properties( | ||
|
|
@@ -343,8 +346,6 @@ def file_issue(testcase, | |
| if issue_tracker.project in ('chromium', 'chromium-testing'): | ||
| if testcase.security_flag: | ||
| # Add reward labels if this is from an external fuzzer contribution. | ||
| fuzzer = data_types.Fuzzer.query( | ||
| data_types.Fuzzer.name == testcase.fuzzer_name).get() | ||
| if fuzzer and fuzzer.external_contribution: | ||
| issue.labels.add(policy.substitution_mapping('reward-topanel')) | ||
| issue.labels.add( | ||
|
|
@@ -482,7 +483,10 @@ def file_issue(testcase, | |
| testcase.one_time_crasher_flag and policy.unreproducible_component): | ||
| issue.components.add(policy.unreproducible_component) | ||
|
|
||
| issue.reporter = user_email | ||
| if fuzzer and fuzzer.primary_owner: | ||
| issue.reporter = fuzzer.primary_owner | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We sometimes use the reporter to determine whether clusterfuzz filed the bug. Is there another place where we are setting metadata of some kind, e.g. a label/hotlist that stays on the bug so that we can continue to track clusterfuzz filed bugs? |
||
| else: | ||
| issue.reporter = user_email | ||
|
|
||
| if issue_tracker.project in ('chromium', 'chromium-testing'): | ||
| logs.info( | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.