Replace bugsy with libmozdata for Bugzilla MCP in Hackbot#6180
Draft
suhaibmujahid wants to merge 1 commit into
Draft
Replace bugsy with libmozdata for Bugzilla MCP in Hackbot#6180suhaibmujahid wants to merge 1 commit into
suhaibmujahid wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates Hackbot’s Bugzilla MCP broker and agent tool implementations to use libmozdata instead of bugsy, aligning with the project’s existing dependency stack and resolving #6179.
Changes:
- Switched Bugzilla tool implementation (
agent_tools.bugzilla) frombugsytolibmozdataand updated the broker to construct a URL/key context instead of abugsyclient. - Updated dependency declarations/lockfile entries to drop
bugsyand addlibmozdata~=0.2.12for thebugzillaextra. - Reworked/expanded Bugzilla tool tests to mock
libmozdata’s handler-based API flow and cover additional read tools (comments/attachments/download).
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Removes bugsy from the Bugzilla extra metadata and adds libmozdata pinning for the extra. |
libs/agent-tools/tests/test_bugzilla.py |
Updates tests to patch Bugzilla with a handler-replay fake and adds broader tool coverage. |
libs/agent-tools/pyproject.toml |
Replaces the bugzilla extra dependency from bugsy to libmozdata~=0.2.12. |
libs/agent-tools/agent_tools/bugzilla.py |
Re-implements Bugzilla read-only tools using libmozdata + structured error mapping from requests.HTTPError. |
agents/bug-fix/pyproject.toml |
Drops direct bugsy dependency (now satisfied via agent-tools[bugzilla]). |
agents/bug-fix/hackbot_agents/bug_fix/broker.py |
Updates broker startup to use BugzillaContext(api_url, api_key) instead of constructing a bugsy client. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Resolves #6179