Repository navigation
Support Pantheon MySQL 8.4 - #375
Open
AaronFeledy wants to merge 6 commits into
Open
AaronFeledy wants to merge 6 commits into
AaronFeledy wants to merge 6 commits into
Conversation
Read database.type from pantheon.yml. type: mysql with version 8.4 now runs the stock mysql:8.4 service (bitnamilegacy/mysql:8.4.5, which publishes amd64 and arm64, so no ARM builder). Any other mysql version, or 8.4 without type: mysql, fails lando start with an error. No type keeps pantheon-mariadb(-arm), default 10.3. MySQL gets config/mysql84.cnf (utf8mb4, utf8mb4_0900_ai_ci, no sql_mode). The MariaDB mysql.cnf is fatal on 8.4 and is unchanged. The gen 5 appserver ships a MariaDB 11.4 client, which rejects the self-signed cert MySQL 8.4 generates, so pull and push fail. mysql_native_password does not fix that, so the appserver mounts config/mysql84-client.cnf with ssl-verify-server-cert=0 under [client-mariadb] when the engine is mysql. PHP mysqlnd connects without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MySQL 8.4 defaults to REPEATABLE-READ. The MariaDB cnf sets READ-COMMITTED in a [mariadb] group, which this server ignores, so Drupal 10+ would warn after switching engines.
❌ Deploy Preview for lando-pantheon failed. Why did it fail? →
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bd2254a. Configure here.
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.

Summary
Adds opt-in MySQL 8.4 via
database.type: mysqlanddatabase.version: 8.4. MariaDB remains the default, including existing version and ARM paths. Invalid combinations fail with an actionable error.Fixes #374
Verification
Leia integration coverage
Limits and follow-up
Bare minimum self-checks
mainPieces of flare
Finally
Note
Medium Risk
Changes core database sync (
pull/push) and engine selection; mistakes could corrupt local DBs or break remote sync, though behavior is heavily tested and scoped to MySQL 8.4 compatibility paths.Overview
Adds opt-in MySQL 8.4 when
pantheon.ymlsetsdatabase.type: mysqlanddatabase.version: 8.4; MariaDB stays the default, with validation errors for invalid combinations. The recipe selectsmysql:8.4, applies a newmysql84.cnf(utf8mb4,utf8mb4_0900_ai_ci, READ-COMMITTED), and passes the effective service type—including Landofile overrides—tolando pull,push, andswitchviaLANDO_DB_SERVICE_TYPE.Pull/push now finish dumps to a temp file before import (
pipefail), retry pull’s remotemysqldumpfallback without importing partial SQL, and usepantheon-local-database.shto add MariaDB-only local flags (--ssl-verify-server-cert=0,--no-tablespaceson dump) only for local MySQL 8.4; Terminus remote TLS/commands are unchanged.Docs/CHANGELOG, a local-only Leia example (
examples/pantheon-mysql84), CI matrix + explicit@lando/mysql@1.6.0install, and unit/integration tests cover selection, client probing, and failure propagation.Reviewed by Cursor Bugbot for commit de0d038. Bugbot is set up for automated code reviews on this repo. Configure here.