Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions services/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,17 @@
result.error = ProcessingError(code=UploadErrorCode.REPORT_EMPTY, params={})
raw_report_info.error = result.error
return result
except SoftTimeLimitExceeded as e:
sentry_sdk.capture_exception(e)
log.warning(

Check warning on line 683 in services/report/__init__.py

View check run for this annotation

Codecov Notifications / codecov/patch

services/report/__init__.py#L682-L683

Added lines #L682 - L683 were not covered by tests
"Timed out while processing report", extra=dict(reportid=reportid)
)
result.error = ProcessingError(

Check warning on line 686 in services/report/__init__.py

View check run for this annotation

Codecov Notifications / codecov/patch

services/report/__init__.py#L686

Added line #L686 was not covered by tests
code=UploadErrorCode.PROCESSING_TIMEOUT, params={}
)
raw_report_info.error = result.error

Check warning on line 689 in services/report/__init__.py

View check run for this annotation

Codecov Notifications / codecov/patch

services/report/__init__.py#L689

Added line #L689 was not covered by tests
# Return and attempt to save the error result rather than re-raise
return result

Check warning on line 691 in services/report/__init__.py

View check run for this annotation

Codecov Notifications / codecov/patch

services/report/__init__.py#L691

Added line #L691 was not covered by tests
except Exception as e:
sentry_sdk.capture_exception(e)
log.exception(
Expand Down
Loading