parse-debug-logs
Parses massive Terraform debug logs into an easy-to-read outline of API delays, failures, and request payloads.
来源信息
- 仓库
- GoogleCloudPlatform/magic-modules
- 最近来源活动
- 2026年7月10日 18:11
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 975
- Forks
- 2,573
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- 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-logs`
> **Note to AI Agents:** You MUST read the YAML frontmatter above first. Only read the rest of this file if the `description` matches your current roadblock or required task.
## Prerequisites
* You must have a debug log file resulting from a failed `run-acctests` execution (e.g., `test_output.log`).
## Execution Steps
### 1. Verification
Verify the log file exists.
#### Verify Log Exists
```bash
# Replace /path/to/test_output.log with the actual path
ls -lh /path/to/test_output.log
```
### 2. The Core Commands
Execute the `tf_debug_parser.py` script against the debug logs.
#### Parse Debug Logs
```bash
# 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
```
### 3. Verification & Handoff
* Use the `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.
* If you find an API error (HTTP 4xx or 5xx) or an unexpected default field, use `view_file` on the specific JSON payload file referenced in `outline.txt` (e.g., `01_REQUEST_POST.json`) found in that same directory.
* Pivot to the `.agents/skills/operations/troubleshooting_reference.md` document to map the failure to a known fix strategy before invoking the `fix` workflow.
在 GitHub 查看