Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis browser tests are failing builds again (they work locally) #1592

Closed
domenic opened this issue Sep 3, 2016 · 3 comments
Closed

Travis browser tests are failing builds again (they work locally) #1592

domenic opened this issue Sep 3, 2016 · 3 comments

Comments

@domenic
Copy link
Member

domenic commented Sep 3, 2016

Sigh.

https://travis-ci.org/tmpvar/jsdom/jobs/157356574

Not sure what's going on... It looks like the older browser tests are not being executed at all, but I can't tell if that's because the previous ones are erroring or those are.

e 48.0.2564 (Linux 0.0.0): Executed 0 of 0 SUCCESS (0 secs / 0 secs)
e 48.0.2564 (Linux 0.0.0): Executed 0 of 0 ERROR (0.154 secs / 0 secs)

looks suspicous...

Presumably this is all some Karma and/or Sauce Labs configuration stuff.

@domenic
Copy link
Member Author

domenic commented Oct 2, 2016

@Joris-van-der-Wel any chance you could take a look at this?

@Joris-van-der-Wel
Copy link
Member

Saucelabs only has old chrome versions available (chrome 48) if you use linux, and the "browser" log is empty (using a selenium command). Running our tests on Windows 10 + Chrome 53 finally gave me a useful log line (https://travis-ci.org/tmpvar/jsdom/jobs/164612531#L3123):

{
  "source":"javascript",
  "message":"http://localhost:9877/base/node_modules/karma-mocha-webworker/karma-mocha-webworker-client/worker.js?6977d54017bcebaae69471165cc69ce728ad28a4 92:33 Uncaught ReferenceError: window is not defined",
  "timestamp":1475495979449,
  "level":"SEVERE"
}

So window is used somewhere (instead of self). I was able to reproduce this locally just now by typing rm -rf node_modules first. Here is the cause: https://github.com/form-data/form-data/blob/master/lib/browser.js#L2 and it looks like they have an issue open about it form-data/form-data#252

domenic added a commit to domenic/form-data that referenced this issue Oct 3, 2016
This allows it to work in web worker environments, helping to fix jsdom's usage of this package there. See jsdom/jsdom#1592 (comment)
@Joris-van-der-Wel
Copy link
Member

request@2.58.0 BROKEN (https://github.com/request/request/commits/v2.58.0)
request@2.57.0 WORKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants