Great to hear that socket disconnects aren't a big problem any more.
That is really really awesome!!

As far as synchronous vs. async goes, I'd say that optimizing for
making it easy to write tests is generally much more important than
optimizing for getting tests to run fast.

This is especially true if slowness happens on desktop computers
running the test harness, rather than on the phone hardware that we
are testing. Desktop computers are fairly cheap to scale up in
comparison to engineering manpower.

And engineers (me included) tend to dislike test writing and test
debugging enough that anything we can do to make that more pleasant
has a big payoff in the quality and quantity of tests that we have.

/ Jonas


On Wed, Nov 18, 2015 at 2:29 AM, Michael Henretty <[email protected]> wrote:
>
> On Wed, Nov 18, 2015 at 1:47 AM, Aus Lacroix <[email protected]> wrote:
>>
>> Jonas, that particular error is on the decline. Many went away when we
>> rolled out a series of a fixes to run the tests on devices. The error itself
>> was a symptom of a different issue. I would imagine that the ones that we
>> still see occurring are, likely, also not directly related to sockit-to-me.
>
>
> FWIW, in working on bug 1222215 I haven't seen the dreaded "Cannot call send
> of undefined" error once. I didn't want to jinx it, but I think we can
> safely say this is no longer an issue for us (knock on wood).
>
>>
>>
>> Even though this is the case, we recognize that synchronous tcp socket
>> usage isn't ideal (we didn't think it was in the first place, necessarily,
>> it was just the best way to make the tests easy to write).
>>
>> FFWD to now, we're adding a promise based tcp driver for marionette which
>> will enable new tests to be written using promises. Marionette calls would
>> always return a promise which you could .then() to do something else. It's a
>> much nicer, and standardized pattern.
>
>
> Putting in my two cents, I love the fact that sockit-to-me is synchronous.
> It allows me to read, write, and understand tests very quickly. I realize
> there are performance problems with a busy wait, but I don't think this is a
> problem during marionette tests since they aren't user facing. What other
> advantages does switching to a Promise based driver give us? Do we think the
> tests will be less intermittent?
>
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to