debug_harness_logs
Download and parse Harness CI logs to access full build/test failure details, filterable by stage, step, or regex for targeted debugging.
Instructions
[Arch Evaluate] Arch generates eval assets, runs eval workflows, and reads CI evidence. Download and parse Harness CI execution logs. Returns parsed, readable log lines.
Use this to get full build/test failure logs beyond what an eval-run status summary includes.
Common usage:
Get test failure details: stage_id="build_test", step_id="unit_tests" or "integration_tests"
Get Docker build errors: stage_id="docker_search_ai", step_id="build_image"
Get security scan failures: stage_id="docker_codetool_sandbox", step_id="trivy_scan"
Use the filter parameter to search for specific errors (e.g., "ECONNREFUSED|mongo|redis"). Requires HARNESS_API_KEY environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of lines to return from the end (default: 200). Ignored when filter is set. | |
| filter | No | Optional regex to filter log lines (e.g., "error|fail|ECONNREFUSED"). Case-insensitive. | |
| step_id | Yes | Step identifier (e.g., integration_tests, unit_tests, trivy_scan, build_image) | |
| stage_id | Yes | Stage identifier (e.g., build_test, docker_search_ai) | |
| pipeline_id | No | Pipeline identifier (default: ci_build) | |
| execution_id | Yes | Pipeline execution ID (from the Harness pipeline URL) | |
| run_sequence | Yes | Build number (e.g., 224, 228) |