[php-src] PHP-8.6: [skip ci] Skip automatic_worker_limit.phpt on few cores

From: Date: Tue, 24 Nov 2026 23:45:19 +0000
Subject: [php-src] PHP-8.6: [skip ci] Skip automatic_worker_limit.phpt on few cores
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-144149@lists.php.net to get a copy of this message
Author: Ilija Tovilo (iluuu1994) Date: 2026-11-25T00:44:29+01:00 Commit: https://github.com/php/php-src/commit/276099f49314fa716cfc496fe26bc4bc7bf25b4c Raw diff: https://github.com/php/php-src/commit/276099f49314fa716cfc496fe26bc4bc7bf25b4c.diff [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. Changed paths: M tests/run-test/automatic_worker_limit.phpt Diff: diff --git a/tests/run-test/automatic_worker_limit.phpt b/tests/run-test/automatic_worker_limit.phpt index 5bf6df07365e..e856a18c602e 100644 --- a/tests/run-test/automatic_worker_limit.phpt +++ b/tests/run-test/automatic_worker_limit.phpt @@ -5,6 +5,9 @@ Automatic worker detection is capped for regular and instrumented runs 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

« previous php.cvs (#144149) next »