question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Playwright-chromium (>1.5.0) does not exit properly (hangs) when started in docker

See original GitHub issue

Context:

  • 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:

  1. Unpack sample project, go to root folder
  2. Run the following command: docker-compose up --build --abort-on-container-exit --exit-code-from e2e > test_run.log
  3. Check test_run.log. Once all tests are finished, you will see the following lines in log:

[36me2e_1 | ##teamcity[testFinished name=‘Test_1 Test 5 - UI Open Search page, find user and open it - chromium’ duration=‘7284’ flowId=‘28’] e2e_1 | ##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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pavelfeldmancommented, Oct 24, 2020

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.

0reactions
pavelfeldmancommented, Oct 23, 2020

Reduced test case:

await page.goto('https://twitter.com');
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found