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

`wasm-pack test --headless --safari` fails with `driver failed to bind port during startup` in GitHub action

Open pemistahl opened this issue 1 year ago • 3 comments

🐛 Bug description

In a GitHub action on a macOS 14.7 runner in one of my libraries, I've been running wasm-pack test --headless --safari on every commit. It worked flawlessly for months but now the tests fail to execute at all. I get the error driver failed to bind port during startup. See this workflow run for reference. I've enabled the Safari driver with sudo safaridriver --enable before. On my local machine, it works fine. The headless tests in Chrome and Firefox also work fine. I'm not able to say whether this is a problem with wasm-pack, Safari or the GitHub runner.

🤔 Expected Behavior

The tests should run in headless Safari but they do not because the Safari driver fails to run the tests.

👟 Steps to reproduce

See this workflow run for reference.

🌍 Your environment

Include the relevant details of your environment. wasm-pack version: 0.13.0 rustc version: 1.82.0

pemistahl avatar Oct 30 '24 10:10 pemistahl

I fixed this in https://github.com/rustwasm/wasm-bindgen/pull/4267.

daxpedda avatar Nov 29 '24 18:11 daxpedda

@daxpedda Are you sure? I'm still getting the same error with wasm-bindgen 0.2.97 and wasm-bindgen-test 0.3.47.

Has the bug fix not been released yet?

pemistahl avatar Dec 03 '24 19:12 pemistahl

Further addressed in https://github.com/rustwasm/wasm-bindgen/pull/4320.

daxpedda avatar Dec 05 '24 13:12 daxpedda