From ad35dd9a73abc0de3ee4ad2769aacb6631d8e7e6 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 30 Oct 2026 20:04:48 +0100 Subject: [PATCH] Skip disk syncs for the throwaway test database The test database only lives as long as the runner, so it does not need to survive a crash. Let MySQL and MariaDB write without waiting for each commit to reach the disk. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/reusable-functional.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/reusable-functional.yml b/.github/workflows/reusable-functional.yml index ff3266b..2e320be 100644 --- a/.github/workflows/reusable-functional.yml +++ b/.github/workflows/reusable-functional.yml @@ -117,8 +117,13 @@ jobs: user: ${{ env.WP_CLI_TEST_DBUSER}} password: ${{ env.WP_CLI_TEST_DBPASS}} # Fall back to legacy configuration for MySQL 5.6, 5.7, 8.0 and MariaDB. + # The test database is thrown away with the runner, so there is no need + # to wait for every write to reach the disk. my-cnf: | ${{ steps.mysql-config.outputs.auth-config || 'default_authentication_plugin=mysql_native_password' }} + innodb_flush_log_at_trx_commit=0 + sync_binlog=0 + innodb_doublewrite=OFF ${{ inputs.dbtype == 'mariadb' && '[client]' || '' }} ${{ inputs.dbtype == 'mariadb' && 'disable-ssl-verify-server-cert' || '' }}