Closed Bug 1891047 Opened 2 years ago Closed 2 years ago

cleanup remnants of crashmover rearchitecture

Categories

(Socorro :: Antenna, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

References

Details

Attachments

(1 external file)

In bug #1809500, we changed the antenna architecture to do the processing work in the http-request-cycle rather than outside of the http-request-cycle. In the old way of doing things, the crashmover contained a queue of crash report data to process and processed it in a background greenlet. We changed the crashmover so that instead of having a queue and a add_crashreport method to add things to the queue, it now contains the methods to do the work with crashstorage and crashpublish classes.

We need to carry these changes through the tests and remove the remnants of the old way of doing things.

For example, the FakeCrashMover in tests/unittest/breakpad_resource.py doesn't do anything useful anymore--we can remove that and rework the tests to access the crashstorage directly. But in order to do that the tests need to be able to fetch crash data from storage to assert against. Thus antenna/ext/crashstorage_base.py::CrashStorageBase and subclasses need to grow a load_crash method which pulls the crash data from wherever and returns it.

This bug covers that plus whatever else is involved in cleaning up remnants of bug #1809500 and subsequent work.

I spent some time looking at this to figure out the scope of the issue. I might as well just fix it.

Assignee: nobody → willkg
Status: NEW → ASSIGNED

willkg merged PR [mozilla-services/antenna]: bug-1891047: cleanup crashmover-related code (#995) in f4e93fc.

That removes worker_connections, cleans up crashmover-related tests, adds a load_file to crashstorage classes, adds tests for NoOp classes, and fixes setup/teardown for services during tests.

This reduces some of the mocking we did in tests, too.

This was deployed in bug #1892791 tag 2024.04.22.

Flags: needinfo?(willkg)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(willkg)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: