Commit 195f60d
committed
e2e: enable OPcache for the dev server instead of multi-process workers
The previous PHP_CLI_SERVER_WORKERS approach caused flaky e2e runs: PHP's
built-in server runs with OPcache disabled by default, so it recompiles the
whole TYPO3 codebase on every request, and each of the 8 worker processes
cold-started the framework on its first request. On CI the first attempt of
each test then ran ~20-60s and timed out while retries (hitting warmed
processes) passed — i.e. intermittent failures depending on which worker
served a request.
Run a single built-in-server process with OPcache enabled instead. After the
codebase is compiled on the first request(s) the process serves subsequent
requests quickly and deterministically, so a single warmed process is more
reliable here than several cold-starting workers. Timeouts are bumped to give
that first compile headroom on slower runners.
Validated locally on PHP 8.4 for TYPO3 12.4 and 14.3: 4 passed each, no flaky
retries.
https://claude.ai/code/session_01DaMNs9bAk3ofegnToxwF7X1 parent 76aa677 commit 195f60d
2 files changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
| |||
0 commit comments