[BUG] Playwright-chromium (>1.5.0) does not exit properly (hangs) when started in docker
See original GitHub issueContext:
- Playwright Version: playwright-chromium 1.5.0, 1.5.1 (in 1.4.0 everything was fine).
- Operating System: Windows 10/MacOS Catalina + Docker
- Node.js version: 12.18.3
- Browser: Chromium
- Extra: Docker image based on PW:bionic; mocha for running tests;
Bug description: Playwright hangs after tests execution when running in Docker. It simply does not do anything (as per logs).
Repro steps:
- Unpack sample project, go to root folder
- Run the following command:
docker-compose up --build --abort-on-container-exit --exit-code-from e2e > test_run.log
- Check test_run.log. Once all tests are finished, you will see the following lines in log:
[36me2e_1 |[0m ##teamcity[testFinished name=‘Test_1 Test 5 - UI Open Search page, find user and open it - chromium’ duration=‘7284’ flowId=‘28’] [36me2e_1 |[0m ##teamcity[testSuiteFinished name=‘Test_1 Google and Twitter checks - chromium’ duration=‘’ flowId=‘28’]
But the process will stay alive and docker container will never exit (at least in 2 hours). qa-automation.zip
I was also able to reproduce this behaviour on my Mac using provided test project.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Continuous Integration | Playwright - CukeTest
There's special treatment for processes with PID=1, which makes it hard to terminate Chromium properly in some cases (e.g. in Docker). Azure Pipelines#....
Read more >Bug listing with status RESOLVED with resolution UPSTREAM ...
_(#5.1.1)/ error if .maildir is not correctly set up in user home directory" status:RESOLVED resolution:UPSTREAM severity:normal · Bug:43980 - "USB scanner ...
Read more >playwright 1.5.2 on Node.js NPM - NewReleases.io
#4218 - [BUG] Playwright-chromium (>1.5.0) does not exit properly (hangs) when started in docker; #4224 - [BUG] Don't disable nodes maxListeners warning ...
Read more >How To Run End-to-End Tests Using Playwright and Docker
In this tutorial, you will set up an environment to use Playwright with Typescript for end-to-end testing, write and execute the tests, export ......
Read more >Moon - A cross browser Selenium, Cypress ... - Aerokube
If you are starting Moon in Kubernetes cluster deployed on workstation with minikube tool - see Option 3: you have Minikube. Option 1:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The hang is fixed and will be released with 1.5.2. shortly. The Chromium issue is about service workers, is now filed upstream and I’m working on a fix there.
Reduced test case: