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
* Add purged state for debuginfo uploads
This commit introduces a new STATE_PURGED state to track debuginfo that
has been cleaned up from storage. This allows the system to:
1. Signal to users that debuginfo existed but was purged/cleaned up
2. Allow re-uploading of purged debuginfo
3. Prevent symbolization attempts with purged debuginfo
Changes:
- Add STATE_PURGED enum value to proto definition
- Update generated Go and TypeScript code
- Add MarkAsPurged method to ObjectStoreMetadata
- Handle purged state in ShouldInitiateUpload (allows re-upload)
- Handle purged state in symbolizer (returns ErrDebuginfoPurged)
- Add ErrDebuginfoPurged error definition
* [pre-commit.ci lite] apply automatic fixes
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: pkg/debuginfo/store.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,7 @@ const (
126
126
ReasonDebuginfoInvalid="Debuginfo already exists but is marked as invalid, therefore a new upload is needed. Hash the debuginfo and initiate the upload."
127
127
ReasonDebuginfoEqual="Debuginfo already exists and is marked as invalid, but the proposed hash is the same as the one already available, therefore the upload is not accepted as it would result in the same invalid debuginfos."
128
128
ReasonDebuginfoNotEqual="Debuginfo already exists but is marked as invalid, therefore a new upload will be accepted."
129
+
ReasonDebuginfoPurged="Debuginfo was previously uploaded but has been purged/cleaned up, therefore a new upload is needed."
129
130
ReasonDebuginfodSource="Debuginfo is available from debuginfod already and not marked as invalid, therefore no new upload is needed."
130
131
ReasonDebuginfodInvalid="Debuginfo is available from debuginfod already but is marked as invalid, therefore a new upload is needed."
0 commit comments