Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[not_landed] Clear BugBot needinfos when prompted patches land on an open bug

Open
#3,052 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Start with the status-based cleanup described in #3003 and #3004, and trace how BugBot-created not_landed needinfos are matched to patches. Define a reliable match using information from the original bot comment, then add coverage for multiple prompted patches, later or obsolete attachments, missing revisions, unrelated flags, and patches that are later backed out.

Written by the indexing model from the issue text.

Description

Follow-up to #3003, whose initial scope is cleanup on bugs closed as FIXED in #3004.

A patch can land while its Bugzilla bug stays open. In that case, a not_landed needinfo about that patch is no longer actionable, but the status-based cleanup does not remove it.

Clear pending needinfo flags created by not_landed once all patches that prompted that particular request have landed, even if the bug remains open. Leave human-created needinfos and flags created by other BugBot rules untouched.

The key design question is how to identify the original patches reliably. Current attachments alone are insufficient: unrelated patches may be added later, and original attachments may become obsolete. One option to evaluate is including explicit revision links in the original needinfo comment, allowing cleanup to check the patches named in the matching bot comment without custom database tracking. Historical comments without that information should not be cleared based on guesses.

Include coverage for multiple prompted patches, later unrelated attachments, obsolete attachments, missing/inaccessible revisions, and unrelated flags. The design should also consider patches that land and are subsequently backed out.

This is distinct from #2404, which concerns arbitrary pending needinfos on closed bugs.

Dominant language
Python
Stars
69
Forks
93
Avg merge
3d 11h
Merged PRs (30d)
19

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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.

More from mozilla/bugbot

All issues in mozilla/bugbot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.