From 023c9f4b75c5e91299b77dc90685a083028ce239 Mon Sep 17 00:00:00 2001 From: FrantiĊĦek Zatloukal Date: May 04 2021 11:11:23 +0000 Subject: Mark abrt created bugs with keyword Fixes https://pagure.io/fedora-qa/packager_dashboard/issue/100 --- diff --git a/oraculum/utils/bugzilla.py b/oraculum/utils/bugzilla.py index 8657c18..806ae7e 100644 --- a/oraculum/utils/bugzilla.py +++ b/oraculum/utils/bugzilla.py @@ -138,6 +138,8 @@ def get_all_package_bugs(package): continue if bug.creator == 'Upstream Release Monitoring': bug.keywords.append("ReleaseMonitoring") + if "abrt_hash" in bug.whiteboard: + bug.keywords.append("ABRT") for blocks in bug.blocks: if blocks in ftbfs_trackers and "FTBFS" not in bug.keywords: bug.keywords.append("FTBFS") diff --git a/tests/test_packager_dashboard_bugzilla.py b/tests/test_packager_dashboard_bugzilla.py index 886a4a7..00fa945 100644 --- a/tests/test_packager_dashboard_bugzilla.py +++ b/tests/test_packager_dashboard_bugzilla.py @@ -68,7 +68,7 @@ def bz_query(query): if query["pkg_name"] == "package_b": dct["blocks"] = [5] - dct["whiteboard"] = "AcceptedBlocker" + dct["whiteboard"] = "AcceptedBlocker abrt_hash:86522594c5c3fbee37ab04022303eb83492feec0;VARIANT_ID=workstation;" dct["version"] = "rawhide" if query["pkg_name"] == "package_c": @@ -160,7 +160,7 @@ class TestBugzilla(object): # package_i is rhel private, so there shall be nothing expected_result_i = [] - expected_result_b[0]["keywords"] = ["AcceptedBlocker"] + expected_result_b[0]["keywords"] = ["ABRT", "AcceptedBlocker"] expected_result_b[0]["release"] = "Fedora Rawhide" expected_result_c[0]["keywords"] = ["ProposedBlocker"]