@@ -353,37 +353,50 @@ def main():
353353 testcase = data_handler .get_testcase_by_id (testcase_id )
354354 except errors .InvalidTestcaseError :
355355 # Already deleted.
356+ logs .info (
357+ f'Skipping testcase { testcase_id } , since it was already deleted.' )
356358 continue
357359
358360 critical_tasks_completed = data_handler .critical_tasks_completed (testcase )
359361
360362 # Skip if testcase's job is removed.
361363 if testcase .job_type not in all_jobs :
364+ logs .info (f'Skipping testcase { testcase_id } , since its job was removed '
365+ f' ({ testcase .job_type } )' )
362366 continue
363367
364368 # Skip if testcase's job is in exclusions list.
365369 if testcase .job_type in excluded_jobs :
370+ logs .info (f'Skipping testcase { testcase_id } , since its job is in the'
371+ f' exclusion list ({ testcase .job_type } )' )
366372 continue
367373
368374 # Emmit the metric for testcases that should be triaged.
369375 _emit_untriaged_testcase_age_metric (critical_tasks_completed , testcase )
370376
371377 # Skip if we are running progression task at this time.
372378 if testcase .get_metadata ('progression_pending' ):
379+ logs .info (f'Skipping testcase { testcase_id } , progression pending' )
373380 continue
374381
375382 # If the testcase has a bug filed already, no triage is needed.
376383 if _is_bug_filed (testcase ):
384+ logs .info (
385+ f'Skipping testcase { testcase_id } , since a bug was already filed.' )
377386 continue
378387
379388 # Check if the crash is important, i.e. it is either a reproducible crash
380389 # or an unreproducible crash happening frequently.
381390 if not _is_crash_important (testcase ):
391+ logs .info (
392+ f'Skipping testcase { testcase_id } , since the crash is not important.' )
382393 continue
383394
384395 # Require that all tasks like minimizaton, regression testing, etc have
385396 # finished.
386397 if not critical_tasks_completed :
398+ logs .info (
399+ f'Skipping testcase { testcase_id } , critical tasks still pending.' )
387400 continue
388401
389402 # For testcases that are not part of a group, wait an additional time to
@@ -398,29 +411,40 @@ def main():
398411 # metadata works well.
399412 if not testcase .group_id and not dates .time_has_expired (
400413 testcase .timestamp , hours = data_types .MIN_ELAPSED_TIME_SINCE_REPORT ):
414+ logs .info (f'Skipping testcase { testcase_id } , pending grouping.' )
401415 continue
402416
403417 if not testcase .get_metadata ('ran_grouper' ):
404418 # Testcase should be considered by the grouper first before filing.
419+ logs .info (f'Skipping testcase { testcase_id } , pending grouping.' )
405420 continue
406421
407422 # If this project does not have an associated issue tracker, we cannot
408423 # file this crash anywhere.
409- issue_tracker = issue_tracker_utils .get_issue_tracker_for_testcase (testcase )
424+ try :
425+ issue_tracker = issue_tracker_utils .get_issue_tracker_for_testcase (
426+ testcase )
427+ except ValueError :
428+ issue_tracker = None
410429 if not issue_tracker :
430+ logs .info (f'No issue tracker detected for testcase { testcase_id } , '
431+ 'publishing message.' )
411432 issue_filer .notify_issue_update (testcase , 'new' )
412433 continue
413434
414435 # If there are similar issues to this test case already filed or recently
415436 # closed, skip filing a duplicate bug.
416437 if _check_and_update_similar_bug (testcase , issue_tracker ):
438+ logs .info (f'Skipping testcase { testcase_id } , since a similar bug'
439+ ' was already filed.' )
417440 continue
418441
419442 # Clean up old triage messages that would be not applicable now.
420443 testcase .delete_metadata (TRIAGE_MESSAGE_KEY , update_testcase = False )
421444
422445 # File the bug first and then create filed bug metadata.
423446 if not _file_issue (testcase , issue_tracker , throttler ):
447+ logs .info (f'Issue filing failed for testcase id { testcase_id } ' )
424448 continue
425449
426450 _create_filed_bug_metadata (testcase )
0 commit comments