wasm-pack-template icon indicating copy to clipboard operation
wasm-pack-template copied to clipboard

I cannot get headless tests to run in Travis CI

Open andrewdavidmackenzie opened this issue 5 years ago • 3 comments

Summary

When I run a similar project in Travis CI I get this error:

Running headless tests in Chrome with `/Users/travis/Library/Caches/.wasm-pack/chromedriver-b5d7e439698af816/chromedriver`
driver status: signal: 9
driver stdout:
    Starting ChromeDriver 2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e) on port 59072
    Only local connections are allowed.
    Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

So I am not sure how you are able to get travis to run --chrome --headless

Any ideas?

BTW: In "-script" I see "cd testing" but there is no such folder. I don't see it created during setup, but maybe wrong.

andrewdavidmackenzie avatar Jun 16 '19 21:06 andrewdavidmackenzie

@andrewdavidmackenzie Did you by any chance find a solution? I'm having the same issue on CircleCI.

Running the same command in the same Docker container works fine on my machine, so I'm guessing it's a CI quirk.

xv-matt-u avatar Jul 31 '19 15:07 xv-matt-u

Issue is also found here: https://github.com/rustwasm/wasm-pack/issues/611 Hopefully fix by https://github.com/rustwasm/wasm-pack/pull/706

Current workaround: https://github.com/rustwasm/wasm-pack/issues/611#issuecomment-522093207

I used the following command npm installl -g [email protected] to fix the issue

spike1292 avatar Sep 08 '19 16:09 spike1292

npm i -g [email protected] worked for me for Chromium 80.0.3987.162

zoechi avatar Jun 09 '20 19:06 zoechi