-
Notifications
You must be signed in to change notification settings - Fork 416
grafana-12.0/12.0.1 package update #54105
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
Conversation
octo-sts
bot
commented
May 22, 2025
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
🩹 Build Failed: Patch Application Failed
Build Details
Root Cause Analysis 🔍The second patch (related to gRPC update) failed to apply because it appears to be reversed or already applied. The patch was attempting to modify pkg/storage/unified/resource/health.go but was rejected, causing the build to fail. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixes
Suggested ChangesFile: grafana-12.0.yaml
Replacement: File: fix-pkg-storage-unified-resource-health.go.patch
Click to expand fix analysisAnalysisBased on analyzing the similar fixed build failures, I observe a common pattern: patch failures often occur when patches are either already applied, created for different versions of code, or are being applied in reverse. In all three examples, the solution was either to:
In the current failure case, the patch "fix-pkg-storage-unified-resource-health.go.patch" is failing to apply to the "pkg/storage/unified/resource/health.go" file, with the error indicating the patch may already be applied or reversed. Click to expand fix explanationExplanationThe build failure is occurring because the patch "fix-pkg-storage-unified-resource-health.go.patch" cannot be applied to the source code. The error message specifically states "Reversed (or previously applied) patch detected!" which strongly suggests that either:
Looking at similar fixes, the most straightforward approach is to simply remove the problematic patch from the build process. The error message indicates the patch is likely already applied in the codebase, especially given the "previously applied patch detected" wording. This approach is similar to what was done in Fix Examples #1 and #2, where problematic patches were removed entirely after updating to a newer version where the patches were already incorporated upstream. In the current case, since the error suggests the patch might already be applied, removing it from the build process should allow the build to proceed successfully. If the patch is still necessary but not correctly applying, an alternative would be to recreate the patch against the current source code version. However, given the error message, it's most likely that the patch is simply no longer needed. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |