Closed Bug 1116755 Opened 5 years ago Closed 5 years ago

webapprt-chrome mochitests fail with "Test attempted to use a flaky timeout value 45000"

Categories

(Testing :: Mochitest, defect)

x86_64
Linux
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED
mozilla37

People

(Reporter: marco, Assigned: ehsan)

References

Details

Attachments

(1 file)

I think we're not using any timeout in those tests
Flags: needinfo?(ehsan)
Blocks: 899707
Please either tell me which test file you're mentioning, or give me some information on how to run these tests.  Here is what I tried and did not work:

$ ./mach webapprt-test-chrome
SUITE-START | Running 17 tests
pk12util: PKCS12 IMPORT SUCCESSFUL
MochitestServer : launching [u'/Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/bin/xpcshell', '-g', u'/Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/NightlyDebug.app/Contents/Resources', '-v', '170', '-f', u'/Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/tmpPTnbej.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false;", '-f', '/Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/_tests/testing/mochitest/server.js']
runtests.py | Server pid: 68001
runtests.py | Websocket server pid: 68002
runtests.py | SSL tunnel pid: 68003
[68001] WARNING: Re-registering a CID?: file /Users/ehsan/moz/src/xpcom/components/nsComponentManager.cpp, line 531
runtests.py | Running tests: start.

runtests.py | Application pid: 68004
2014-12-31 11:01:40.596 webapprt-stub[68004:12331517] MY WEBAPPRT BUILDID: 20141231092213
2014-12-31 11:01:40.597 webapprt-stub[68004:12331517] found override firefox binary: (null)
2014-12-31 11:01:40.597 webapprt-stub[68004:12331517] SEARCHING for webapprt, trying: org.mozilla.nightly
2014-12-31 11:01:40.599 webapprt-stub[68004:12331517] USING FIREFOX : /Applications/FirefoxNightly.app
2014-12-31 11:01:40.600 webapprt-stub[68004:12331517] Looking for firefox ini file here: /Applications/FirefoxNightly.app/Contents/Resources/application.ini
2014-12-31 11:01:40.601 webapprt-stub[68004:12331517] FIREFOX WEBAPPRT BUILDID: 20141219030202
2014-12-31 11:01:40.601 webapprt-stub[68004:12331517] ### This Application has an old webrt. Updating it.
2014-12-31 11:01:40.602 webapprt-stub[68004:12331517] ### My webapprt path: /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/NightlyDebug.app/Contents/Resources/webapprt
2014-12-31 11:01:40.602 webapprt-stub[68004:12331517] ### Trying Firefox webapprt path: /Applications/FirefoxNightly.app/Contents/Resources/webapprt-stub
2014-12-31 11:01:40.611 webapprt-stub[68004:12331517] ### Successfully updated webapprt, relaunching
2014-12-31 11:01:40.611 webapprt-stub[68004:12331517]  launching webrt at path: /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/NightlyDebug.app/Contents/Resources/webapprt
2014-12-31 11:01:40.611 webapprt-stub[68004:12331517] COMMAND LINE: '/Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/NightlyDebug.app/Contents/Resources/webapprt /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/NightlyDebug.app/Contents/Resources/webapprt'
2014-12-31 11:01:40.626 webapprt[68004:12331517] MY WEBAPPRT BUILDID: 20141219030202
2014-12-31 11:01:40.627 webapprt[68004:12331517] found override firefox binary: (null)
2014-12-31 11:01:40.627 webapprt[68004:12331517] SEARCHING for webapprt, trying: org.mozilla.nightly
2014-12-31 11:01:40.628 webapprt[68004:12331517] USING FIREFOX : /Applications/FirefoxNightly.app
2014-12-31 11:01:40.629 webapprt[68004:12331517] Looking for firefox ini file here: /Applications/FirefoxNightly.app/Contents/Resources/application.ini
2014-12-31 11:01:40.629 webapprt[68004:12331517] FIREFOX WEBAPPRT BUILDID: 20141219030202
2014-12-31 11:01:40.629 webapprt[68004:12331517] This Application has the newest webrt.  Launching!
2014-12-31 11:01:40.629 webapprt[68004:12331517] Set XUL_APP_FILE to: /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/NightlyDebug.app/Contents/Resources/Contents/MacOS/webapp.ini
2014-12-31 11:01:40.700 webapprt[68004:12331517] WebappRT application.ini path: /Applications/FirefoxNightly.app/Contents/Resources/webapprt/webapprt.ini
2014-12-31 11:01:40.702 webapprt[68004:12331517] /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/dist/NightlyDebug.app/Contents/Resources/Contents/MacOS/webapp.ini was not found
2014-12-31 11:01:40.702 webapprt[68004:12331517] got exception: Unable to parse environment files for application startup
TEST-INFO | Main app process: exit 0

runtests.py | Application ran for: 0:00:00.128796
zombiecheck | Reading PID log: /var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/tmp5Dr13cpidlog
Stopping web server
Stopping web socket server
Stopping ssltunnel
WARNING | leakcheck | refcount logging is off, so leaks can't be detected!
runtests.py | Running tests: end.
SUITE-END | took 2s
Flags: needinfo?(ehsan) → needinfo?(mar.castelluccio)
There's probably a bug on Mac, can you run the tests on a Linux machine? (./mach webapprt-test-chrome is the right command)
Flags: needinfo?(mar.castelluccio)
(In reply to Marco Castelluccio [:marco] from comment #2)
> There's probably a bug on Mac, can you run the tests on a Linux machine?
> (./mach webapprt-test-chrome is the right command)

It's bug 1097243.
Flags: needinfo?(ehsan)
The stdout output gives the exact stack trace for this error:

87 INFO TEST-UNEXPECTED-FAIL | chrome://mochitests/content/webapprtChrome/webapprt/test/chrome/browser_install-app.js | Test attempted to use a flaky timeout value 45000 -
Stack trace:
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest_setTimeoutShim:635
chrome://mochikit/content/browser-test.js:Tester_execTest:718
chrome://mochikit/content/browser-test.js:Tester.prototype.nextTest</<:593
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:750

It would have been much easier to diagnose the bug with this information.
Flags: needinfo?(ehsan)
Attachment #8544761 - Flags: review?(ted)
Assignee: nobody → ehsan
Component: Webapp Runtime → BrowserTest
Product: Firefox → Testing
Attachment #8544761 - Flags: review?(ted) → review+
https://hg.mozilla.org/mozilla-central/rev/cc8f76c2d74d
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Component: BrowserTest → Mochitest
You need to log in before you can comment on or make changes to this bug.