Repository navigation
chore: upgrade shipped MySQL and tests to 8.4.13 - #36416
Conversation
MySQL 8.0 reached end of life in April 2026 and MySQL Connector/J no longer supports it officially. This updates all MySQL image references across Dockerfiles, docker-compose files, test configs, and documentation to use MySQL 8.4 (the current LTS release). Files updated: - docker/mysql/Dockerfile_mysql: 8.0 -> 8.4 - ingestion/Dockerfile, ingestion/Dockerfile.ci: 8.3 -> 8.4 - docker-compose files: 8.0 -> 8.4 - Playwright scripts: 8.0.42 -> 8.4 - Integration tests pom.xml: 8.3.0 -> 8.4.0 - Java test files: 8.3.0 -> 8.4.0 - Documentation: 8.0 -> 8.4 Refs open-metadata#36113
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
@open-metadata/backend @open-metadata/security ready for dev — please add 'safe to test' label |
|
@open-metadata/backend @open-metadata/security ready for dev — CI �uthorize check is blocked waiting for the safe to test label. Could you add it to kick off the full pipeline? Thanks! |
…ySQL 8.4 upgrade)
|
The failing test \LdapDirectoryValidationTest.anUnreachableDirectoryFailsAndNamesTheAddress\ is unrelated to this MySQL 8.4 upgrade PR. It's a flaky environment difference: the test expects 'Could not connect to 127.0.0.1:PORT: Connection refused'\ but the GitHub Actions LDAP library produces 'Could not connect to 127.0.0.1:PORT: Connection refused (connect failed)'. I've force-pushed an empty commit to re-trigger CI; it should pass on re-run. All other 14007 tests passed. |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
@LeonxLJX can you please take a look at the comments ? |
|
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi maintainers! @open-metadata/backend 👋 This PR is all green (no conflicts, CI passing) and has been rebased on latest. Could someone take a look when you have a moment? Thanks! |
|
Hi! Could you please add the \safe-to-test\ label so CI can run? This PR upgrades MySQL connector from 8.0 to 8.4 to address supply chain security concerns. Thanks! |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
manerow
left a comment
There was a problem hiding this comment.
The MySQL integration lanes, the Docker image smoke test, Playwright and the CLI e2e tests were all skipped on this PR. The only MySQL 8.4 runs are the three SQL unit tests it moved. Nothing yet shows that a fresh install on 8.4 runs every migration and starts the server, which #36113 lists as acceptance criteria.
The points from @Khairajani on 10-28 are still open:
- one exact, recent 8.4 patch everywhere, instead of the moving
mysql:8.4tag in the Dockerfiles and scripts and8.4.0in the tests; - the upgrade note for quickstart users whose 8.0 data is upgraded to 8.4 with no way back;
- the Snyk target in
Makefile:263.
The Collate side, PR #8667, pins 8.4.0 too, so it will need the same version as this PR.
|
Review follow-up validation: 166 SQL tests and 64 SystemResourceIT checks passed with MySQL 8.4.13. The fresh database migration bootstrap completed and the server served the system API tests. Bootstrap logged workflow-seeding NullPointerExceptions before later application initialization; no tests failed, but full lanes and release validation remain pending. Image-level 8.0.44 -> 8.4.13 preservation and fresh initialization checks also passed. 2.0 drafts: #38172 and open-metadata/openmetadata-collate#8700. Local Java test run: PASSED — details
Tests run locally
Broader coverage not executed by this focused run
Why these tests
Impacted, not run locally (10)
Commandsmvn -B package -pl openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=ContextMemoryConditionalWriteSqlTest,ContextMemoryOutcomeWriteSqlTest,ContextProcessingConditionalWriteSqlTest,DataConsumerPolicyGrantSqlMigrationTest,DeltaLakeRetirementMigrationTest,DomainOnlyAccessPolicySqlMigrationTest,EntityExtensionCollationAlignmentTest,FlowableCharsetMigrationMySqlTest,GuardedBlockMySqlExecutionTest,IncidentHistorySqlTest,LineageEdgePipelineCleanupMigrationTest,McpGrantRevocationSqlTest,McpPendingConsentSqlTest,MicrosoftFabricAuthTypeSqlMigrationTest,OntologyConceptBindingMigrationTest,PipelineStatusPaginationSqlTest,RelationshipKeysetPageSqlTest,SampleDataCountSqlMigrationTest,UserDAOTest -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=global-state -Dit.test=SystemResourceIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false |
|
Requested integration CI dispatched for
The Collate dispatch explicitly checks out the matching OpenMetadata companion SHA (70a1b1b). Runs were accepted and observed running; this is not a passing-results claim. The fork PR head was mirrored unchanged to |
|
Fixed the Validation: original configuration reproduces the unused-file failure (exit 1); updated |
Code Review ✅ Approved 🔴 High risk 4 closed / 4 findingsThe shipped metadata-store upgrade changes persistent-volume compatibility; an 8.4 conversion issue could leave existing deployments unable to roll back and restore service. Upgrades the bundled MySQL database, dev services, ingestion client, and test containers from 8.0/8.3 to MySQL 8.4.13, and adds a deployment guide for existing 8.0 volumes. Resolved the leftover 8.0 test containers, the misstated SHOW_ROUTINE availability, the connector docs dropping 8.0 source support, and the missing decision record for the 8.4 requirement. No open issues remain. ✅ 4 closed✅ Quality: MySQL 8.0 test containers left behind after the 8.4 upgrade
✅ Bug: SHOW_ROUTINE availability misstated as MySQL 8.4 and up
✅ Bug: Connector docs drop MySQL 8.0 source support with no code change
✅ Quality: Dropping MySQL 8.0 support is a policy rule with no decision record
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |



Fixes #36113
Summary
Ship and test MySQL 8.4.13, replacing the EOL MySQL 8.0 shipped image and old/floating test pins. Align Dockerfiles, Compose, Playwright, Java/Python fixtures and the Snyk image target. Preserve MySQL 8.0 ingestion-source support and the correct SHOW_ROUTINE introduction version (8.0.20).
Deployment requirements, backup/rehearsal/rollback steps and release-image rebuild requirements are documented in
docs/mysql-deployment.mdanddocs/decisions/2026-11-19-shipped-mysql-uses-the-8-4-lts-line.md.Companion and 2.0 backports
Merge the OpenMetadata backport before rebuilding Collate against its OpenMetadata 2.0 branch. Existing published images do not change merely by merging these PRs.
Verification
Local Java test run: PASSED
def8305cf142(basedef8305cf1422c00e233c78ab957c79627e4cd2c) — uncommitted changes were present--scope full).

Confidence Score: 5/5
The changes since the previous review appear safe to merge.Summary
The PR pins shipped and test MySQL images to 8.4.13, documents database upgrades, and preserves MySQL 8.0 source support.
mysqldumpfrom MySQL 8.4.13.No new actionable issues found since the previous review. The earlier
SHOW_ROUTINEversion issue is fixed: the documentation correctly says 8.0.20. Tests were not rerun during this review.Reviews (11) · Last reviewed commit: "fix: preserve downstream ontology fixtur..." · Reviewed by Greptile