Skip to content

Webhook event lost when Bugzilla is down #971

@leplatrem

Description

@leplatrem

According to this code, when we fail at retrieving the bug details and comment, we raise an IgnoreInvalidRequestError.

except Exception as err:
logger.exception(
"Failed to get bug: %s", err, extra=runner_context.model_dump()
)
raise IgnoreInvalidRequestError(
"bug not accessible or bugzilla down"
) from err

We could be a little bit more precise here, and only ignore the event when the HTTPError exception on GET is a 4XX. And add the event in the queue otherwise

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions