Summary
mwext-phpunit-coverage-patch is no longer running any tests, even with the filters set
Technical details
For example, https://integration.wikimedia.org/ci/job/mwext-phpunit-coverage-patch/63605/console#console-section-10 for CheckUser has tests which should have been executed but instead PHPUnit says "No tests executed!"
21:31:51 + exec phpunit-patch-coverage check --command 'php -d extension=pcov.so -d pcov.enabled=1 -d pcov.directory=/workspace/src/extensions/CheckUser -d pcov.exclude='\''@(tests|vendor)@'\'' -d pcov.initial.files=3000 "$MW_INSTALL_PATH"/vendor/bin/phpunit -c /workspace/src/phpunit.xml.dist' --html /workspace/log/coverage.html --test-dir tests/phpunit 21:31:51 Finding coverage difference in 38b12bdb535db0617a4b1e78051ca027c36e3468 21:31:51 $ php -d extension=pcov.so -d pcov.enabled=1 -d pcov.directory=/workspace/src/extensions/CheckUser -d pcov.exclude='@(tests|vendor)@' -d pcov.initial.files=3000 "$MW_INSTALL_PATH"/vendor/bin/phpunit -c /workspace/src/phpunit.xml.dist --coverage-clover /tmp/cloverVp3a0Y --filter '/GlobalBlockCheckTest|GlobalBlockCheckTest/' 21:31:51 Using PHP 8.3.30 21:31:51 Running with MediaWiki settings because there might be integration tests 21:31:57 PHPUnit 9.6.34 by Sebastian Bergmann and contributors. 21:31:57 21:31:57 No tests executed! 21:31:57 21:31:59 Generating code coverage report in Clover XML format ... done [00:01.691] 21:31:59 $ php -d extension=pcov.so -d pcov.enabled=1 -d pcov.directory=/workspace/src/extensions/CheckUser -d pcov.exclude='@(tests|vendor)@' -d pcov.initial.files=3000 "$MW_INSTALL_PATH"/vendor/bin/phpunit -c /workspace/src/phpunit.xml.dist --coverage-clover /tmp/clover2QgNsY --filter '/GlobalBlockCheckTest|GlobalBlockCheckTest/' 21:31:59 Using PHP 8.3.30 21:31:59 Running with MediaWiki settings because there might be integration tests 21:32:04 PHPUnit 9.6.34 by Sebastian Bergmann and contributors. 21:32:04 21:32:05 No tests executed! 21:32:05 21:32:06 Generating code coverage report in Clover XML format ... done [00:01.580] 21:32:07 No coverage changes found. 21:32:07 INFO:quibble.commands:<<< Finish: User commands: mwext-phpunit-coverage-patch, in 16.031 s
The same thing happens for tests in GlobalBlocking: https://integration.wikimedia.org/ci/job/mwext-phpunit-coverage-patch/63604/console#console-section-14
Acceptance criteria
- mwext-phpunit-coverage-patch actually runs the tests