Skip to content

Commit 6f994f1

Browse files
committed
Add PHPUnit startup diagnostics to isolate segfault
1 parent 6cfd531 commit 6f994f1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,19 @@ jobs:
123123
ignore-cache: "yes"
124124
composer-options: "--optimize-autoloader"
125125

126+
- name: Diagnose PHPUnit startup under Turso
127+
continue-on-error: true
128+
env:
129+
LD_PRELOAD: ${{ steps.turso-lib.outputs.path }}
130+
working-directory: packages/mysql-on-sqlite
131+
run: |
132+
echo '--- phpunit --version ---'
133+
php ./vendor/bin/phpunit --version; echo "exit=$?"
134+
echo '--- phpunit --list-tests (first 5 lines) ---'
135+
php ./vendor/bin/phpunit -c ./phpunit.xml.dist --list-tests 2>&1 | head -5; echo "exit=${PIPESTATUS[0]}"
136+
echo '--- standalone bootstrap ---'
137+
php -r 'require __DIR__ . "/tests/bootstrap.php"; echo "bootstrap ok\n";'; echo "exit=$?"
138+
126139
- name: Run PHPUnit tests against Turso DB
127140
continue-on-error: true
128141
env:

0 commit comments

Comments
 (0)