Skip to content
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

Fix MariaDB support in FactoryTest #194

Open
wants to merge 1 commit into
base: 0.7.x
Choose a base branch
from

Conversation

bwaidelich
Copy link
Contributor

Apparently MariaDB does not contain the

 (using password: YES)

substring in the authentication error message.
By making that substring optional in the corresponding regex check, the tests are green for me (11.1.2-MariaDB @ Macbook Pro M1)

Apparently MariaDB does not contain the
```
 (using password: YES)
```
substring in the authentication error message.
By making that substring optional in the corresponding regex check, the tests are green for me (11.1.2-MariaDB @ Macbook Pro M1)
Copy link
Contributor

@SimonFrings SimonFrings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwaidelich Thanks for opening this pull request 👍

This seems like a fairly simple change and brings up the bigger question, how are we making sure this works as expected across different relational database management systems? For now I can only take your word for it, as we don't have proof that this test failed with MariaDB, so I think we need to improve our test suite to cover these cases.

I'm not sure if this is something to discuss for this pull request, as answering this question takes up much more time and I don't want to leave this laying around for too long.

The test suite is currently green and was green before, so we could argue that this doesn't break anything we're currently testing against and merge it as is. I personally can't really "approve" this PR as it's hard to proof what's currently getting fixed, so maybe postpone until we have tests in place?

Interested in your and @WyriHaximus's and @clue's opinion on this.

@bwaidelich
Copy link
Contributor Author

how are we making sure this works as expected across different relational database management systems?

I was wondering the same.
You could maybe add MariaDB to the CI matrix as it's a fairly common MySQL replacement

WyriHaximus added a commit to WyriHaximus-labs/mysql that referenced this pull request Mar 21, 2024
This change set introduces a `rdbms` matrix with the purpose of increasing insurance this package works with up to the latest MySQL/MariaDB versions.

Note that due to MySQL's versioning there are no `v6` and `v7`.

Refs: friends-of-reactphp#194
WyriHaximus added a commit to WyriHaximus-labs/mysql that referenced this pull request Mar 21, 2024
This change set introduces a `rdbms` matrix with the purpose of increasing insurance this package works with up to the latest MySQL/MariaDB versions.

Note that due to MySQL's versioning there are no `v6` and `v7`.

Refs: friends-of-reactphp#194
WyriHaximus added a commit to WyriHaximus-labs/mysql that referenced this pull request Mar 21, 2024
This change set introduces a `rdbms` matrix with the purpose of increasing insurance this package works with up to the latest MySQL/MariaDB versions.

Note that due to MySQL's versioning there are no `v6` and `v7`.

Refs: friends-of-reactphp#194
@WyriHaximus
Copy link
Member

Interested in your and @WyriHaximus's and @clue's opinion on this.

TL;DR: here is my opinion on this: #196

The test suite is currently green and was green before, so we could argue that this doesn't break anything we're currently testing against and merge it as is. I personally can't really "approve" this PR as it's hard to proof what's currently getting fixed, so maybe postpone until we have tests in place?

We should increase our compatibility matrix. I've just put up #196 as to how we will achieve that. It's rough on the edges but it is the way forward IMHO. The question is should MariaDB be in that PR or a follow up. Funny enough with MariaDB it's still green. However, only for the previous major version of both, doing both previous and current mayor version and tests start failing: https://github.com/friends-of-reactphp/mysql/actions/runs/8381598989

WyriHaximus added a commit to WyriHaximus-labs/mysql that referenced this pull request Apr 23, 2024
This change set introduces a `rdbms` matrix with the purpose of increasing insurance this package works with up to the latest MySQL/MariaDB versions.

Note that due to MySQL's versioning there are no `v6` and `v7`.

Refs: friends-of-reactphp#194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants