Commit 276099f4931 for php
commit 276099f49314fa716cfc496fe26bc4bc7bf25b4c
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Wed Nov 25 00:41:00 2026 +0100
[skip ci] Skip automatic_worker_limit.phpt on few cores
Starting too many workers on few cores can cause delays in master/worker
communication, triggering the hard-coded 5s timeout.
diff --git a/tests/run-test/automatic_worker_limit.phpt b/tests/run-test/automatic_worker_limit.phpt
index 5bf6df07365..e856a18c602 100644
--- a/tests/run-test/automatic_worker_limit.phpt
+++ b/tests/run-test/automatic_worker_limit.phpt
@@ -5,6 +5,9 @@
if (PHP_OS_FAMILY === 'Windows') {
die('skip requires a POSIX shell');
}
+if ((int)shell_exec('nproc 2>/dev/null') < 4) {
+ die('skip Many workers on few cores are susceptible to timeouts');
+}
?>
--ENV--
TEST_PHP_FORK_SERVER=0