From 03a70a947ce6696754838a6ef1e75d8739e8d331 Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Wed, 22 Jan 2025 08:07:33 -0500 Subject: [PATCH 1/2] [perfalert_inactive_regression] Avoid commenting more than once --- bugbot/rules/perfalert_inactive_regression.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bugbot/rules/perfalert_inactive_regression.py b/bugbot/rules/perfalert_inactive_regression.py index 72134ff33..1055ec326 100644 --- a/bugbot/rules/perfalert_inactive_regression.py +++ b/bugbot/rules/perfalert_inactive_regression.py @@ -60,6 +60,10 @@ def get_bz_params(self, date): "f5": "days_elapsed", "o5": "greaterthan", "v5": self.nweeks * 7, + "n6": 1, + "f6": "longdesc", + "o6": "casesubstring", + "v6": "which triggered this performance alert, could you please provide a progress update?", "status": ["UNCONFIRMED", "NEW", "REOPENED"], "resolution": ["---"], } From 57262b3d0f2ff5691ed0d120d022e097d927d9be Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Wed, 22 Jan 2025 08:08:40 -0500 Subject: [PATCH 2/2] [perfalert_inactive_regression] Avoid adding a needinfo when there is pending one --- bugbot/rules/perfalert_inactive_regression.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bugbot/rules/perfalert_inactive_regression.py b/bugbot/rules/perfalert_inactive_regression.py index 1055ec326..9b3451061 100644 --- a/bugbot/rules/perfalert_inactive_regression.py +++ b/bugbot/rules/perfalert_inactive_regression.py @@ -64,6 +64,9 @@ def get_bz_params(self, date): "f6": "longdesc", "o6": "casesubstring", "v6": "which triggered this performance alert, could you please provide a progress update?", + "f7": "flagtypes.name", + "o7": "notsubstring", + "v7": "needinfo?", "status": ["UNCONFIRMED", "NEW", "REOPENED"], "resolution": ["---"], }