get_test_results_detailed
Fetch raw test logs from S3 to analyze test failures, automatically scanning for error patterns and returning a structured summary with top error terms and example lines.
Instructions
Get raw test log content via REST API. Fetches actual test output (stored in S3, not accessible via GraphQL). Automatically scans for error patterns and returns a structured summary with top error terms and example lines when errors are found. Use this to understand WHY a test failed, not just that it failed. Requires task_id and test_name from get_patch_failed_jobs results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task identifier from get_patch_failed_jobs response. Found in the 'task_id' field of failed_tasks array. | |
| test_name | Yes | The test name used to locate its log in S3. For resmoke tests this is typically Job0, Job1, etc. For other test runners it may be the full test identifier. Used to construct the S3 log path: TestLogs/{test_name}/global.log. | |
| tail_limit | No | The number of lines to return from the end of the test results. Defaults to 100000 for comprehensive review. | |
| bearer_token | No | Override with a bearer token for this request. If not provided, uses the server's default credentials. | |
| execution_retries | No | Task execution number if task was retried. Usually 0 for first execution, 1+ for retries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |