Closed Bug 1488327 Opened 2 years ago Closed 2 years ago

Use new ADBDevice.reverse in Raptor


(Testing :: Raptor, enhancement)

Not set


(firefox64 fixed)

Tracking Status
firefox64 --- fixed


(Reporter: bc, Assigned: egao)




(1 file) uses adb reverse in two locations which could be replaced with the new reverse method in ADBDevice.

You will also need to update the requirements in to make sure you pull in the updated version of mozdevice.

We will need to make sure that the new version of mozdevice from bug 1484238 is published before landing this change to Raptor.

In addition, the current code does not remove the reverses when the script terminates. We should make sure to remove the reverses when the script terminates either normally or abnormally so that we do not leave them polluting the socket connections.
Assignee: nobody → egao
Blocks: 1473078
Changed two occurrences of _cmd['reverse', port, port] to use the create_socket_connection method from 1484238.
Added code at end of clean_up() to remove opened socket connections.

Checked via manual execution of raptor-speedometer that opened reverse socket connections are removed at conclusion of test.
Comment on attachment 9007288 [details]
Bug 1488327 - Use new ADBDevice.reverse in Raptor r?rwood

Robert Wood [:rwood] has approved the revision.
Attachment #9007288 - Flags: review+
Before landing, please push to try and run 1 raptor desktop test just to ensure the linting and raptor unit tests pass. We can't really test the adb reverse itself since we haven't landed raptor geckoview support in production *yet*. Thanks!
Flags: needinfo?(egao)
Great thanks :egao, lando it! :)
Pushed by
Use new ADBDevice.reverse in Raptor r=rwood
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.