Add --ssl-verify-server-cert flag for MariaDB to suppress passwordless login warnings#310
Draft
Add --ssl-verify-server-cert flag for MariaDB to suppress passwordless login warnings#310
Conversation
…s login warning Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix SSL verification warnings in MariaDB tests
Add --ssl-verify-server-cert flag for MariaDB to suppress passwordless login warnings
Feb 8, 2026
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This comment was marked as resolved.
This comment was marked as resolved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MariaDB tests were failing due to SSL warnings cluttering STDERR:
WARNING: option --ssl-verify-server-cert is disabled, because of an insecure passwordless login. These warnings trigger Behat test failures even when commands succeed.Changes
DB_Command::run(): Auto-add--ssl-verify-server-certflag when MariaDB is detected viaUtils\get_db_type()get_mysql_args(): Addssl-verify-server-certto allowed MySQL optionsThe flag is only added if not already present in user arguments, preserving override capability. MySQL installations are unaffected.
Mirrors the fix from wp-cli/wp-cli-tests#297, extending it to all db commands (export, import, query, etc.).
Original prompt
This section details on the original issue you should resolve
<issue_title>Improve MariaDB tests</issue_title>
<issue_description>They are still allowed to fail but would be nice to get them to green. There are currently quite a few failing tests, almost all because of
--ssl-verify-server-certwarnings cluttering STDERR.Perhaps we need to pass it manually like was done in wp-cli/wp-cli-tests#297?
Examples: