Closed Bug 1716378 Opened 5 years ago Closed 5 years ago

Error running xpcshell perftest on Linux

Categories

(Testing :: mozperftest, defect)

Default
defect

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: dminor, Assigned: sparky)

Details

Attachments

(1 file)

I'm seeing the following error trying to run an xpcshell based perftest on my Linux system:

dminor@treebeard:~/src/firefox$ ./mach perftest intl/benchmarks/perftest_dateTimeFormat.js

Good job! Best selection.
intl/benchmarks/perftest_dateTimeFormat.js
 0:01.33 Created profile at /tmp/tmpos4hj7jw.mozrunner
 0:01.34 Running 13 cycles
 0:01.35 Cycle 1
 0:01.35 Found node at /home/dminor/.mozbuild/node/bin/node
 0:01.35 Found moz-http2 at /home/dminor/src/firefox/testing/xpcshell/moz-http2/moz-http2.js
 0:01.51 Found /home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin/http3server
 0:01.51 Using /home/dminor/src/firefox/netwerk/test/http3serverDB
 0:01.53 Running tests sequentially.
 0:01.53 profile dir is /tmp/firefox/xpcshellprofile
 0:01.53 perftest_dateTimeFormat.js | full command: ['/home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin/xpcshell', '-g', '/home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin', '-a', '/home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin', '-m', '-e', 'const _HEAD_JS_PATH = "/home/dminor/src/firefox/testing/xpcshell/head.js";', '-e', 'const _MOZINFO_JS_PATH = "/tmp/firefox/xpcshellprofile/mozinfo.json";', '-e', 'const _PREFS_FILE = "/tmp/tmplfx7_40u/user.js";', '-e', 'const _TESTING_MODULES_DIR = "/home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin/modules/";', '-f', '/home/dminor/src/firefox/testing/xpcshell/head.js', '-e', 'const _HEAD_FILES = ["/home/dminor/src/firefox/intl/benchmarks/head.js"];', '-e', 'const _JSDEBUGGER_PORT = 0;', '-e', 'const _TEST_FILE = ["/home/dminor/src/firefox/intl/benchmarks/perftest_dateTimeFormat.js"];', '-e', 'const _TEST_NAME = "perftest_dateTimeFormat.js";', '-e', '_execute_test(); quit(0);']
 0:01.54 perftest_dateTimeFormat.js | current directory: '/home/dminor/src/firefox/intl/benchmarks'
 0:01.54 perftest_dateTimeFormat.js | environment: ['XPCSHELL_TEST_TEMP_DIR=/tmp/tmplfx7_40u/xpc-other-7tckzp5t', 'MOZ_DISABLE_NONLOCAL_CONNECTIONS=1', 'MOZHTTP3_PORT=60040', 'MOZHTTP2_PORT=33845', 'LD_LIBRARY_PATH=/home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin', 'MOZHTTP3_PORT_NO_RESPONSE=55030', 'MOZHTTP3_PORT_FAILED=54853', 'MOZ_CRASHREPORTER=1', 'MOZNODE_EXEC_PORT=35973', 'MOZ_DISABLE_CONTENT_SANDBOX=1', 'XPCOM_DEBUG_BREAK=stack-and-abort', 'XPCSHELL_TEST_PROFILE_DIR=/tmp/firefox/xpcshellprofile', 'MOZ_CRASHREPORTER_NO_REPORT=1', 'MOZ_WEBRENDER=0', 'MOZ_DISABLE_SOCKET_PROCESS=1', 'MOZ_DEVELOPER_REPO_DIR=/home/dminor/src/firefox']
 0:01.54 perftest_dateTimeFormat.js | as shell command: (cd /home/dminor/src/firefox/intl/benchmarks; XPCSHELL_TEST_TEMP_DIR=/tmp/tmplfx7_40u/xpc-other-7tckzp5t MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 MOZHTTP3_PORT=60040 MOZHTTP2_PORT=33845 LD_LIBRARY_PATH=/home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin MOZHTTP3_PORT_NO_RESPONSE=55030 MOZHTTP3_PORT_FAILED=54853 MOZ_CRASHREPORTER=1 MOZNODE_EXEC_PORT=35973 MOZ_DISABLE_CONTENT_SANDBOX=1 XPCOM_DEBUG_BREAK=stack-and-abort XPCSHELL_TEST_PROFILE_DIR=/tmp/firefox/xpcshellprofile MOZ_CRASHREPORTER_NO_REPORT=1 MOZ_WEBRENDER=0 MOZ_DISABLE_SOCKET_PROCESS=1 MOZ_DEVELOPER_REPO_DIR=/home/dminor/src/firefox /home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin/xpcshell -g /home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin -a /home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin -m -e 'const _HEAD_JS_PATH = "/home/dminor/src/firefox/testing/xpcshell/head.js";' -e 'const _MOZINFO_JS_PATH = "/tmp/firefox/xpcshellprofile/mozinfo.json";' -e 'const _PREFS_FILE = "/tmp/tmplfx7_40u/user.js";' -e 'const _TESTING_MODULES_DIR = "/home/dminor/src/firefox/obj-x86_64-pc-linux-gnu/dist/bin/modules/";' -f /home/dminor/src/firefox/testing/xpcshell/head.js -e 'const _HEAD_FILES = ["/home/dminor/src/firefox/intl/benchmarks/head.js"];' -e 'const _JSDEBUGGER_PORT = 0;' -e 'const _TEST_FILE = ["/home/dminor/src/firefox/intl/benchmarks/perftest_dateTimeFormat.js"];' -e 'const _TEST_NAME = "perftest_dateTimeFormat.js";' -e '_execute_test(); quit(0);')
 0:01.60 JavaScript error: /home/dminor/src/firefox/testing/xpcshell/head.js, line 53: NS_ERROR_FILE_NOT_FOUND: 
 0:01.64 INFO | Result summary:
 0:01.64 INFO | Passed: 0
 0:01.64 INFO | Failed: 1
 0:01.64 INFO | Todo: 0
 0:01.64 INFO | Retried: 0
 0:01.64 Node moz-http2 server shutting down ...
 0:01.65 http3Server server shutting down ...

The error appears to be here: https://searchfox.org/mozilla-central/rev/bea2345ce636dc329ac7133fc0a13c9171777e40/testing/xpcshell/head.js#53.

The same test works fine on my OS X machine.

It runs fine as an xpcshell-test.

Assignee: nobody → gmierz2
Status: NEW → ASSIGNED

:dminor can you verify that this patch works for you on Mac and Linux?

Flags: needinfo?(dminor)

Working for me, thanks for the quick fix!

Flags: needinfo?(dminor)
Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/780e3f303b26 Use correct test modules path in xpcshell layer. r=perftest-reviewers,kimberlythegeek
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: