Skip to content

Commit 835c983

Browse files
committed
Restore --debug for PHPUnit run under Turso
Removing --debug in commit ce22919 caused PHPUnit to crash mid-run (at ~504/596 tests, ~84% complete) instead of completing the suite and segfaulting only during shutdown's GC. Per-test --debug logging forces I/O flushes that prevent Turso state from accumulating to the point where the in-process VM faults. Keep the stdout-summary fallback added in ce22919: PHPUnit's JUnit flush still races Turso's shutdown SIGSEGV, so the harness needs to derive pass/fail from stdout when the XML is empty.
1 parent ba6b01b commit 835c983

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/phpunit-tests-turso.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,8 +1751,12 @@ jobs:
17511751
# they tokenise/parse a 5.7 MB fixture in a single loop and run
17521752
# well over 10 min under LD_PRELOAD (not a Turso issue).
17531753
skip_regex='^(?!WP_MySQL_Server_Suite_).+'
1754+
# Keep --debug: per-test logging forces I/O flushes that prevent
1755+
# Turso from accumulating state which crashes PHPUnit mid-run
1756+
# (without --debug, the run aborts around 84% complete).
17541757
timeout --kill-after=10 600 \
17551758
php ./vendor/bin/phpunit -c ./phpunit.xml.dist \
1759+
--debug \
17561760
--filter "$skip_regex" \
17571761
--log-junit /tmp/phpunit-turso.xml \
17581762
| tee /tmp/phpunit-turso.stdout

0 commit comments

Comments
 (0)