Skip to content

Fix run-tests.php hanging when a worker process dies without notice #9931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

arnaud-lb
Copy link
Member

run-tests.php with -jN can hang if a parallel worker dies without notice. This can happen due to fatal errors in the worker, or if the worker is killed.

- run-tests.php (main process)
  \_ run-tests.php (worker #0) // main process hangs if this one crashes
     \_ test-001.php (test-001.phpt)

@arnaud-lb arnaud-lb changed the base branch from master to PHP-8.0 November 11, 2022 12:22
@arnaud-lb arnaud-lb marked this pull request as ready for review November 11, 2022 13:49
@arnaud-lb
Copy link
Member Author

Test failures appear to be unrelated

run-tests.php with `-jN` can hang if a parallel worker dies without notice. This
can happen due to fatal errors in the worker, or if the worker is killed.

- run-tests.php (main process)
  \_ run-tests.php (worker #0) // main process hangs if this one crashes
     \_ test-001.php (test-001.phpt)
@arnaud-lb arnaud-lb changed the base branch from PHP-8.0 to PHP-8.1 November 26, 2022 15:51
@arnaud-lb arnaud-lb merged commit 8c0698f into php:PHP-8.1 Jan 13, 2023
arnaud-lb added a commit that referenced this pull request Jan 13, 2023
* PHP-8.1:
  Fix run-tests.php hanging when a worker process dies without notice (#9931)
arnaud-lb added a commit that referenced this pull request Jan 13, 2023
* PHP-8.2:
  Fix run-tests.php hanging when a worker process dies without notice (#9931)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants