зеркало из https://github.com/mozilla/bugbug.git
Download up to three level of regressed_by, regressions, blocks
This commit is contained in:
Родитель
3b4eae1b23
Коммит
5ec3c6da6e
|
@ -94,18 +94,19 @@ class Retriever(object):
|
|||
bugzilla.download_bugs(all_ids)
|
||||
|
||||
# Get regression_related_ids again (the set could have changed after downloading new bugs).
|
||||
regression_related_ids = sum(
|
||||
(
|
||||
bug["regressed_by"] + bug["regressions"] + bug["blocks"]
|
||||
for bug in bugzilla.get_bugs()
|
||||
),
|
||||
[],
|
||||
)
|
||||
logger.info(
|
||||
f"{len(regression_related_ids)} bugs which caused regressions fixed by commits."
|
||||
)
|
||||
for i in range(3):
|
||||
regression_related_ids = sum(
|
||||
(
|
||||
bug["regressed_by"] + bug["regressions"] + bug["blocks"]
|
||||
for bug in bugzilla.get_bugs()
|
||||
),
|
||||
[],
|
||||
)
|
||||
logger.info(
|
||||
f"{len(regression_related_ids)} bugs which caused regressions fixed by commits."
|
||||
)
|
||||
|
||||
bugzilla.download_bugs(regression_related_ids)
|
||||
bugzilla.download_bugs(regression_related_ids)
|
||||
|
||||
# Try to re-download inconsistent bugs, up to three times.
|
||||
inconsistent_bugs = bugzilla.get_bugs(include_invalid=True)
|
||||
|
|
Загрузка…
Ссылка в новой задаче