web icon indicating copy to clipboard operation
web copied to clipboard

browser not launching in Windows in GitHub Actions

Open trusktr opened this issue 2 years ago • 2 comments

I've ported tests in Lume from Karma to WTR, and it is amaaaaaazing.

However, although tests run fine for me in Windows locally, in GitHub Actions they fail to load the browser.

Here's sample build from that PR:

https://github.com/lume/lume/actions/runs/6701354377/job/18208981742?pr=287

There's this message in the output:

 ❌ The browser was unable to create and start a test page after 30000ms. You can increase this timeout with the browserStartTimeout option. 

The config does not specify browsers, just uses test-runner's default in this case.

Linux and macOS builds are passing with flying colors. Any idea why it might work in my local PowerShell but not in GitHub Actions?

Related issue:

  • https://github.com/modernweb-dev/web/issues/1456

trusktr avatar Oct 31 '23 03:10 trusktr

I'm having the same issue, but it seems completely random. Sometimes I get the same error message, and sometimes it works. It's a pain having to restart the tests on GitHub regularly because of this.

RemiS-EEC avatar Aug 27 '25 09:08 RemiS-EEC

We have been having same issues in our own build here, the Windows build breaks like 90% of the times. I couldn't find any solution on our side, so started thinking that the GitHub Actions Windows image is not stable enough. I will be happy to be wrong, but after spending a few evenings on this problem, I kinda gave up myself.

bashmish avatar Sep 04 '25 13:09 bashmish