Skip to content

Conversation

@jasonbahl
Copy link
Collaborator

@jasonbahl jasonbahl commented Aug 29, 2025

What does this implement/fix? Explain your changes.

This fixes the failing tests on WP 6.8 caused my SSL requirements for mariadb

Does this close any currently open issues?

closes #3409

WordPress 6.8 ships with newer MySQL client tools that require SSL by default,
causing database export failures in the Docker test environment with the error:
"TLS/SSL error: SSL is required, but the server does not support it"

This commit fixes the issue by:

1. Configuring MariaDB container to disable SSL requirements
   - Pin to MariaDB 10.6 for stability
   - Add comprehensive SSL-disabling flags
   - Remove obsolete docker-compose version attribute

2. Adding WordPress version-specific database export logic
   - WordPress 6.8+ uses mysqldump with explicit SSL disabling
   - Older versions continue using wp-cli as before
   - Graceful error handling for failed exports

Fixes failing test combinations:
- WordPress 6.8 + PHP 8.1, 8.2, 8.3

Tested-by: WordPress 6.7 + PHP 8.2 (regression test)
@jasonbahl jasonbahl merged commit eeecafb into wp-graphql:develop Aug 29, 2025
38 checks passed
jasonbahl pushed a commit that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: MariaDB SSL compatibility issue prevents WordPress 6.8 tests from running

1 participant