mozilla / mozilla/bugbot

Unexpected behaviour when overwriting `get_bugs()` to filter bugs and using `get_mail_to_auto_ni()` to set the needinfo in the same tool

Open
#1,671 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
68
Forks
92
Avg merge
2d 2h
Merged PRs (30d)
16

Description

In such a case, the needinfo request will be set even if the bug gets filtered out after overwriting the get_bugs() method. This happens because get_mail_to_auto_ni() will be executed to set the needinfo in the bughandler() method:

https://github.com/mozilla/relman-auto-nag/blob/775b77562aa2ccec8420d04c240e919d8a13146b/auto_nag/bzcleaner.py#L327-L338

This could be confusing in the future and cause a tool to wrongly needinfo on the excluded bugs.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read auto_nag/bzcleaner.py around bughandler() and the referenced lines 327-338, along with the get_bugs() and get_mail_to_auto_ni() methods. Trace the order in which filtering and needinfo handling occur; done means excluded bugs no longer receive a needinfo request.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.