Skip to content

Replace bugsy with libmozdata for Bugzilla MCP in Hackbot#6180

Draft
suhaibmujahid wants to merge 1 commit into
mozilla:masterfrom
suhaibmujahid:worktree-migrate-bugsy-to-libmozdata
Draft

Replace bugsy with libmozdata for Bugzilla MCP in Hackbot#6180
suhaibmujahid wants to merge 1 commit into
mozilla:masterfrom
suhaibmujahid:worktree-migrate-bugsy-to-libmozdata

Conversation

@suhaibmujahid

Copy link
Copy Markdown
Member

Resolves #6179

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) from bugsy to libmozdata and updated the broker to construct a URL/key context instead of a bugsy client.
  • Updated dependency declarations/lockfile entries to drop bugsy and add libmozdata~=0.2.12 for the bugzilla extra.
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop dependency on bugsy

2 participants