Integrate bug fix/triage tool into BugBug#5959
Open
suhaibmujahid wants to merge 3 commits intomozilla:masterfrom
Open
Integrate bug fix/triage tool into BugBug#5959suhaibmujahid wants to merge 3 commits intomozilla:masterfrom
suhaibmujahid wants to merge 3 commits intomozilla:masterfrom
Conversation
Co-Authored-By: Christian Holler (:decoder) <choller@mozilla.com>
71915fb to
69ce6d2
Compare
There was a problem hiding this comment.
Pull request overview
This PR integrates the Larrey bug-triage/fix workflow into BugBug as a locally runnable CLI tool, and adds a new “duplicate_bugs” agent with associated prompts/config to support duplicate detection workflows.
Changes:
- Add a CLI entry script to run the bug-fix triage agent locally (dry-run, verbose) with Pydantic CLI/env settings.
- Introduce Bugzilla + Firefox in-process MCP servers and Firefox evaluation/build helpers to support triage investigation.
- Add a new duplicate-bugs tool (agent + prompts + config) and ensure prompt/rule artifacts are packaged in wheels.
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/run_bug_fix.py | Local CLI wrapper for running BugFixTool with settings parsed from CLI/env. |
| pyproject.toml | Adds runtime deps and includes prompt/rule artifacts in wheel builds. |
| bugbug/tools/duplicate_bugs/prompts/dupdetector_local_to_local.md | Prompt for local crash-directory deduping. |
| bugbug/tools/duplicate_bugs/prompts/dupdetector_local.md | Prompt for matching a local crash dir to Bugzilla bugs. |
| bugbug/tools/duplicate_bugs/prompts/dupdetector_bugs.md | Prompt for finding duplicates among Bugzilla blockers. |
| bugbug/tools/duplicate_bugs/config.py | Shared config + verdict parsing helpers for duplicate-bugs flows. |
| bugbug/tools/duplicate_bugs/agent.py | Implements the duplicate-bugs agent modes and CLI-style runner logic. |
| bugbug/tools/duplicate_bugs/init.py | Exports DuplicateBugsTool. |
| bugbug/tools/bug_fix/rules/unsupported-config.md | Adds a triage ruleset about unsupported pref/config cases. |
| bugbug/tools/bug_fix/rules/README.md | Documents how triage rulesets are discovered/used. |
| bugbug/tools/bug_fix/prompts/system.md | System prompt for Larrey triage agent, including tool usage constraints. |
| bugbug/tools/bug_fix/firefox_tools/js_shell_evaluator.py | Runs JS shell testcases and captures crash output. |
| bugbug/tools/bug_fix/firefox_tools/evaluate_testcase.py | Runs browser testcases via grizzly and captures crash output. |
| bugbug/tools/bug_fix/firefox_tools/build_firefox.py | Builds Firefox with ASAN fuzzing mozconfig. |
| bugbug/tools/bug_fix/firefox_tools/init.py | Exposes Firefox tool implementations. |
| bugbug/tools/bug_fix/firefox_mcp.py | MCP server exposing Firefox build + evaluation tools. |
| bugbug/tools/bug_fix/config.py | Bug-fix tool config constants (tool allowlists, config keys). |
| bugbug/tools/bug_fix/bugzilla_mcp.py | MCP server wrapping Bugzilla REST access (read/write w/ dry-run + confirm). |
| bugbug/tools/bug_fix/agent.py | Main Larrey triage agent orchestration (Bugzilla + Firefox MCP, rules, streaming). |
| .gitignore | Ignores .env for local runs. |
Comments suppressed due to low confidence (1)
pyproject.toml:23
- The
bugsydependency is unconstrained while most dependencies are version-pinned or at least have a lower bound. To avoid unexpected breakage from upstream releases, add a version range (minimum tested version, optionally an upper bound).
"beautifulsoup4==4.14.3",
"boto3==1.42.78",
"claude-agent-sdk>=0.1.30",
"httpx==0.28.1",
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
marco-c
reviewed
Apr 22, 2026
marco-c
reviewed
Apr 22, 2026
marco-c
reviewed
Apr 22, 2026
marco-c
reviewed
Apr 22, 2026
Co-authored-by: Marco Castelluccio <mcastelluccio@mozilla.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For now, it runs via CLI; I'll follow up by creating a cloud-based service.