[Bug]: LaunchAsync
finishes with TimeoutException
on Chrome
#32897
Labels
LaunchAsync
finishes with TimeoutException
on Chrome
#32897
Version
1.47.0
Steps to reproduce
Create a PR on https://github.com/dotnet/runtime that will add a dummy change under e.g.
src/mono/wasm/Wasm.Build.Tests
path.Expected behavior
Tests pass, it's a dummy change.
Actual behavior
Tests that use Playwright and run on the Windows machine will most probably fail with a log similar to this:
https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-107865-merge-8d53b01d113d4e65a8/Workloads-NoWebcil-ST-Wasm.Build.Tests.TestAppScenarios.LibraryInitializerTests/1/console.c50164a6.log?helixlogtype=result
If not, rerun the CI by pushing another dummy commit. The hit rate is rather high: dotnet/runtime#107771
Additional context
We are using Playwright in Mono runtime tests in https://github.com/dotnet/runtime.
On Windows machine they tend to fail on Chrome with timeouts that are hard to debug.
Playwright version: 1.47.0,
Chrome version: 128.0.6613.120.
Logic of tests: tests run sequentially, before we start launching a test we check for chrome processes and force-kill them. Then we create
new Playwright = await Microsoft.Playwright.Playwright.CreateAsync();
and this Playwright is used toLaunchAsync
the browser with 15000 max timeout and following arguments:In case it fails, we clean up the Playwright and Browser instances and we have 2 more retries. The tests are failing pretty often on the CI with all the retries hitting timeout. There is not much information logged:
We switched on the debug logs: "set DEBUG=pw:browser*" but it removed the problem and left us without the real fix. What do you suggest to investigate the issue further?
PR that tries to fix the issue:
dotnet/runtime#107865
cc @mxschmitt
Environment
The text was updated successfully, but these errors were encountered: