Commit Graph

2 Commits (main)

Author SHA1 Message Date
Brian Sheedy 569c95044f Deduplicate mcp/ prpc calls
Deduplicates the various `prpc call` subprocess.run calls throughout
mcp/ in favor of a new run_prpc_call helper.

Also makes a few drive-by cleanup changes that were caught by WIP
presubmit checks.

Change-Id: I3e401cb959ba96f2224ea1a7f7f58795330f643a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6847120
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Struan Shrimpton <sshrimp@google.com>
1 day ago
Brian Sheedy 95155bece7 Add several ResultDB tools
Adds several ResultDB-related tools to the depot_tools MCP server.
Specifically:

* get_non_exonerated_unexpected_results_from_build which gets all test
  results from a build that a normal user would consider failures.
* expand_summary_html which is used to expand the summaryHtml field
  included in a ResultDB result to include referenced artifact content.
* get_test_level_text_artifact which retrieves the content of a test
  result level text artifact.

Together, these allow Gemini to perform some rudimentary test failure
analysis such as grouping related failures together.

Bug: 438226961
Change-Id: I81cd798d7568bb47b1aa476589816253e29a5630
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6842578
Reviewed-by: Struan Shrimpton <sshrimp@google.com>
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
2 days ago