Skip to content

use the updated mariadb10.6 container in drone - #33631

Merged
szaimen merged 1 commit into
masterfrom
enh/noid/mariadb10.6-master
Nov 15, 2022
Merged

use the updated mariadb10.6 container in drone#33631
szaimen merged 1 commit into
masterfrom
enh/noid/mariadb10.6-master

Conversation

@szaimen

Copy link
Copy Markdown
Contributor

Signed-off-by: szaimen szaimen@e.mail.de

@szaimen

szaimen commented Aug 21, 2022

Copy link
Copy Markdown
ContributorAuthor

Cc @nickvergessen@ArtificialOwl it seems like tests fail with thr latest mariadb10.6 version: ERROR 1140 (42000) at line 2: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause. What can we do to fix this?

I made it running by not adding the sql-mode command from the drone config in #33607 and #33606...

@nickvergessen

Copy link
Copy Markdown
Member

I made it running by not adding the sql-mode command from the drone config

Tests failed, so we don't run them.... 🤕

If the query is an issue it needs to be adjusted

@szaimen

Copy link
Copy Markdown
ContributorAuthor

If the query is an issue it needs to be adjusted

And where can I find this query and why does it fail only with this new mariadb10.6 version and not with an old mariadb10.6 version?

Comment thread.drone.yml
@nickvergessen

Copy link
Copy Markdown
Member

Maybe because they fixed something in a maintenance release?

I can't even see the query nor anything as CI just died with a timeout

@szaimen

Copy link
Copy Markdown
ContributorAuthor

Maybe because they fixed something in a maintenance release?

possible

I can't even see the query nor anything as CI just died with a timeout

same

@szaimen

szaimen commented Aug 21, 2022

Copy link
Copy Markdown
ContributorAuthor

cc @dr-m maybe?

Are there some known issues with the latest mariadb10.6 release and

- --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
?

@dr-m

dr-m commented Aug 22, 2022

Copy link
Copy Markdown

@szaimen I only really know the InnoDB storage engine. On a quick read of the comments on this pull request, sql_mode=ONLY_FULL_GROUP_BY is what should cause the error to be reported for such invalid SQL. https://mariadb.com/kb/en/group-by/ does not say when the default setting of that might have been changed.

@szaimen

Copy link
Copy Markdown
ContributorAuthor

I only really know the InnoDB storage engine

Ah I see. Sorry for pinging you then!

On a quick read of the comments on this pull request, sql_mode=ONLY_FULL_GROUP_BY is what should cause the error to be reported for such invalid SQL. https://mariadb.com/kb/en/group-by/ does not say when the default setting of that might have been changed.

Thanks! We'll have a look!

@szaimen

Copy link
Copy Markdown
ContributorAuthor

Seems like removing ONLY_FULL_GROUP_BY indeed makes it work.

@nickvergessen since this was added intentionally, how can we debug and fix this?

@szaimen
szaimenforce-pushed the enh/noid/mariadb10.6-master branch from 6bcbda5 to 4e83a8cCompareAugust 22, 2022 08:13
@nickvergessen

nickvergessen commented Aug 22, 2022

Copy link
Copy Markdown
Member

Maybe the docker image itself is incompatible with the flag? I don't know. It fails outside of the nextcloud code, so should be good/easy to report to the maria docker people?

At least our tests need to run in this mode, I don't really care how it gets enabled

@szaimen

Copy link
Copy Markdown
ContributorAuthor

Maybe the docker image itself is incompatible with the flag?

I'll try that out locally.

@szaimen

Copy link
Copy Markdown
ContributorAuthor

Yes, this fails with the same log:

docker run -it --rm \
--name mariadb \
-e MYSQL_ROOT_PASSWORD=owncloud \
-e MYSQL_USER=oc_autotest \
-e MYSQL_PASSWORD=owncloud \
-e MYSQL_DATABASE=oc_autotest \
ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest \
--sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

@szaimen

Copy link
Copy Markdown
ContributorAuthor

Reported in https://jira.mariadb.org/browse/MDEV-29347

@szaimen

Copy link
Copy Markdown
ContributorAuthor

Waiting for mariadb10.6.11 release which fixes the issue. https://hub.docker.com/_/mariadb/tags?page=1&name=10.6

Signed-off-by: szaimen <szaimen@e.mail.de>
@szaimen
szaimenforce-pushed the enh/noid/mariadb10.6-master branch from 44962c5 to fe2b851CompareNovember 11, 2022 20:34
@szaimenszaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 11, 2022
@szaimen
szaimen marked this pull request as ready for review November 11, 2022 20:35
@szaimenszaimen changed the title [WIP] use the updated mariadb10.6 container in droneuse the updated mariadb10.6 container in droneNov 11, 2022
@szaimen
szaimen requested review from a team and nickvergessenNovember 11, 2022 20:35
@szaimen
szaimen requested review from PVince81, blizzz and icewind1991 and removed request for a teamNovember 11, 2022 20:35
@szaimen

Copy link
Copy Markdown
ContributorAuthor

MariaDB 10.6.11 is finally out that brings the fix. So this should finally be ready for review :)

@szaimen

Copy link
Copy Markdown
ContributorAuthor

/backport to stable25

@szaimen

Copy link
Copy Markdown
ContributorAuthor

CI failure unrelated

@szaimen
szaimen merged commit c3d0b71 into masterNov 15, 2022
@szaimen
szaimen deleted the enh/noid/mariadb10.6-master branch November 15, 2022 12:26
@backportbot-nextcloud

Copy link
Copy Markdown

The backport to stable25 failed. Please do this backport manually.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@szaimen@nickvergessen@dr-m@blizzz@come-nc