Skip to content

Commit 7cbee1f

Browse files
committed
Add dedicated gdb step for FROM_BASE64; restore main skip regex
1 parent 993ffa4 commit 7cbee1f

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,20 @@ jobs:
818818
-ex "bt" \
819819
--args "$(command -v php)" || true
820820
821+
- name: Run PHPUnit testFromBase64Function under gdb
822+
continue-on-error: true
823+
env:
824+
PRELOAD: ${{ steps.preload.outputs.value }}
825+
working-directory: packages/mysql-on-sqlite
826+
run: |
827+
timeout --kill-after=10 120 gdb -batch \
828+
-ex "set confirm off" \
829+
-ex "set pagination off" \
830+
-ex "set environment LD_PRELOAD=$PRELOAD" \
831+
-ex "run ./vendor/bin/phpunit -c ./phpunit.xml.dist --filter 'WP_SQLite_Driver_Tests::testFromBase64Function$'" \
832+
-ex "bt 40" \
833+
--args "$(command -v php)" || true
834+
821835
- name: Run PHPUnit tests against Turso DB
822836
env:
823837
LD_PRELOAD: ${{ steps.preload.outputs.value }}
@@ -837,8 +851,9 @@ jobs:
837851
# a single PHP loop; hangs past our 10-minute step budget on
838852
# this runner. Pure PHP (doesn't touch Turso), skipping until
839853
# it can run in its own process.
840-
# Debug: run only testFromBase64Function to see if it hangs alone.
841-
skip_regex='WP_SQLite_Driver_Tests::testFromBase64Function'
854+
# Still skipping base64 tests for the main run until the hang is
855+
# understood (see preceding gdb step).
856+
skip_regex='^(?!WP_MySQL_Server_Suite_|WP_SQLite_Driver_Tests::testFromBase64Function|WP_SQLite_Driver_Tests::testToBase64Function).+'
842857
timeout --kill-after=10 600 \
843858
php ./vendor/bin/phpunit -c ./phpunit.xml.dist \
844859
--debug \

0 commit comments

Comments
 (0)