-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mariadb 10.3 + mysql 8 to Drone, remove 10.2 workarounds #33255
Conversation
@ownclouders rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
baee09d
to
04c8ad4
Compare
Codecov Report
@@ Coverage Diff @@
## master #33255 +/- ##
============================================
+ Coverage 64.12% 64.24% +0.12%
+ Complexity 18305 18266 -39
============================================
Files 1193 1192 -1
Lines 69155 69056 -99
Branches 1277 1277
============================================
+ Hits 44343 44363 +20
+ Misses 24440 24321 -119
Partials 372 372
Continue to review full report at Codecov.
|
Automated rebase with GitMate.io was successful! 🎉 |
results look ugly ... needs debugging .... |
@DeepDiver1975 not ugly but predictable. |
I was missing the whole conversation - THX Can you add this maria db version check? THX |
the innodb_file_format was deprecated then removed in 10.3. while we could rely on its value to default to Barracuda for 10.2.2 there is still the likeliness of distribution packages having the other value in their config. I think we can first check if these values exist and rely on them. If the variables are gone, fall back to a DB version check. I see the DB version appear in some variables:
Interestingly there's also a value character_set_server and collation_server. This is what I see on my local machine for 10.2:
|
and then borrow a code piece from Doctrine |
sorry, meant #29100 (edited comment now). we're on dbal 2.8.0 on master |
04c8ad4
to
0cb3266
Compare
rebased, and added:
I tested the latter and saw that I am able to setup the DB locally with 10.2. Somehow I can't run Drone locally so relying on CI to confirm both fixes now... |
hmmm, in Drone we have mariadb targets and mysql and mysqlmb4. Currently mysqlmb4 fails with encoding issues: https://drone.owncloud.com/owncloud/core/12401/130 |
0cb3266
to
d9dfeaf
Compare
reverted the removal of workaround, just in case... |
I still have no clue why this PR influences mysqlmb4 aka mysql 5.7. The logic should still be the same. Also, I discovered this: https://dba.stackexchange.com/a/125893 With MySQL 8 the setting is also removed. |
ouch, of course... my logic is flawed 🤕 |
d9dfeaf
to
03f30db
Compare
should be fixed now. I've also added MySQL 8 in the matrix for fun and a added a check since MySQL 8 has removed the innodb vars as well. |
cool, all passed except MySQL 8 which has setup issues:
need to check, maybe the default creds have changed for that docker |
Since the DBAL update, the schema wrapper is not needed any more.
107997d
to
2592821
Compare
@phil-davis thank you, generous wizard. I have now applied your powerful magic to this pull request and hoping for the best. |
it worked !!! @DeepDiver1975 @phil-davis @VicDeo please review |
2592821
to
1528211
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI scripts LGTM.
I will let someone else comment on the "real" code changes.
@PVince81 Looks good. My quickfix for MariaDB 10.2 is not needed any more as it is already supported as a Doctrine Platform in our current doctrine/dbal version. How difficult it would be to write a test for |
While considering a backport please note that stable10 still uses older |
@VicDeo thanks for the warning. I don't think we should backport this unless MariaDB 10.2 becomes EOL soon. From what I see here https://mariadb.org/about/maintenance-policy/ MariaDB 10.2 still runs up to May 2022. Now if all Linux distributions start shipping 10.3 by default we might need to backport anyway at some point. |
|
Unit tests to verify implementation of mb4 detection without touching the database.
not sure how to read these results, seems that Ubuntu still is on MariaDB 10.1 here https://packages.ubuntu.com/search?keywords=mariadb-server also see https://mariadb.com/kb/en/library/distributions-which-include-mariadb/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Backporting as part of "drop PHP 7.0" in |
Add mariadb 10.3 to the unit test matrix.
For #29483 but doesn't cover mb4 AFAIK