Commit Graph

4 Commits (main)

Author SHA1 Message Date
Brian Sheedy 526aace177 Add presubmit checks for mcp/
Adds unittest and pylint checks for the mcp/ directory.

Change-Id: I7aa6a33fea7ac60500b8c865e18f3cf72d425289
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6847122
Reviewed-by: Struan Shrimpton <sshrimp@google.com>
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
2 weeks 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 weeks ago
Struan Shrimpton 56f1f96c4b Specify vpython wheel name for pydantic_core with platform
This wheel was initially incorrectly setup as a UniversalSource wheel
which has since been fixed. Update the .vpython3 file to match

Change-Id: I6f8a7281f050b1712ca27f7b32037b7fe8c8af97
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6782163
Commit-Queue: Jie Sheng <jiesheng@google.com>
Reviewed-by: Jie Sheng <jiesheng@google.com>
Auto-Submit: Struan Shrimpton <sshrimp@google.com>
1 month ago
Struan Shrimpton 75449d2000 mcp: Add some buildbucket tools and the mcp server
These tools are still being evaluated and may change. get_build vs
get_build_from_id and get_build_from_build_number in particular are two
distinct ways of implementing the same tool that need to be compared.
get_build gives flexibility but is extremely verbose which means it
might be too flaky or consume unnecessary tokens. The return of these
might also need filtering for unnecessary output. Particularly steps
which can be very verbose without much information.

Bug: 430952168
Change-Id: Ia9b092a6b6c546198939deb36ea1b89ff33d7fc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6758660
Auto-Submit: Struan Shrimpton <sshrimp@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Erik Staab <estaab@chromium.org>
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
1 month ago