Skip to content

Add bounded test directory concurrency - #22945

Draft
NickSdot wants to merge 7 commits into
php:masterfrom
NickSdot:perf/bounded-test-directory-concurrency
Draft

Add bounded test directory concurrency#22945
NickSdot wants to merge 7 commits into
php:masterfrom
NickSdot:perf/bounded-test-directory-concurrency

Conversation

@NickSdot

@NickSdotNickSdot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Extracted from #22917.

Removes unnecessary directory wide serialisation from Curl, OpenSSL and open_basedir tests while keeping their resource use bounded.

MAX_CONCURRENCY sets a per directory worker limit. SCOPED_CONFLICTS allows tests within that directory to share a conflict key while still excluding outside users; existing CONFLICTS semantics are unchanged. Fixtures and ports are isolated where required.

Result

Values in seconds; measured on macOS.

modemasterthis PRsavedspeedup
-j1094.00719.75774.2504.76×

Reproduction:

sapi/cli/php run-tests.php -q -j10 ext/curl ext/openssl tests/security

Sign up for freeto 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.

1 participant

@NickSdot