Closed
Bug 1224031
Opened 9 years ago
Closed 9 years ago
[fxos-device-service] Fix intermittent bustage from /files implementation
Categories
(Firefox OS Graveyard :: Infrastructure, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.6 S2 - 12/4
People
(Reporter: Eli, Assigned: Eli)
Details
(Whiteboard: [systemsfe])
Attachments
(1 file)
Ever since the implementation of /files landed, Travis has been having intermittent failures. Investigate and fix.
Assignee | ||
Comment 1•9 years ago
|
||
So in trying to root cause this, I was never able to replicate locally, but would continuously get intermittents from Travis. Iterating on this patch, the current implementation was tested 6 times through Travis with no failures, which is something I could not achieve while testing any of my other patches. I'd like to say this one resolves the issue.
I believe the problem stemmed from the usage of the `adb shell cat` command, but I can't say for sure. I've refactored out our usage of the cats, in favor of doing an adb pull to a tempdir, and then streaming the file to the client with some decent error checking.
I've also cleaned this up into a middleware response method, available as `res.sendFromDevice(remotePath)`. It cleans up code in a few places, which is a nice side effect. Let me know your thoughts.
Attachment #8686317 -
Flags: review?(gaye)
Comment 2•9 years ago
|
||
Comment on attachment 8686317 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/fxos-device-service/pull/26
r+ with nits. Overall looks great though thanks!
Attachment #8686317 -
Flags: review?(gaye) → review+
Assignee | ||
Comment 3•9 years ago
|
||
In master: https://github.com/mozilla-b2g/fxos-device-service/commit/6fcbbcdf444e2d96b9df518e81b76b3fff0e0be3
Thanks!
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe]
Target Milestone: 2.6 S1 - 11/20 → 2.6 S2 - 12/4
You need to log in
before you can comment on or make changes to this bug.
Description
•