failling CI build
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- github-actions, php, postgresql
- Domain
- ci-cd, databases, testing-qa
Research direction
The failure is in tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php, especially lines 4658, 4508, and 532; start by running the pgsql test case for t.col_bool_nullable from the linked CI run. Compare the fetched false value with the expected null, and finish when the result behavior is resolved and the relevant CI test passes.
Written by the indexing model from the issue text.
Description
while exploring mutation testing I am stumbling over a failling CI test:
https://github.com/phpstan/phpstan-doctrine/actions/runs/18255085404/job/51975257235?pr=686
There was 1 failure:
1) PHPStan\Platform\QueryResultTypeWalkerFetchTypeMatrixTest::testPgsql with data set "t.col_bool_nullable" (array(array('1', true, null, 0.125, null, '0.1', null, 9, null, '2147483648', null, 'foobar', null, 1, DateTime Object (...))), 'SELECT t.col_bool_nullable FROM %s t', PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), null, null, null, null, null, 'none')
Mismatch between expected result and fetched result
Driver: pgsql
Config: default
Dataset: t.col_bool_nullable
DQL: SELECT t.col_bool_nullable FROM PHPStan\Platform\Entity\PlatformEntity t
SQL: SELECT t0_.col_bool_nullable AS col_bool_nullable_0 FROM test t0_
PHP: 8.1
Real first item: false
Expected first item: NULL
Failed asserting that false is identical to null.
/home/runner/work/phpstan-doctrine/phpstan-doctrine/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php:4658
/home/runner/work/phpstan-doctrine/phpstan-doctrine/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php:4508
/home/runner/work/phpstan-doctrine/phpstan-doctrine/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php:532
@VincentLanglet is this something you could look into?
- Dominant language
- PHP
- Stars
- 678
- Forks
- 122
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from phpstan/phpstan-doctrine
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
phpstan/phpstan-doctrine#785 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
phpstan/phpstan-doctrine#792 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
phpstan/phpstan-doctrine#788 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
phpstan/phpstan-doctrine#763 ·
All issues in phpstan/phpstan-doctrine
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100