Re: ESlint rule 'no-arbitrary-setTimeout' enabled on xpcshell tests

2017-08-11 Thread Andrew Halberstadt
This is now also enabled on browser-chrome tests. Bug 1389234 has been filed to track deprecating SimpleTest.requestFlakyTimeout on mochitest-plain and chrome in favour of this new rule. -Andrew On Fri, Jul 28, 2017 at 12:02 PM Andrew Halberstadt < ahalberst...@mozilla.com> wrote: > Ah, good to

Re: ESlint rule 'no-arbitrary-setTimeout' enabled on xpcshell tests

2017-07-28 Thread Josh Matthews
Since this seems to only look for setTimeout, which is a relatively rare construct in xpcshell tests, should we be looking for do_timeout calls that use a non-zero argument as well? Cheers, Josh On 7/28/17 11:48 AM, Andrew Halberstadt wrote: As part of a larger effort to reduce oranges, we ar

Re: ESlint rule 'no-arbitrary-setTimeout' enabled on xpcshell tests

2017-07-28 Thread Andrew Halberstadt
Ah, good to know! I'll file a follow-up to enable the eslint rule on browser/a11y/chrome. Maybe eventually we can just replace the requestFlakyTimeout mechanism with this eslint rule. I decided to punt on that as I'm not sure if eslint is running on 100% of mochitests yet. On Fri, Jul 28, 2017 at

Re: ESlint rule 'no-arbitrary-setTimeout' enabled on xpcshell tests

2017-07-28 Thread Felipe G
I'll note that requestFlakyTimeout is only enabled for mochitest-plain at the moment: http://searchfox.org/mozilla-central/source/testing/ mochitest/tests/SimpleTest/SimpleTest.js#666 So browser-chrome / a11y / chrome tests are still able to use non-0 timeouts. Cheers, Felipe On Fri, Jul 28, 2017

ESlint rule 'no-arbitrary-setTimeout' enabled on xpcshell tests

2017-07-28 Thread Andrew Halberstadt
As part of a larger effort to reduce oranges, we are starting to lint our tests for common causes of intermittent failures. One low-hanging fruit is preventing setTimeout with an arbitrary value (aka non-zero) as opposed to waiting for an appropriate event. The mochitest harness already prevents th