You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance Claude failure analysis with Velero source and must-gather feedback (#2051)
* Enhance Claude failure analysis with Velero source and must-gather feedback
- Clone openshift/velero (oadp-dev branch) in ci-Dockerfile for source code
investigation during failure analysis
- Add Velero source code investigation prompts to analyze_failures.sh,
enabling Claude to trace errors back to Velero implementation
- Add must-gather improvement suggestions section to analysis output,
creating a feedback loop for improving diagnostics collection
- Add data mover volume restore limitation to error ignore patterns
(claim Selector not supported per velero-io/velero#7946)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add OADP operator source code to failure analysis prompts
Enable Claude to investigate OADP operator source at
/go/src/github.com/openshift/oadp-operator/ during failure analysis:
- Add OADP operator source to Available Artifacts section
- Rename "Velero Source Code Investigation" to "Source Code Investigation"
with subsections for both Velero and OADP packages
- Update Claude invocation prompt to reference OADP source
- List key OADP packages: internal/controller/, pkg/velero/,
pkg/credentials/, api/v1alpha1/, tests/e2e/lib/
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Wesley Hayutin <138787+weshayutin@users.noreply.github.com>
Copy file name to clipboardExpand all lines: tests/e2e/scripts/analyze_failures.sh
+71-1Lines changed: 71 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,8 @@ Read the log file and output a summary containing:
97
97
98
98
5. **Correlation**: Group related errors together - if multiple errors reference the same resource (backup name, PVC, pod), keep them together with their context.
99
99
100
+
6. **Source references**: When you find errors from Velero packages (pkg/backup/, pkg/restore/, pkg/controller/, pkg/nodeagent/), note the file:line references for later source code investigation.
101
+
100
102
Format each error group as:
101
103
--- [package/component name] ---
102
104
[context lines from same package]
@@ -215,6 +217,14 @@ You are analyzing a failed OADP (OpenShift API for Data Protection) E2E test run
215
217
4. **preprocessed-logs.txt**: Pre-extracted errors from large log files (>1MB)
216
218
- Contains error summaries from large logs that were too big to analyze directly
217
219
- Use this for quick access to relevant errors without reading full logs
- Use to investigate OADP-specific errors and reconciliation logic
218
228
219
229
**Note**: Prow's build-log.txt is written by CI infrastructure after tests complete and is NOT available during this analysis. Use the artifacts listed above.
220
230
@@ -229,6 +239,35 @@ This file contains:
229
239
230
240
Cross-reference failures against these patterns before diagnosing as real failures.
231
241
242
+
## Source Code Investigation
243
+
244
+
When analyzing failures, use the source code to understand error origins:
245
+
246
+
1. Locate the error message in the source code
247
+
2. Trace the code path that led to the error
248
+
3. Identify what conditions trigger the error
249
+
4. Check if the error is recoverable, transient, or indicates a real bug
0 commit comments