一键导入
parse-debug-logs
// Parses massive Terraform debug logs into an easy-to-read outline of API delays, failures, and request payloads.
// Parses massive Terraform debug logs into an easy-to-read outline of API delays, failures, and request payloads.
| name | parse-debug-logs |
| description | Parses massive Terraform debug logs into an easy-to-read outline of API delays, failures, and request payloads. |
parse-debug-logsNote to AI Agents: You MUST read the YAML frontmatter above first. Only read the rest of this file if the
descriptionmatches your current roadblock or required task.
run-acctests execution (e.g., test_output.log).Verify the log file exists.
# Replace /path/to/test_output.log with the actual path
ls -lh /path/to/test_output.log
Execute the tf_debug_parser.py script against the debug logs.
# Execute the parser to extract the outline
python3 <PATH_TO_MAGIC_MODULES>/.agents/scripts/tf_debug_parser.py /path/to/test_output.log --extract-dir <PATH_TO_MAGIC_MODULES>/debug_output
view_file tool to read the generated outline.txt INSIDE the output directory (or its subdirectory if the script creates one). It contains a compressed timeline of API requests/responses and Terraform state transitions.view_file on the specific JSON payload file referenced in outline.txt (e.g., 01_REQUEST_POST.json) found in that same directory..agents/workflows/troubleshooting_reference.md document to map the failure to a known fix strategy before invoking the fix workflow.Plan a remediation strategy after a test failure.
Executes code generation from Magic Modules into downstream Terraform providers and optionally compiles the binary.
Triggers the QA Test Runner subagent to reproduce failures and interpret logs.
Checks sync status and invokes the subagent to align repositories if needed.
Gather context on a change or bug and plan the implementation.
Checks if the downstream provider repository is aligned with the correct Magic Modules base commit.