Closed Bug 882888 Opened 11 years ago Closed 11 years ago

Intermittent B2G JavascriptException: ReferenceError: OnRefTestLoad is not defined | Automation Error: Exception caught while running tests

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: RyanVM, Assigned: ahal)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

https://tbpl.mozilla.org/php/getParsedLog.php?id=24117289&tree=Mozilla-Inbound b2g_ics_armv7a_gecko_emulator_vm mozilla-inbound opt test crashtest-3 on 2013-06-13 12:44:54 PDT for push 1b40028e5891 slave: tst-linux64-ec2-476 12:53:24 INFO - restarting B2G 12:53:24 INFO - waiting for system-message-listener-ready... 12:53:24 INFO - done 12:53:24 INFO - args: ['/builds/slave/test/build/xre/bin/xpcshell', '-g', '/builds/slave/test/build/xre/bin', '-v', '170', '-f', '/builds/slave/test/build/tests/reftest/reftest/components/httpd.js', '-e', "const _PROFILE_PATH = '/tmp/tmpfXfoqF';const _SERVER_PORT = '8888'; const _SERVER_ADDR ='10.0.2.2';", '-f', '/builds/slave/test/build/tests/reftest/server.js'] 12:53:24 INFO - INFO | remotereftests.py | Server pid: 2231 12:53:34 INFO - profileDir: /tmp/tmpcUvCqI 12:53:34 INFO - REFTEST INFO | runreftest.py | Running tests: start. 12:54:23 INFO - Traceback (most recent call last): 12:54:23 INFO - File "runreftestb2g.py", line 558, in main 12:54:23 INFO - retVal = reftest.runTests(manifest, options, cmdlineArgs) 12:54:23 INFO - File "/builds/slave/test/build/tests/reftest/runreftest.py", line 140, in runTests 12:54:23 INFO - timeout=options.timeout + 30.0) 12:54:23 INFO - File "/builds/slave/test/build/tests/reftest/automation.py", line 1103, in runApp 12:54:23 INFO - stderr = subprocess.STDOUT) 12:54:23 INFO - File "/builds/slave/test/build/tests/reftest/b2gautomation.py", line 281, in Process 12:54:23 INFO - self.marionette.execute_script(script.read(), script_args=self.test_script_args) 12:54:23 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette.py", line 611, in execute_script 12:54:23 INFO - scriptTimeout=script_timeout) 12:54:23 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette.py", line 350, in _send_message 12:54:23 INFO - self._handle_error(response) 12:54:23 INFO - File "/builds/slave/test/build/venv/local/lib/python2.7/site-packages/marionette/marionette.py", line 385, in _handle_error 12:54:23 ERROR - raise JavascriptException(message=message, status=status, stacktrace=stacktrace) 12:54:23 ERROR - JavascriptException: ReferenceError: OnRefTestLoad is not defined 12:54:23 INFO - stacktrace: 12:54:23 INFO - func@chrome://marionette/content/marionette-server.js:783 12:54:23 INFO - @chrome://marionette/content/marionette-server.js:784 12:54:23 INFO - Automation Error: Exception caught while running tests 12:54:23 ERROR - Return code: 1
Don't suppose you can find someone to look at this? :-)
Flags: needinfo?(jgriffin)
With the new error logging we have: 15:05:44 INFO - execute_script @b2gautomation.py, line 281 15:05:44 INFO - inline javascript, line 46 15:05:44 INFO - src: "OnRefTestLoad(win);" http://mxr.mozilla.org/mozilla-central/source/layout/tools/reftest/b2g_start_script.js#47 I don't understand this at all; OnRefTestLoad comes from http://mxr.mozilla.org/mozilla-central/source/layout/tools/reftest/reftest.js#8, and isn't lazily loaded, so I don't understand how it could not be defined, in the line after it's immediately loaded. If it becomes more frequent we'll have to try to loop in some developers to look at this.
Flags: needinfo?(jgriffin)
Attached patch Patch 1.0 - potential fix (deleted) — Splinter Review
So for some unexplained reason this bug was perma-red on Cedar (actually it intermittently passed). For some other unexplained reason, this patch gets rid of the problem. I don't know enough about Javascript modules to understand why, but my theory is that if it got fixed on Cedar it could fix the intermittent problem on m-c/m-i too. At the very least the patch should be harmless.
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
Attachment #768587 - Flags: review?(jgriffin)
Blocks: 885456
Attachment #768587 - Flags: review?(jgriffin) → review+
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: