Bug: Intermittent TEST-UNEXPECTED-FAIL karma | activity-stream:Personality Provider:#attachments should call reportError from _downloadAttachment if not valid response: expected reportError to be called with arguments
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-03-10 13:27:17+00:00
Resolved: 2023-10-13 12:04:07+00:00

**Filed by:** btara [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=292439297&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Ge7ynuOgRu6mMpcJFFAa3A/runs/0/artifacts/public/logs/live_backing.log

---

```
[task 2020-03-10T12:23:22.822Z] executing ['bash', '-cx', 'export FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox && cd /builds/worker/checkouts/gecko/browser/components/newtab && npm install && node bin/try-runner.js\n']in /builds/worker/checkouts/gecko
[task 2020-03-10T12:23:22.828Z] + export FIREFOX_BIN=/builds/worker/fetches/firefox/firefox
[task 2020-03-10T12:23:22.829Z] + FIREFOX_BIN=/builds/worker/fetches/firefox/firefox
[task 2020-03-10T12:23:22.829Z] + cd /builds/worker/checkouts/gecko/browser/components/newtab
[task 2020-03-10T12:23:22.829Z] + npm install
[task 2020-03-10T12:23:43.835Z] 
[task 2020-03-10T12:23:43.835Z] > node-sass@4.13.1 install /builds/worker/checkouts/gecko/browser/components/newtab/node_modules/node-sass
[task 2020-03-10T12:23:43.835Z] > node scripts/install.js
[task 2020-03-10T12:23:43.835Z] 
[task 2020-03-10T12:23:44.202Z] Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/linux-x64-64_binding.node
[task 2020-03-10T12:23:44.332Z] Download complete
[task 2020-03-10T12:23:44.337Z] Binary saved to /builds/worker/checkouts/gecko/browser/components/newtab/node_modules/node-sass/vendor/linux-x64-64/binding.node
[task 2020-03-10T12:23:44.361Z] Caching binary to /builds/worker/.npm/node-sass/4.13.1/linux-x64-64_binding.node
[task 2020-03-10T12:23:44.452Z] 
[task 2020-03-10T12:23:44.452Z] > core-js@2.6.11 postinstall /builds/worker/checkouts/gecko/browser/components/newtab/node_modules/core-js
[task 2020-03-10T12:23:44.452Z] > node -e "try{require('./postinstall')}catch(e){}"
[task 2020-03-10T12:23:44.452Z] 
[task 2020-03-10T12:23:44.537Z] Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
[task 2020-03-10T12:23:44.537Z] 
[task 2020-03-10T12:23:44.538Z] The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
[task 2020-03-10T12:23:44.538Z] > https://opencollective.com/core-js 
[task 2020-03-10T12:23:44.538Z] > https://www.patreon.com/zloirock 
[task 2020-03-10T12:23:44.538Z] 
[task 2020-03-10T12:23:44.538Z] Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
[task 2020-03-10T12:23:44.538Z] 
[task 2020-03-10T12:23:44.692Z] 
[task 2020-03-10T12:23:44.692Z] > node-sass@4.13.1 postinstall /builds/worker/checkouts/gecko/browser/components/newtab/node_modules/node-sass
[task 2020-03-10T12:23:44.692Z] > node scripts/build.js
[task 2020-03-10T12:23:44.692Z] 
[task 2020-03-10T12:23:44.860Z] Binary found at /builds/worker/checkouts/gecko/browser/components/newtab/node_modules/node-sass/vendor/linux-x64-64/binding.node
[task 2020-03-10T12:23:44.861Z] Testing binary
[task 2020-03-10T12:23:44.962Z] Binary is fine
[task 2020-03-10T12:23:46.167Z] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/sass/node_modules/fsevents):
[task 2020-03-10T12:23:46.167Z] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[task 2020-03-10T12:23:46.167Z] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
[task 2020-03-10T12:23:46.168Z] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[task 2020-03-10T12:23:46.168Z] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/mocha/node_modules/fsevents):
[task 2020-03-10T12:23:46.168Z] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[task 2020-03-10T12:23:46.169Z] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/karma/node_modules/fsevents):
[task 2020-03-10T12:23:46.169Z] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[task 2020-03-10T12:23:46.169Z] 
[task 2020-03-10T12:23:46.178Z] added 1200 packages from 1801 contributors and audited 9509 packages in 22.834s
[task 2020-03-10T12:23:47.071Z] 
[task 2020-03-10T12:23:47.071Z] 39 packages are looking for funding
[task 2020-03-10T12:23:47.071Z]   run `npm fund` for details
[task 2020-03-10T12:23:47.071Z] 
[task 2020-03-10T12:23:47.073Z] found 4 vulnerabilities (1 low, 3 moderate)
[task 2020-03-10T12:23:47.073Z]   run `npm audit fix` to fix them, or `npm audit` for details
[task 2020-03-10T12:23:47.185Z] + node bin/try-runner.js
[task 2020-03-10T12:23:47.265Z] TEST START | karma
[task 2020-03-10T12:24:43.977Z] npm ERR! code ELIFECYCLE
[task 2020-03-10T12:24:43.977Z] npm ERR! errno 1
[task 2020-03-10T12:24:43.977Z] npm ERR! activity-streams@1.14.3 testmc:unit: `karma start karma.mc.config.js`
[task 2020-03-10T12:24:43.977Z] npm ERR! Exit status 1
[task 2020-03-10T12:24:43.977Z] npm ERR! 
[task 2020-03-10T12:24:43.977Z] npm ERR! Failed at the activity-streams@1.14.3 testmc:unit script.
[task 2020-03-10T12:24:43.977Z] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[task 2020-03-10T12:24:43.977Z] 
[task 2020-03-10T12:24:43.977Z] npm ERR! A complete log of this run can be found in:
[task 2020-03-10T12:24:43.977Z] npm ERR!     /builds/worker/.npm/_logs/2020-03-10T12_24_43_967Z-debug.log
[task 2020-03-10T12:24:43.999Z] TEST-UNEXPECTED-FAIL karma | activity-stream:Personality Provider:#attachments should call reportError from _downloadAttachment if not valid response: expected reportError to be called with arguments 
[task 2020-03-10T12:24:43.999Z] Failed to fetch location: undefined Failed to fetch /location: undefined 
[task 2020-03-10T12:24:43.999Z] fail@http://localhost:9876/base/node_modules/sinon/pkg/sinon.js?fd64f3a13cddbb3783308d595307f8f6c1c10a4b:167:21
[task 2020-03-10T12:24:43.999Z] failAssertion@http://localhost:9876/base/node_modules/sinon/pkg/sinon.js?fd64f3a13cddbb3783308d595307f8f6c1c10a4b:126:16
[task 2020-03-10T12:24:43.999Z] mirrorPropAsAssertion/assert[name]@http://localhost:9876/base/node_modules/sinon/pkg/sinon.js?fd64f3a13cddbb3783308d595307f8f6c1c10a4b:152:26
[task 2020-03-10T12:24:43.999Z] @http://localhost:9876/base/test/unit/unit-entry.js?4d7a31145aec3c04c1ed1d5b9770abaf86423552:156188:14
[task 2020-03-10T12:24:43.999Z] 
[task 2020-03-10T12:24:43.999Z] TEST START | sasslint
[task 2020-03-10T12:24:45.489Z] { karmaPassed: false, sasslintPassed: true }
[task 2020-03-10T12:24:45.489Z] CODE 1
[fetches 2020-03-10T12:24:45.493Z] removing /builds/worker/fetches
[fetches 2020-03-10T12:24:45.528Z] finished
[taskcluster 2020-03-10 12:24:46.047Z] === Task Finished ===
[taskcluster 2020-03-10 12:24:46.047Z] Unsuccessful task run with exit code: 1 completed in 612.223 seconds
```