SalesforceShireen NagdiveProblem & solution
How AI Slashed 600-Test-Failure Triage From Days to 90 Minutes
Summary
Salesforce’s retirement of its SOAP API login mechanism deliberately triggered more than 600 test failures, creating a blast radius where genuine regressions could hide among expected failures. The existing manual triage workflow could process only 50 failures at a time, often created duplicate work items, and sometimes misrouted failures, requiring two or three days of effort by multiple engineers. The team built AI-Assisted Test Failure Buddy as a Python and FastMCP process exposing eight tools to Claude Code or Cursor, connecting to Salesforce’s internal GUS workflow system. Deterministic code handles API operations and regex parsing, while AI interprets novel stack traces and resolves ambiguous ownership across teams. One engineer processed 600 failures in approximately 90 minutes using the tool, which has since been adopted by three or four teams.
Context
Salesforce’s retirement of its SOAP API login mechanism deliberately triggered more than 600 test failures across teams. Expected failures and genuine regressions could produce similar exceptions, span multiple scrum teams, and appear expected even when something else had broken. The existing manual workflow could process only 50 failures at a time, could create duplicate work items, and sometimes misrouted failures, requiring two or three days of triage by multiple engineers.
Approach / What changed
The team built AI-Assisted Test Failure Buddy as a Python and FastMCP process exposing eight tools to Claude Code or Cursor. The system retrieves failures, obtains stack traces, analyzes patterns, and reassigns work through an interface layer of typed MCP tools, a core logic layer for API calls and pattern matching, and a support layer for authentication. Deterministic code handles API operations and regex parsing, while AI interprets novel stack traces and resolves ambiguous ownership.
Takeaways
The tool combines deterministic code for API operations and regex parsing with AI to interpret novel stack traces and resolve ambiguous ownership across teams.
The MCP tool assigns related failures to one existing work item rather than creating new ones, using explicit failure IDs to avoid misrouting and duplicates.
One engineer processed 600 test failures in approximately 90 minutes using the tool, compared to an estimated two or three days of manual triage by multiple engineers.
FAQ
How does the tool avoid creating duplicate work items?
The MCP tool assigns related failures to one specified existing work item rather than allowing each batch to create another. Explicit failure IDs replace the broader interface action that had sometimes misrouted results, and a shared message lets engineers communicate the reason and mitigation consistently across an entire group.
What is the architecture of AI-Assisted Test Failure Buddy?
The tool is structured as a Python and FastMCP process exposing eight tools to Claude Code or Cursor. An interface layer defines typed, self-describing MCP tools; a core logic layer controls API calls, validation, batching, clustering, and reassignment; and a support layer manages authentication and token handling.
Source and freshness
- Source
- engineering.salesforce.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.