-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Travis CI tests on MySQL 8.0 #3372
Conversation
1da1a9c
to
8c030c9
Compare
Referencing #3183. |
Crap, sorry for the dup, once again. |
9e270ab
to
58d2653
Compare
Seems to fail to upgrade MySQL. What are your thoughts about running a tagged docker container instead? |
58d2653
to
d5a689b
Compare
I'm debugging it right now, it should work soon. |
It runs MySQL 8.0 alright, there's just a
If I add code Instead I'm adding |
7b81f2e
to
e9664f6
Compare
All good now 👍
|
Give it a squash, please |
e9664f6
to
8018765
Compare
Squashed! |
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.
@BenMorel please make sure Scrutinizer code coverage configuration reflects the changes.
echo "Installing MySQL 8.0..." | ||
|
||
echo mysql-apt-config mysql-apt-config/select-server select mysql-8.0 | sudo debconf-set-selections | ||
wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb |
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.
Please use Docker container instead of arbitrary 3rd-party debfile. As done in #3183.
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.
I'm not familiar with Docker, however for the record this isn't an arbitrary debfile, this is MySQL's official APT repository.
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.
Given the nature of APT repositories, it's not a good idea to depend on a debfile as debfiles may randomly disappear when they get superseded by newer version.
Also Docker is easier to setup, configure environment, maintain and in the end is more reliable.
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.
Note that MySQL 5.7 is already installed using MySQL's APT repo. If you move to Docker, then this one should be updated as well for consistency.
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.
Sure.
How is this PR better than #3183? Why not finish that one instead of duplicating changes here? |
8018765
to
4000e07
Compare
+ fixes issues in MysqlPlatform::getListTableIndexesSQL() and getListTableColumnsSQL() on MySQL 8.0
4000e07
to
f7b4177
Compare
@morozov Updated Scrutinizer config and rebased on latest @Majkl578 Sorry, I didn't mean to interfer with your PR, I didn't find it when I opened this one. I did check it afterwards, and saw that it was left in a failing state with debug information. Because I don't have write access, I can't commit to your PR, so I chose to finish mine. Feel free to merge either PR, I really don't mind! |
@Majkl578 I think it will be fair to merge this pull request. It gets the job done, and we didn't have any problems with deb-packaged MySQL in the past. We can replace deb packages with Docker images later if needed.
UPD: if it will work with a Docker image, we should reimplement it. I doubt Travis will ever support PHP 7.3 on Xenial, so if we don't take care of it now, we'll have to rework it later. |
@BenMorel you can try using the bits from #3183. Let us know if you need help. Maybe @Majkl578 or I could help you finish it. Alternatively, if we rebase #3183 and tests no longer fail there, we can merge it instead. @Majkl578 let me know if you need help rebasing it. No pressure, but this is the last open ticket for 2.9.0 😄 |
I won't be able to help with Docker, as I don't have any incentive right now to learn it. I suggest that you either:
If you're in a hurry for 2.9.0, then maybe the first option could be a good compromise? |
Right now it's not that much of a blocker, so I'd like to get input from @Majkl578 first. Both options look legit to me. |
I'd say let's merge here and then we rebase the other patch, mostly due to this being ready to be shipped. |
Thank you @BenMorel. Time to put together some release notes. |
I disagree, Xenial is not acceptable - it's unstable, undocumented and doesn't support PHP 7.3. |
@Majkl578 let's fix it up, then - for now we reached the goal of getting 8.0 tested |
Summary
MySQL 8.0 has been out for some time, yet Doctrine DBAL is not tested against this version right now.
Following the rules edicted in #3347 and #3365, PHP
7.1
,① and7.3
nightly
are now only tested against the latest version, MySQL 8.0.① Edit: MySQL 8.0 requires Xenial, and Travis CI does not support PHP 7.3 on Xenial yet. PHP 7.3 tests are therefore kept on MySQL 5.7 for the time being.