Closed
Bug 1422918
Opened 8 years ago
Closed 8 years ago
sourcemaps in tests regressed, making debugging difficult
Categories
(Firefox :: New Tab Page, defect, P1)
Firefox
New Tab Page
Tracking
()
People
(Reporter: dmosedale, Assigned: dmosedale)
References
Details
Attachments
(1 file)
While trying to debug issues encountered while upgrading Enzyme, it become clear that at sometime in the past few months, sourcemaps in tests stopped working. This appears to have
two consequences:
Stacks in the console (eg while running tddmc) are missing the source file, which makes tracking down the exact line that failures are happening on as you iterate painful:
<ComponentPerfTimer>
#_maybeSendPaintedEvent
✖ should call _sendPaintedEvent if props.initialized is true
Firefox 57.0.0 (Mac OS X 10.12.0)
expected true to be false
AssertionError@node_modules/chai/chai.js:5553:18
[3]</module.exports/Assertion.prototype.assert@node_modules/chai/chai.js:206:13
[5]</module.exports/<@node_modules/chai/chai.js:589:5
addProperty@node_modules/chai/chai.js:4240:22
[6]</module.exports/assert.isFalse@node_modules/chai/chai.js:2521:5
@system-addon/test/unit/unit-entry.js:88900:7
It appears to be related to breakpoints in the karma debugging setup not firing.
Bisecting.
| Assignee | ||
Comment 1•8 years ago
|
||
https://github.com/mozilla/activity-stream/pull/3869 appears to be the regressing commit.
| Assignee | ||
Updated•8 years ago
|
Summary: sourcemaps in tests regressed, making debugging difficultQWh → sourcemaps in tests regressed, making debugging difficult
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → dmose
| Assignee | ||
Comment 2•8 years ago
|
||
Got it: the preprocessors array is order-sensitive, and the regressing patch changed the order. Putting the order back fixes at least the tddmc console output.
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Commits pushed to master at https://github.com/mozilla/activity-stream
https://github.com/mozilla/activity-stream/commit/bf570f4a5ec7bf4c4beb523ab458660bf1995da6
fix(tests): make sourcemaps for unit tests work again, fix bug 1422918
https://github.com/mozilla/activity-stream/commit/3c0d0194e63f6b07526c342da4116045445d15b6
Merge pull request #3892 from dmose/sourcemap-fix
Fix Bug 1422918 - make sourcemaps for unit tests work again
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 5•8 years ago
|
||
Target Milestone: --- → Firefox 59
Updated•6 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•