chore: include underlying error when logging failed exploit intelligence job reason - #2568
Merged
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefines how exploit intelligence request errors are propagated into analysis errors so that logs include the full underlying error details instead of generic user-facing messages, and simplifies EI upload error handling to rely on this richer error conversion. Sequence diagram for updated EI upload error propagationsequenceDiagram
participant Caller
participant upload_sbom
participant classify_response_error
participant AnalysisError
Caller->>upload_sbom: upload_sbom(label, request)
upload_sbom->>classify_response_error: classify_response_error(label, request.send().await)
classify_response_error-->>upload_sbom: Result<Response, EiRequestError>
alt Ok
upload_sbom-->>Caller: Ok(Response)
else Err(EiRequestError)
upload_sbom->>AnalysisError: AnalysisError::from(EiRequestError)
AnalysisError-->>Caller: Err(AnalysisError)
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
rh-jfuller
reviewed
Aug 12, 2026
|
Successfully created backport PR for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously if an EI request job failed, we would log the following which doesnt give much information:
failing job: retries exhausted job_id=019ff11e-3217-7473-938a-28743c159835 error=analysis service temporarily unavailable attempt=3 max_retries=3With this change, we will log something as such instead:
failing job: retries exhausted job_id=019ff11d-c2c0-7151-82ff-9bb600403776 error=SPDX upload: HTTP 429 Too Many Requests: {"error": "mock upload failure (HTTP 429)"} attempt=3 max_retries=3Fixes TC-5541
Summary by Sourcery
Improve exploit intelligence job failure handling to surface detailed underlying errors in logs and error classification.
Enhancements: