Closed Bug 1748484 Opened 3 years ago Closed 3 years ago

implement fake sentry service

Categories

(Socorro :: General, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

References

Details

Attachments

(1 file)

The existing code for the collector, processor, crontabber, and webapp all shut off sentry in the local dev and testing environments. The tests for sentry-related code don't actually test with the sentry client. Further, when there are problems with the error reporting code, the error reporting code is busted, so the errors with the error reporting code go unreported and unnoticed.

The problem with this is that we have nothing that tests with the sentry client, so when that changes, we have no idea.

We should implement a fake sentry service that we can run in the local dev and testing environments that captures and let's us access sentry error submission payloads, assert things against them, and help us debug sentry-related code.

I toyed with this yesterday and threw together something. I was going to include it as part of Socorro because that's easier, but I need this for Tecken and Antenna, too, so I'm going to split it out as yet another project I'll maintain until the heat death of the sun.

Assignee: nobody → willkg
Status: NEW → ASSIGNED

willkg merged PR #5961: "bug 1748484: add fake sentry service" in 4520ff6.

This creates a new fakesentry service and changes the local dev and testing environments to use it for sentry errors.

It also adds an integration test that verifies that sentry is set up correctly and that at least part of the sanitization code is working.

This was deployed just now in bug #1748856.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: