Closed Bug 1239470 Opened 9 years ago Closed 7 years ago

Running marionette-js-runner tests via marionette-mocha failing

Categories

(Testing Graveyard :: JSMarionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: gaye, Unassigned)

References

Details

### STR 1. Run the following command npm run refresh && cd node_modules/marionette-js-runner && _FORCE_DEBUG=true DEBUG=* ./bin/marionette-mocha --runtime /path/to/gaia/firefox/firefox-bin --host-log stdout test/integration/client_test.js -t 100s --profile-base ../../shared/test/integration/profile.js 2. Note in the logs that the marionette-client asks for a new session ie Wed, 13 Jan 2016 22:04:07 GMT marionette:tcp-sync write [ 0, 1, 'newSession', { capabilities: {} } ] 3. Note in the logs that the marionette server sees the request 1452722647699 Marionette DEBUG conn1 -> Command {id: 1, name: "newSession", parameters: {"capabilities":{}}} 4. The test never starts since sockit-to-me never reads a response to the newSession call and therefore https://github.com/mozilla-b2g/gaia/blob/master/tests/jsmarionette/runner/marionette-js-runner/lib/runtime/hostmanager.js#L134 never resolves. This is blocking Andre from writing a test for his promises driver for the js marionette client.
Blocks: 1227577
Investigated for a little bit and I can see that the stream events here https://github.com/mozilla-b2g/gaia/blob/master/tests/jsmarionette/client/marionette-client/lib/marionette/drivers/tcp-sync.js#L152 aren't ever being called. Additionally, even though there's a mulet process (I see the marionette server log as well as ###################################### forms.js loaded ############################### browserElementPanningAPZDisabled.js loaded ############################### browserElementPanning.js loaded ###################################### BrowserElementCopyPaste.js loaded ######################## BrowserElementChildPreload.js loaded) the mulet ui never comes up. Not sure what's going on.
Aus - do you have any idea what's going on? I'm taking a short break from investigation.
Flags: needinfo?(aus)
Chatted with :gaye on IRC about this issue, we're not sure what's going on, and it's kinda weird and it should obviously not be happening :P I should have time to look at this tomorrow if I can land bug 1175116 tonight / early tomorrow.
Flags: needinfo?(aus)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.