Skip to content

Commit

Permalink
Clean up for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrace-google committed Jan 24, 2025
1 parent 8270d0b commit ac5e5f2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/clusterfuzz/_internal/cron/external_testcase_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,12 @@ def submit_testcase(issue_id, file, filename, filetype, cmds):

def handle_testcases(tracker):
"""Fetches and submits testcases from bugs or closes unnecssary bugs."""
# TODO(pgrace) remove ID filter once done testing.
issues = tracker.find_issues_with_filters(
keywords=[],
query_filters=['componentid:1600865', 'id:373893311'],
only_open=True)
keywords=[], query_filters=['componentid:1600865'], only_open=True)

if len(issues) == 0:
return

# TODO(pgrace) Cache in redis.
vrp_uploaders = get_vrp_uploaders()

# TODO(pgrace) Implement rudimentary rate limiting.
Expand All @@ -183,8 +179,7 @@ def handle_testcases(tracker):
continue

# Submit valid testcases.
# TODO(pgrace) replace with 0 once testing is complete
attachment_metadata = attachment_metadata[6]
attachment_metadata = attachment_metadata[0]
attachment = tracker.get_attachment(
attachment_metadata['attachmentDataRef']['resourceName'])
submit_testcase(issue.id, attachment, attachment_metadata['filename'],
Expand Down

0 comments on commit ac5e5f2

Please sign in to comment.