Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't try to needinfo regression authors, if they are inactive #1466

Merged
merged 2 commits into from Jun 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions auto_nag/scripts/needinfo_regression_author.py
Expand Up @@ -8,6 +8,7 @@

from auto_nag import logger, utils
from auto_nag.bzcleaner import BzCleaner
from auto_nag.user_activity import UserActivity


class RegressionSetStatusFlags(BzCleaner):
Expand Down Expand Up @@ -122,6 +123,18 @@ def comment_handler(bug, bug_id):
):
del bugs[str(bug_id)]

# Exclude bugs where the regressor author is inactive.
# TODO: We can drop this when https://github.com/mozilla/relman-auto-nag/issues/1465 is implemented.
user_activity = UserActivity()
inactive_users = user_activity.check_users(
set(bug["regressor_author_email"] for bug in bugs.values())
)
bugs = {
bug_id: bug
for bug_id, bug in bugs.items()
if bug["regressor_author_email"] not in inactive_users
}

Bugzilla(
bugids=self.get_list_bugs(bugs),
commenthandler=comment_handler,
Expand Down