Skip to content

Fix run-tests.php --file-cache-prime with multiple workers - #22886

Merged
iluuu1994 merged 3 commits into
php:masterfrom
iluuu1994:fix-file-cache-jn
Jul 25, 2026
Merged

Fix run-tests.php --file-cache-prime with multiple workers#22886
iluuu1994 merged 3 commits into
php:masterfrom
iluuu1994:fix-file-cache-jn

Conversation

@iluuu1994

Copy link
Copy Markdown
Member

We want to remove the directory only before running tests, rather than for every test. That causes races, but also defeats the purpose of priming the cache.

We want to remove the directory only before running tests, rather than for every
test. That causes races, but also defeats the purpose of priming the cache.
These need to live in ext/opcache/tests to be skipped by run-tests.php for the
--file-cache-use tests, which won't compile the files and thus won't dump the
output.
@iluuu1994
iluuu1994 merged commit 387a3af into php:master Jul 25, 2026
17 checks passed
adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request Aug 4, 2026
* Fix run-tests.php --file-cache-prime with multiple workers

We want to remove the directory only before running tests, rather than for every
test. That causes races, but also defeats the purpose of priming the cache.

* Move opcache.opt_debug_level tests

These need to live in ext/opcache/tests to be skipped by run-tests.php for the
--file-cache-use tests, which won't compile the files and thus won't dump the
output.

* Mark preloading test as opcache.file_cache_only=0

Preloading requires shm.
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.

1 participant