21
21
22
22
from appengine .libs import form
23
23
from appengine .libs import gcs
24
- from appengine .libs import helpers
25
24
from clusterfuzz ._internal .config import local_config
26
25
from clusterfuzz ._internal .issue_management .google_issue_tracker import \
27
26
issue_tracker
27
+ from clusterfuzz ._internal .metrics import logs
28
28
29
29
ACCEPTED_FILETYPES = [
30
30
'text/javascript' , 'application/pdf' , 'text/html' , 'application/zip'
@@ -158,18 +158,21 @@ def handle_testcases(tracker, config):
158
158
# Handle bugs that were already submitted and still open.
159
159
older_issues = tracker .find_issues_with_filters (
160
160
keywords = [],
161
- query_filters = ['componentid:1600865' , 'status:accepted' ],
161
+ query_filters = [
162
+ 'componentid:1600865' , 'componentid:1457062+' , 'status:accepted'
163
+ ],
162
164
only_open = True )
163
165
for issue in older_issues :
164
166
# Close out older bugs that may have failed to reproduce.
165
167
if close_issue_if_not_reproducible (issue , config ):
166
- helpers .log ('Closing issue {issue_id} as it failed to reproduce' ,
167
- issue .id )
168
+ logs .info ('Closing issue %s as it failed to reproduce' % issue .id )
168
169
169
170
# Handle new bugs that may need to be submitted.
170
171
issues = tracker .find_issues_with_filters (
171
172
keywords = [],
172
- query_filters = ['componentid:1600865' , 'status:new' ],
173
+ query_filters = [
174
+ 'componentid:1600865' , 'componentid:1457062+' , 'status:new'
175
+ ],
173
176
only_open = True )
174
177
if len (issues ) == 0 :
175
178
return
@@ -189,7 +192,7 @@ def handle_testcases(tracker, config):
189
192
reporters_map [issue .reporter ] = reporters_map .get (issue .reporter , 1 ) + 1
190
193
if close_issue_if_invalid (issue , attachment_metadata , commandline_flags ,
191
194
vrp_uploaders ):
192
- helpers . log ('Closing issue {issue_id} as it is invalid' , issue .id )
195
+ logs . info ('Closing issue %s as it is invalid' % issue .id )
193
196
continue
194
197
195
198
# Submit valid testcases.
@@ -202,7 +205,7 @@ def handle_testcases(tracker, config):
202
205
issue .status = ISSUETRACKER_ACCEPTED_STATE
203
206
issue .
assignee = '[email protected] '
204
207
issue .save (new_comment = comment_message , notify = True )
205
- helpers . log ('Submitted testcase file for issue {issue_id}' , issue .id )
208
+ logs . info ('Submitted testcase file for issue %s' % issue .id )
206
209
207
210
208
211
def main ():
0 commit comments