بنقرة واحدة
analyze-failures
Analyze a context file of test failures and produce a fix report
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Analyze a context file of test failures and produce a fix report
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Full pipeline — gather failures, analyze, and search for known fixes
Compare two builds and report new vs recurring failures
Fetch Jenkins build failures and generate a context file for analysis
Import a verified fix from a merged PR into the knowledge base
Search the knowledge base for known fixes related to test failures
استنادا إلى تصنيف SOC المهني
| name | analyze-failures |
| description | Analyze a context file of test failures and produce a fix report |
| user-invocable | true |
Read a previously gathered context file and produce a detailed failure analysis report with root cause grouping and suggested fixes.
/analyze-failures <context-file>
<context-file> (required) — path to a context file generated by /gather-failures or houston analyzeExamples:
/analyze-failures resources/analysis/proton_ipv4_sat-stream-rhel9-Insights-Advisor/35/context.mdRead the entire context file provided in the arguments. It may be large — use offset/limit parameters to read in chunks. The file contains:
If /search-fixes was run before this step (as part of /analyze-build), there may be known fixes from the knowledge base already in the conversation. Use these as reference when analyzing failures:
If the context file includes a Screenshots section for a failure, read each screenshot file using the Read tool. These are PNG images captured at the moment of failure during UI tests. Use them to:
Not all failures will have screenshots — only UI tests that failed will have them.
For deeper analysis, read the relevant source files directly from the local repo clones:
resources/cache/repos/robottelo/ — read the full test files referenced in the context (e.g. tests/foreman/ui/test_rhcloud_inventory.py)resources/cache/repos/foreman/ (theforeman/foreman)resources/cache/repos/katello/ (Katello/katello)resources/cache/repos/foreman_rh_cloud/ (theforeman/foreman_rh_cloud)Cross-reference test code and product code together to determine whether each failure is a test bug or a product bug.
Analyze all failures and write a report to resources/analysis/<job>/<build>/report.md (save it alongside the context file in the same build directory).
The report MUST include for each failure:
Group failures by root cause when multiple parameterized tests fail for the same reason.
End the report with a summary table showing:
Print the path to the saved report and show a summary:
Use this structure:
# Test Failure Report: <job> #<build>
**Build**: <result> | **<N> failures** | **<M> root causes** | <date>
**Product component**: `<CaseComponent>` (<repo>)
---
## Group 1: <root cause description> (<N> failures)
**Tests**: list of affected test names
**File**: file path
**What they do**: 1-2 sentence description
**Where they fail**: specific line and assertion
**Product code context**: what the product code reveals about this failure
**Fix**:
\```diff
--- a/path/to/file.py
+++ b/path/to/file.py
@@ ...
\```
---
## Summary
| Root Cause | Count | Type | Fix Target | Investigation Needed |
|-----------|-------|------|------------|---------------|
| ... | ... | test bug / product bug | robottelo / airgun / nailgun | yes / no |