Closed Bug 922981 Opened 11 years ago Closed 11 years ago

Split marDownload.js into individual tests

Categories

(Toolkit :: Application Update, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

Details

Attachments

(1 file)

This is one of the longer running app update xpcshell tests and now that xpcshell tests are run in parallel by default I'm going to split the tests into separate tests.
This test takes as long as 20 seconds on my system while all the other tests take less than a second.
On Linux x64 Opt 

Slowest test is test_0030_general.js at 10588.650ms

Second slowest test is test_0010_timermanager.js at 6853.222ms which tests a bunch of timer notifications

Third slowest test is test_0113_general.js 3261.155ms which applies a complete mar with update staging
Status: NEW → ASSIGNED
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Split test_0030_general.js into individual tests → Split marDownload.js into individual tests
Attachment #823169 - Flags: review?(netzen)
Attachment #823169 - Flags: review?(netzen) → review+
Pushed to fx-team
https://hg.mozilla.org/integration/fx-team/rev/ba3ac8b3853c
Flags: in-testsuite+
Target Milestone: --- → mozilla28
Linux x64 Opt
Before:
downloadMar.js 10395.207ms

After:
downloadAndHashCheckMar.js 3731.356ms
downloadInterruptedRecovery.js 8034.864ms

Windows 7 Opt
Before:
downloadMar.js 22056.000ms

After:
downloadAndHashCheckMar.js 18174.000ms
downloadInterruptedRecovery.js 14478.000ms

Times could be further improved upon... perhaps if time permits
https://hg.mozilla.org/mozilla-central/rev/ba3ac8b3853c
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: