cleanup remnants of crashmover rearchitecture
Categories
(Socorro :: Antenna, task, P2)
Tracking
(Not tracked)
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.
| Assignee | ||
Comment 1•2 years ago
|
||
I spent some time looking at this to figure out the scope of the issue. I might as well just fix it.
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
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.
| Assignee | ||
Updated•2 years ago
|
Description
•