Closed
Bug 1400566
Opened 7 years ago
Closed 7 years ago
JSDcov code coverage busted: ([Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [IJSDebugger.addClass]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"
Categories
(Testing :: Code Coverage, defect)
Testing
Code Coverage
Tracking
(firefox-esr52 unaffected, firefox55 unaffected, firefox56 unaffected, firefox57 fixed)
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox55 | --- | unaffected |
firefox56 | --- | unaffected |
firefox57 | --- | fixed |
People
(Reporter: aryx, Assigned: mccr8)
References
Details
(Keywords: regression, Whiteboard: [stockwell fixed:other])
Attachments
(1 file)
See bug 1381961 and bug 1400489 a shared global for JSMs.
First run with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=6c1b45e7e94dbf343813eda03f1fd0b3259b59b1&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable
Example log: https://treeherder.mozilla.org/logviewer.html#?job_id=131454517&repo=mozilla-central
[task 2017-09-16T10:56:13.244Z] 10:56:13 ERROR - GECKO(1296) | TEST-UNEXPECTED-FAIL: setup.js | error parsing http://mochi.test:8888/tests.json ([Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [IJSDebugger.addClass]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/jsdebugger.jsm :: addDebuggerToGlobal :: line 23" data: no])
[task 2017-09-16T10:56:13.246Z] 10:56:13 INFO - GECKO(1296) | JavaScript error: resource://gre/modules/jsdebugger.jsm, line 23: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [IJSDebugger.addClass]
[task 2017-09-16T11:12:53.277Z] 11:12:53 INFO - Automation Error: mozprocess timed out after 1000 seconds running ['/builds/worker/workspace/build/venv/bin/python', '-u', '/builds/worker/workspace/build/tests/mochitest/runtests.py', '--disable-e10s', '--total-chunks', '10', '--this-chunk', '8', '--jscov-dir-prefix=/builds/worker/workspace/build/blobber_upload_dir', '--appname=/builds/worker/workspace/build/application/firefox/firefox', '--utility-path=tests/bin', '--extra-profile-file=tests/bin/plugins', '--symbols-path=https://queue.taskcluster.net/v1/task/GzuKtY4NRAiee3sjJkwfpQ/artifacts/public/build/target.crashreporter-symbols.zip', '--certificate-path=tests/certs', '--setpref=webgl.force-enabled=true', '--quiet', '--log-raw=/builds/worker/workspace/build/blobber_upload_dir/plain-chunked-coverage_raw.log', '--log-errorsummary=/builds/worker/workspace/build/blobber_upload_dir/plain-chunked-coverage_errorsummary.log', '--use-test-media-devices', '--screenshot-on-fail', '--cleanup-crashes', '--marionette-startup-timeout=180', '--work-path=/builds/worker/workspace/build', '--chunk-by-dir=4', '--timeout=1200']
See https://dxr.mozilla.org/mozilla-central/rev/6be5c7d30d2def62a762ac187252eba626b23a92/js/ductwork/debugger/jsdebugger.jsm#23
> this.addDebuggerToGlobal = function addDebuggerToGlobal(global) {
> init.addClass(global);
> initPromiseDebugging(global);
> };
Flags: needinfo?(kmaglione+bmo)
Reporter | ||
Updated•7 years ago
|
Summary: Ccov code coverage busted: ([Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [IJSDebugger.addClass]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" → JSDcov code coverage busted: ([Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [IJSDebugger.addClass]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"
Reporter | ||
Updated•7 years ago
|
Keywords: regression
Comment 1•7 years ago
|
||
Looks like it needs to be updated to use getGlobalForObject
Flags: needinfo?(kmaglione+bmo) → needinfo?(continuation)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → continuation
Component: Developer Tools: Debugger → Code Coverage
Flags: needinfo?(continuation)
Product: Firefox → Testing
Assignee | ||
Comment 2•7 years ago
|
||
Are there any unit tests for CoverageUtils.jsm that I can run locally?
Assignee | ||
Comment 3•7 years ago
|
||
I haven't tested this, but it looks reasonable to me...
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
Oh, I see, this isn't run by default, which is why my -p all -u all runs didn't find this.
Here's a try run to try to confirm that it works:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=02d13d126ab2fcfb1c27b73b535fb309b1a543fd
Assignee | ||
Comment 6•7 years ago
|
||
This patch is pretty trivial, so if somebody gets impatient, feel free to land this with r=bustage...
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8909023 [details]
Bug 1400566 - Explicitly get the global of |this| in CoverageUtils.jsm.
https://reviewboard.mozilla.org/r/180628/#review185742
Attachment #8909023 -
Flags: review?(kmaglione+bmo) → review+
Assignee | ||
Comment 8•7 years ago
|
||
I guess I didn't set up the try run correctly, so we'll just see what happens when I land this.
Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/401477969d7c
Explicitly get the global of |this| in CoverageUtils.jsm. r=kmag
Comment 10•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Comment 11•7 years ago
|
||
Thank you for taking care of this! :)
:mccr8, jsdcov and ccov only work with |mach try fuzzy -q 'linux64-jsdcov ...'| now after some changes from the windows taskcluster migration, IIRC. The documents haven't been updated to reflect this change yet, sorry about that.
Comment hidden (Intermittent Failures Robot) |
Updated•7 years ago
|
Whiteboard: [stockwell fixed:other]
Updated•7 years ago
|
status-firefox55:
--- → unaffected
status-firefox56:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Comment hidden (Intermittent Failures Robot) |
You need to log in
before you can comment on or make changes to this bug.
Description
•