Open Bug 672015 Opened 8 years ago Updated 6 years ago

Runing dom-level1-core, dom-level2-core, and dom-level2-html in the same chunk causes timeouts

Categories

(Testing :: Mochitest, defect)

defect
Not set

Tracking

(Not tracked)

People

(Reporter: bent.mozilla, Unassigned)

References

Details

I recently removed the dom/src/threads directory and saw consistent timeouts in debug mochitest-2 runs. After much debugging I finally figured out that my patch wasn't the problem... It turns out that our mochitest chunking algorithm is simple and can be hazardous.

These are the directories for tests that ran in mochitest-2 before my change:

0 INFO Running tests in tests/content/xml/document/test, tests/content/xslt/tests/mochitest, tests/content/xul/content/test, tests/docshell/test/navigation, tests/docshell/test, tests/dom/indexedDB/test, tests/dom/plugins/test, tests/dom/src/json/test, tests/dom/src/jsurl/test, tests/dom/src/threads/test, tests/dom/tests/mochitest/ajax, tests/dom/tests/mochitest/bugs, tests/dom/tests/mochitest/dom-level0, tests/dom/tests/mochitest/dom-level1-core, tests/dom/tests/mochitest/dom-level2-core

After my change:

0 INFO Running tests in tests/content/xml/document/test, tests/content/xslt/tests/mochitest, tests/content/xul/content/test, tests/docshell/test/navigation, tests/docshell/test, tests/dom/indexedDB/test, tests/dom/plugins/test, tests/dom/src/json/test, tests/dom/src/jsurl/test, tests/dom/tests/mochitest/ajax, tests/dom/tests/mochitest/bugs, tests/dom/tests/mochitest/dom-level0, tests/dom/tests/mochitest/dom-level1-core, tests/dom/tests/mochitest/dom-level2-core, tests/dom/tests/mochitest/dom-level2-html

Before we were luckily splitting dom-level2-core and dom-level2-html into mochitest-2 and mochitest-3, but after my change they both run in mochitest-2. Running all of these tests exceeds the 5400 seconds at which we currently cap each mochitest run.

To work around the problem I simply added a bogus test to dom/src/foo:

http://hg.mozilla.org/integration/mozilla-inbound/rev/8bf078002768

We need some kind of real solution to this, however. The next time someone removes a test directory in mochitest-1 or mochitest-2 we will see these timeouts again and it is very difficult to figure out what's going wrong.
See Also: → 921635
You need to log in before you can comment on or make changes to this bug.