@@ -80,7 +80,7 @@ def generate_bug_changes(self, startday, endday, alt_startday, alt_endday):
80
80
81
81
bug_ids , bugs = self .get_bugs (startday , endday )
82
82
option_collection_map = OptionCollection .objects .get_option_collection_map ()
83
- bug_map = self .build_bug_map (bugs , option_collection_map )
83
+ bug_map = self .build_bug_map (bugs , option_collection_map , startday , endday )
84
84
85
85
alt_date_bug_totals = self .get_alt_date_bug_totals (alt_startday , alt_endday , bug_ids )
86
86
@@ -387,10 +387,12 @@ def get_bug_run_info(self, bug):
387
387
info .build_type = "unknown build"
388
388
return info
389
389
390
- def get_task_labels_and_count (self , manifest ):
390
+ def get_task_labels_and_count (self , manifest , start_day , end_day ):
391
391
tasks_and_count = {}
392
392
summary_groups = (
393
- fetch .get_summary_groups () if self .summary_groups is None else self .summary_groups
393
+ fetch .get_summary_groups (start_day , end_day )
394
+ if self .summary_groups is None
395
+ else self .summary_groups
394
396
)
395
397
all_task_labels = summary_groups ["job_type_names" ]
396
398
for tasks_by_manifest in summary_groups ["manifests" ]:
@@ -402,7 +404,7 @@ def get_task_labels_and_count(self, manifest):
402
404
tasks_and_count [task_label ] += count
403
405
return tasks_and_count
404
406
405
- def build_bug_map (self , bugs , option_collection_map ):
407
+ def build_bug_map (self , bugs , option_collection_map , start_day , end_day ):
406
408
"""Build bug_map
407
409
eg:
408
410
{
@@ -434,7 +436,7 @@ def build_bug_map(self, bugs, option_collection_map):
434
436
for bug in bugs :
435
437
bug_id = bug ["bug__bugzilla_id" ]
436
438
manifest = self .get_test_manifest (bug ["bug__summary" ])
437
- task_labels = self .get_task_labels_and_count (manifest )
439
+ task_labels = self .get_task_labels_and_count (manifest , start_day , end_day )
438
440
print (task_labels )
439
441
bug_testrun_matrix = []
440
442
if manifest :
0 commit comments