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 CI build #721

Merged
merged 12 commits into from
Nov 27, 2024
Merged

Fix mariadb CI build #721

merged 12 commits into from
Nov 27, 2024

Conversation

staabm
Copy link
Owner

@staabm staabm commented Nov 26, 2024

fix to a older version, because the latest version fails with new error messages

> phpunit -c tests/rules/config/phpunit.xml '--colors=always'
PHPUnit 9.6.21 by Sebastian Bergmann and contributors.

.........FSF.FSFS............                                     29 / 29 (100%)

Time: 00:01.907, Memory: 98.00 MB

There were 4 failures:

1) staabm\PHPStanDba\Tests\SyntaxErrorInPreparedStatementMethodRuleTest::testSyntaxErrorInQueryRule
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
 105: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
 106: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
 107: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
-122: Query error: Unknown column 'asdsa' in 'where clause' (1054).
+122: Query error: Unknown column 'asdsa' in 'WHERE' (1054).
 137: Value :gesperrt is given, but the query does not contain this placeholder.
 180: Query error: Table 'phpstan_dba.package' doesn't exist (1146).
 307: Query expects placeholder :name, but it is missing from values given.

Error: phar:///home/runner/work/phpstan-dba/phpstan-dba/vendor/phpstan/phpstan/phpstan.phar/src/Testing/RuleTestCase.php:102
/home/runner/work/phpstan-dba/phpstan-dba/tests/rules/SyntaxErrorInPreparedStatementMethodRuleTest.php:226

2) staabm\PHPStanDba\Tests\SyntaxErrorInPreparedStatementMethodRuleTest::testSyntaxErrorWithInferencePlaceholder
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'12: Query error: Unknown column 'does_not_exist' in 'field list' (1054).
-36: Query error: Unknown column 'does_not_exist' in 'field list' (1054).
-60: Query error: Unknown column 'does_not_exist' in 'field list' (1054).
+'12: Query error: Unknown column 'does_not_exist' in 'SELECT' (1054).
+36: Query error: Unknown column 'does_not_exist' in 'SELECT' (1054).
+60: Query error: Unknown column 'does_not_exist' in 'SELECT' (1054).
 '

Error: phar:///home/runner/work/phpstan-dba/phpstan-dba/vendor/phpstan/phpstan/phpstan.phar/src/Testing/RuleTestCase.php:102
/home/runner/work/phpstan-dba/phpstan-dba/tests/rules/SyntaxErrorInPreparedStatementMethodRuleTest.php:313

3) staabm\PHPStanDba\Tests\SyntaxErrorInQueryFunctionRuleTest::testSyntaxErrorInQueryRule
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
 '09: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
 19: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
-39: Query error: Unknown column 'asdsa' in 'where clause' (1054).
+39: Query error: Unknown column 'asdsa' in 'WHERE' (1054).
 '

Error: phar:///home/runner/work/phpstan-dba/phpstan-dba/vendor/phpstan/phpstan/phpstan.phar/src/Testing/RuleTestCase.php:102
/home/runner/work/phpstan-dba/phpstan-dba/tests/rules/SyntaxErrorInQueryFunctionRuleTest.php:33

4) staabm\PHPStanDba\Tests\SyntaxErrorInQueryMethodRuleTest::testSyntaxErrorInQueryRule
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
 '11: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
 16: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
-21: Query error: Unknown column 'doesNotExist' in 'field list' (1054).
-26: Query error: Unknown column 'doesNotExist' in 'where clause' (1054).
-31: Query error: Unknown column 'doesNotExist' in 'order clause' (1054).
-36: Query error: Unknown column 'doesNotExist' in 'group statement' (1054).
+21: Query error: Unknown column 'doesNotExist' in 'SELECT' (1054).
+26: Query error: Unknown column 'doesNotExist' in 'WHERE' (1054).
+31: Query error: Unknown column 'doesNotExist' in 'ORDER BY' (1054).
+36: Query error: Unknown column 'doesNotExist' in 'GROUP BY' (1054).
 41: Query error: Table 'phpstan_dba.unknown_table' doesn't exist (1146).
 56: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'FROM ada LIMIT 0' at line 1 (1064).
 76: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
 82: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).
-103: Query error: Unknown column 'asdsa' in 'where clause' (1054).
-118: Query error: Unknown column 'xy' in 'group statement' (1054).
+103: Query error: Unknown column 'asdsa' in 'WHERE' (1054).
+118: Query error: Unknown column 'xy' in 'GROUP BY' (1054).
 135: Query error: Table 'phpstan_dba.adasfd' doesn't exist (1146).
 136: Query error: Table 'phpstan_dba.adasfd' doesn't exist (1146).
 137: Query error: Table 'phpstan_dba.adasfd' doesn't exist (1146).
 138: Query error: Table 'phpstan_dba.adasfd' doesn't exist (1146).
 '

Error: phar:///home/runner/work/phpstan-dba/phpstan-dba/vendor/phpstan/phpstan/phpstan.phar/src/Testing/RuleTestCase.php:102
/home/runner/work/phpstan-dba/phpstan-dba/tests/rules/SyntaxErrorInQueryMethodRuleTest.php:282

@staabm staabm marked this pull request as draft November 26, 2024 22:15
@staabm staabm changed the title Use fixed mariadb version Fix mariadb CI build Nov 27, 2024
@staabm staabm marked this pull request as ready for review November 27, 2024 09:10
@staabm staabm marked this pull request as draft November 27, 2024 09:11
This reverts commit 6dbde7a.
@staabm staabm marked this pull request as ready for review November 27, 2024 09:16
@staabm staabm merged commit a2d990f into main Nov 27, 2024
28 checks passed
@staabm staabm deleted the mariafix branch November 27, 2024 09:21
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.

1 participant