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] regression in killing web server process in 1.28.0

See original GitHub issue

Context:

  • Playwright Version: 1.28.0
  • Operating System: Linux and Mac
  • Node.js version: 16 and 18
  • Browser: All
  • Extra: Windows is okay

Code Snippet

You can run locally with:

npm create svelte@latest myapp (choose all defaults, but add playwright)
cd myapp
edit package.json to set playwright version to 1.28.0
npm install
npm test (run it twice)

Describe the bug

Server process is no longer being killed on Mac and Linux. It’s possible we have some issue on our side, but it’s not clear to me what that would be or how to debug it. I do experience this locally, but can kill the process with kill after Playwright fails to do so.

I see @aslushnikov sent a PR (https://github.com/microsoft/playwright/pull/18220) affecting this section of code to address @rmunn’s issue (https://github.com/microsoft/playwright/issues/18209), which was later reverted (https://github.com/microsoft/playwright/pull/18220). The issue was not reopened - should it be? Since that change was reverted, I’m not quite sure where else this might be coming from.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
benmccanncommented, Nov 17, 2022

+1 for treeKill by default. Kill it all with fire

0reactions
dominikgcommented, Nov 17, 2022

changing from SIGKILL to SIGTERM is a breaking change in my opinion. This is no longer ending child processes by default and relies on the started process to handle SIGTERM to end children as well.

A backward-compatible way to introduce this would be to have the signal as an option, default to SIGKILL until the next major and flip it then, allowing users to still use SIGKILL if their server process isn’t handling SIGTERM.

sidenote: even SIGKILL can be problematic still, i have run into situations where that wasn’t enough and resorted to use tree-kill on the process pid to ensure everything is gone. https://github.com/sveltejs/vite-plugin-svelte/blob/90ff974fb81c7fff05f5e6e4ae1497a24d3078c4/packages/e2e-tests/e2e-server.js#L118

Read more comments on GitHub >

github_iconTop Results From Across the Web

30052 – [4.2 Regression] points-to analysis slow and memory ...
attached testcase eats a 1GB of ram, swap and it's killed by OOM. it works fine on 4.1.2/{all} and 4.2.0/{i386,ppc}. so, it looks...
Read more >
Bug #547244 “package libatk1.0-dev 1.29.92-0ubuntu1 ...
There is no chance of regression potential, as the updated libatk1.0-dev package replaces gobject-introspection-repository, thereby taking ownership of the file ...
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
Bug :2 - "How do I attach an ebuild. ... Bug:4235 - "NFS-Server are killing exportfs before Exporting Directories" status:RESOLVED resolution:FIXED severity: ...
Read more >
apt upgrade killed an X server and forgot my keymap
New Bug report received and forwarded. Copy sent to spikycaterpillar_debianbts@deekoo.net, Debian Testing Group <debian-testing@lists.debian.org> ...
Read more >
Changelog — conan 1.43.4 documentation
#9381; Bugfix: Fixed bug whereby using new layout() method together with cppinfo.components in ... Bugfix: Revert regression that replaces first / by -...
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