Closed Bug 1298909 Opened 8 years ago Closed 8 years ago

slowest test information is incorrect

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: dbaron, Assigned: prakhar0409)

Details

Attachments

(2 files)

I just ran:

./mach test layout/style/test/test_selectors.html layout/style/test/test_change_hint_optimizations.html

in a Linux debug build.

and a few key lines quoted from within the output are:

>4 INFO TEST-OK | layout/style/test/test_change_hint_optimizations.html | took 1407ms

>3976 INFO TEST-OK | layout/style/test/test_selectors.html | took 26924ms

>3982 INFO Slowest: 1406ms - /tests/layout/style/test/test_change_hint_optimizations.html

This seems to be lying about which test was slowest!
The first two lines quoted seem correct based on how long things took; it's the third quoted line that's wrong.
removed the requestLongerTimeout(2) from layout/style/test/test_selector.html -> It was changing the timeoutFactor to 2 but TestRunner.js updates slowestTestTime only if timeoutFactor is 1
This is an interesting find!  Can we fix TestRunner.js to update the slowestTestTime ignoring timeoutFactor?
Assignee: nobody → prakhar0409
Prakhar, thanks for the mozreview request!  I would like to not comment out the request for longer timeout, that is needed in cases of debug tests on certain platforms.

Can we have this print out the proper information inside of TestRunner.js ?

One other thing, in the commit message for the patch/review- could you adjust it slightly:
Bug 1298909 - <description>. r?jmaher

make the description something smaller that can easily be read on one line, maybe "report slowest test in all cases, even with requestLongerTimeout() is called."
Comment on attachment 8791580 [details]
Bug 1298909 - report slowest test in all cases, even with requestLongerTimeout() is called.

https://reviewboard.mozilla.org/r/78986/#review77844

this seems like the right thing!  let me push to try to make sure nothing odd comes out of this.
Attachment #8791580 - Flags: review?(jmaher) → review+
Comment on attachment 8791580 [details]
Bug 1298909 - report slowest test in all cases, even with requestLongerTimeout() is called.

https://reviewboard.mozilla.org/r/78986/#review77918
Pushed by jmaher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/42fd3f718fdc
report slowest test in all cases, even with requestLongerTimeout() is called. r=jmaher
https://hg.mozilla.org/mozilla-central/rev/42fd3f718fdc
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: