Closed Bug 1513783 Opened 6 years ago Closed 6 years ago

Perma wpt-wr CCov [tier2] Error: chrome://marionette/content/PerTestCoverageUtils.jsm - Couldn't find target object for import.

Categories

(Testing :: web-platform-tests, defect, P5)

Version 3
defect

Tracking

(firefox66 fixed)

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jandem)

References

Details

(Keywords: intermittent-failure, Whiteboard: [stockwell disable-recommended])

Attachments

(1 file, 1 obsolete file)

Filed by: csabou [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=216738963&repo=mozilla-central https://queue.taskcluster.net/v1/task/HAOxLDZpSduHTUuOrFxEQg/runs/0/artifacts/public/logs/live_backing.log https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://queue.taskcluster.net/v1/task/HAOxLDZpSduHTUuOrFxEQg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1 [task 2018-12-13T05:16:17.273Z] 05:16:17 INFO - PID 914 | Couldn't convert chrome URL: chrome://branding/locale/brand.properties [task 2018-12-13T05:16:17.273Z] 05:16:17 INFO - PID 914 | [CodeCoverage] Setting handlers for process 1070. [task 2018-12-13T05:16:17.536Z] 05:16:17 ERROR - Traceback (most recent call last): [task 2018-12-13T05:16:17.536Z] 05:16:17 ERROR - File "/builds/worker/workspace/build/tests/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py", line 53, in setup [task 2018-12-13T05:16:17.536Z] 05:16:17 ERROR - getattr(self, cls.name).setup() [task 2018-12-13T05:16:17.536Z] 05:16:17 ERROR - File "/builds/worker/workspace/build/tests/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py", line 410, in setup [task 2018-12-13T05:16:17.536Z] 05:16:17 ERROR - self.is_enabled = self.marionette.execute_script(script) [task 2018-12-13T05:16:17.536Z] 05:16:17 ERROR - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1755, in execute_script [task 2018-12-13T05:16:17.537Z] 05:16:17 ERROR - rv = self._send_message("WebDriver:ExecuteScript", body, key="value") [task 2018-12-13T05:16:17.538Z] 05:16:17 ERROR - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 26, in _ [task 2018-12-13T05:16:17.539Z] 05:16:17 ERROR - return func(*args, **kwargs) [task 2018-12-13T05:16:17.540Z] 05:16:17 ERROR - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 764, in _send_message [task 2018-12-13T05:16:17.545Z] 05:16:17 ERROR - self._handle_error(err) [task 2018-12-13T05:16:17.545Z] 05:16:17 ERROR - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 784, in _handle_error [task 2018-12-13T05:16:17.546Z] 05:16:17 ERROR - raise errors.lookup(error)(message, stacktrace=stacktrace) [task 2018-12-13T05:16:17.546Z] 05:16:17 ERROR - JavascriptException: Error: chrome://marionette/content/PerTestCoverageUtils.jsm - Couldn't find target object for import. [task 2018-12-13T05:16:17.548Z] 05:16:17 ERROR - stacktrace: [task 2018-12-13T05:16:17.548Z] 05:16:17 ERROR - @tests/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py:411:7 [task 2018-12-13T05:16:17.548Z] 05:16:17 ERROR - @tests/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py:410:2 [task 2018-12-13T05:16:17.548Z] 05:16:17 ERROR - evaluate.sandbox/promise<@chrome://marionette/content/evaluate.js:128:13 [task 2018-12-13T05:16:17.548Z] 05:16:17 ERROR - evaluate.sandbox@chrome://marionette/content/evaluate.js:97:17 [task 2018-12-13T05:16:17.548Z] 05:16:17 ERROR - GeckoDriver.prototype.execute_@chrome://marionette/content/driver.js:1029:19 [task 2018-12-13T05:16:17.549Z] 05:16:17 ERROR - async*GeckoDriver.prototype.executeScript@chrome://marionette/content/driver.js:899:24 [task 2018-12-13T05:16:17.549Z] 05:16:17 ERROR - Async*despatch@chrome://marionette/content/server.js:290:20 [task 2018-12-13T05:16:17.549Z] 05:16:17 ERROR - async*execute@chrome://marionette/content/server.js:263:11 [task 2018-12-13T05:16:17.550Z] 05:16:17 ERROR - async*onPacket/<@chrome://marionette/content/server.js:236:15 [task 2018-12-13T05:16:17.550Z] 05:16:17 ERROR - async*onPacket@chrome://marionette/content/server.js:235:8 [task 2018-12-13T05:16:17.551Z] 05:16:17 ERROR - _onJSONObjectReady/<@chrome://marionette/content/transport.js:493:9 [task 2018-12-13T05:16:17.551Z] 05:16:17 ERROR - [task 2018-12-13T05:16:17.551Z] 05:16:17 ERROR - [task 2018-12-13T05:16:17.588Z] 05:16:17 INFO - Browser exited with return code -15 [task 2018-12-13T05:16:17.591Z] 05:16:17 INFO - PROCESS LEAKS /tmp/tmpR0EJB5.mozrunner/runtests_leaks_856.log [task 2018-12-13T05:16:17.591Z] 05:16:17 INFO - leakcheck | Processing log file /tmp/tmpR0EJB5.mozrunner/runtests_leaks_856.log for scope /2dcontext/building-paths [task 2018-12-13T05:16:17.591Z] 05:16:17 INFO - TEST-INFO | leakcheck | default process: leak threshold set at 0 bytes [task 2018-12-13T05:16:17.591Z] 05:16:17 INFO - TEST-INFO | leakcheck | plugin process: leak threshold set at 0 bytes [task 2018-12-13T05:16:17.592Z] 05:16:17 INFO - TEST-INFO | leakcheck | tab process: leak threshold set at 10000 bytes [task 2018-12-13T05:16:17.592Z] 05:16:17 INFO - TEST-INFO | leakcheck | geckomediaplugin process: leak threshold set at 20000 bytes [task 2018-12-13T05:16:17.592Z] 05:16:17 INFO - TEST-INFO | leakcheck | gpu process: leak threshold set at 0 bytes [task 2018-12-13T05:16:17.593Z] 05:16:17 INFO - TEST-INFO | leakcheck | rdd process: leak threshold set at 400 bytes [task 2018-12-13T05:16:17.593Z] 05:16:17 INFO - leakcheck | Processing leak log file /tmp/tmpR0EJB5.mozrunner/runtests_leaks_856.log [task 2018-12-13T05:16:17.593Z] 05:16:17 INFO - TEST-UNEXPECTED-FAIL | leakcheck | default missing output line for total leaks! [task 2018-12-13T05:16:17.593Z] 05:16:17 INFO - leakcheck | Processing leak log file /tmp/tmpR0EJB5.mozrunner/runtests_leaks_856_tab_pid1024.log [task 2018-12-13T05:16:17.593Z] 05:16:17 INFO - TEST-UNEXPECTED-FAIL | leakcheck | tab missing output line for total leaks! [task 2018-12-13T05:16:17.594Z] 05:16:17 INFO - leakcheck | Processing leak log file /tmp/tmpR0EJB5.mozrunner/runtests_leaks_856_tab_pid997.log [task 2018-12-13T05:16:17.594Z] 05:16:17 INFO - TEST-UNEXPECTED-FAIL | leakcheck | tab missing output line for total leaks! [task 2018-12-13T05:16:17.595Z] 05:16:17 INFO - leakcheck | Processing leak log file /tmp/tmpR0EJB5.mozrunner/runtests_leaks_856_tab_pid1070.log [task 2018-12-13T05:16:17.595Z] 05:16:17 INFO - TEST-UNEXPECTED-FAIL | leakcheck | tab missing output line for total leaks!
The failures started after this merge to central: https://hg.mozilla.org/mozilla-central/pushloghtml?changeset=1e7843022450c852030788360f3a314de6678dac Looked over the stack trace to find some clues but to no avail. One long shot would be https://hg.mozilla.org/mozilla-central/rev/1da261b7f019 Aryx, please take a look over this. Thank you.
Flags: needinfo?(aryx.bugmail)
Likely fallout from bug 1512816 and ccov wpt runs are broken due to this.
Flags: needinfo?(aryx.bugmail) → needinfo?(james)
I don't *think* it should be that. I think ChromeUtils.import("chrome://marionette/content/PerTestCoverageUtils.jsm"); is failing, and I wonder if something happened that changed the URL of that file without wpt being updated.
Flags: needinfo?(james) → needinfo?(mcastelluccio)
Is it possible to backfill to know when this started failing? I haven't changed anything recently that could cause failure in importing PerTestCoverageUtils.jsm.
What is the first build that started failing?
Flags: needinfo?(mcastelluccio) → needinfo?(csabou)
Could bug 1513277 have caused this?
Flags: needinfo?(mcastelluccio) → needinfo?(jdemooij)
(In reply to Marco Castelluccio [:marco] from comment #9) > Could bug 1513277 have caused this? Yeah. It means there's a ChromeUtils.import(...) (or similar) of PerTestCoverageUtils.jsm where you need to pass |this| as second argument :)
Flags: needinfo?(jdemooij)
Blocks: 1513277
Whiteboard: [stockwell disable-recommended] → [stockwell needswork:owner]
Jan, can you work on this?
I think maybe we want to fix this case by giving the Sandbox that stuff executes scripts in an appropriate ChromeUtils object for its realm... Should just need to pass `wantGlobalProperties: ["ChromeUtils"]` when creating it.
I can try to write a patch for this tomorrow.
Flags: needinfo?(jdemooij)
(In reply to Kris Maglione [:kmag] from comment #12) > I think maybe we want to fix this case by giving the Sandbox that stuff > executes scripts in an appropriate ChromeUtils object for its realm... > Should just need to pass `wantGlobalProperties: ["ChromeUtils"]` when > creating it. I don't know how or where to do this. The patch I submitted fixes this on Try though.
Flags: needinfo?(jdemooij)
Attachment #9031953 - Attachment is obsolete: true
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Whiteboard: [stockwell disable-recommended] → [stockwell needswork:owner]
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/132871bdcd98 Give Marionette sandbox its own ChromeUtils object. r=kmag
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: