-
Notifications
You must be signed in to change notification settings - Fork 90
Enhance Claude failure analysis with Velero source and must-gather feedback #2051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,12 @@ RUN curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && \ | |
| npm install -g @anthropic-ai/claude-code && \ | ||
| dnf clean all | ||
|
|
||
| # Clone openshift/velero source code for failure analysis | ||
| # Uses oadp-dev branch to match OADP operator development | ||
| RUN git clone --depth 1 --branch oadp-dev \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the Velero clone fails (network issue, branch rename), the Docker build will continue but Claude's analysis will reference non-existent files. Consider adding error handling:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build log for this container is not seen by Claude so I'm not sure echo here does anything.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The hardcoded oadp-dev branch works for current development, but may need updating if Velero's branch naming changes or if release branches need different Velero versions. A future enhancement could make this configurable via ARG VELERO_BRANCH=oadp-dev.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make it so you can specify a branch from Makefile right? So when this is cherry picked only change the Makefile right?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure works |
||
| https://github.com/openshift/velero.git \ | ||
| /go/src/github.com/openshift/velero | ||
|
|
||
| RUN go mod download && \ | ||
| mkdir -p $(go env GOCACHE) && \ | ||
| chmod -R 777 ./ $(go env GOCACHE) $(go env GOPATH) | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -97,6 +97,8 @@ Read the log file and output a summary containing: | |||||
|
|
||||||
| 5. **Correlation**: Group related errors together - if multiple errors reference the same resource (backup name, PVC, pod), keep them together with their context. | ||||||
|
|
||||||
| 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. | ||||||
|
||||||
| 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. | |
| 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. |
Uh oh!
There was an error while loading. Please reload this page.