Repository navigation
fix(it): run the UI test MySQL on the shipped collation, and clean up a server that fails to start (backport 2.1 #37142) - #37143
Conversation
… fail fast after it
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
Code Review ✅ Approved🟡 Medium risk · Changing UI-test MySQL collation and making boot failures sticky could cause later tests to abort after a transient startup error. Containerized UI test MySQL now uses the server default collation ( 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 |
Issue
Cherry-pick of #37142 to
2.1(no issue).What it fixes
The containerized UI test MySQL now runs on the collation OpenMetadata ships with (
utf8mb4_0900_ai_ci, the MySQL 8 default) instead ofutf8mb4_unicode_ci, on which the 2.1.0 migration cannot finish and the server never starts. And when the server does fail to start, the harness stops the MySQL and OpenSearch containers it started, and every later test fails at once instead of booting another stack. Without this, the2.1nightly "Java UI ITs (embedded)" jobs leak a stack per test class until the runner node runs out of memory. Full explanation in #37142.How it was tested
mainand2.1, so the runs in fix(it): run the UI test MySQL on the shipped collation, and clean up a server that fails to start #37142 cover this branch: all 10 UI tests pass on the right collation, and a server that cannot start fails the run in 7 minutes with nothing left running.