Hello, in the last few days, for some reason, CI jobs related to the coverage fails with this reason:
04:16:11 Finding coverage difference in ede7dc8b68b63373b38fee56facaccf5b7d62589 04:16:11 $ php -d zend_extension=xdebug.so tests/phpunit/phpunit.php --coverage-clover /tmp/cloverETlRWo --filter '/MediaWikiIntegrationTestCase|MediaWikiTestCaseTrait|DiffHistoryBlobTest/' 04:16:11 PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/lib/php/20180731/xdebug.so (/usr/lib/php/20180731/xdebug.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ xdebug.so.so (/usr/lib/php/20180731/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 04:16:11 Using PHP 7.3.27-9+0~20210227.82+debian10~1.gbpa4a3d6 04:16:14 PHPUnit 8.5.15 by Sebastian Bergmann and contributors. 04:16:14 04:16:14 Error: No code coverage driver is available 04:16:14 04:16:14 ............................S.......SS 38 / 38 (100%) 04:16:14 04:16:14 Time: 3.21 seconds, Memory: 365.00 MB 04:16:14 04:16:14 OK, but incomplete, skipped, or risky tests! 04:16:14 Tests: 38, Assertions: 87, Skipped: 3. 04:16:14 04:16:14 04:16:14 You should really speed up these slow tests (>50ms)... 04:16:14 1. 60ms to run MediaWikiIntegrationTestCaseTest:testEditPage 04:16:14 04:16:14 In CloverXml.php line 69: 04:16:14 04:16:14 String could not be parsed as XML 04:16:14 04:16:14 04:16:14 check [--sha1 [SHA1]] [--test-dir TEST-DIR] [--html [HTML]] [--command COMMAND]
Example: https://integration.wikimedia.org/ci/job/mwcore-phpunit-coverage-patch/28411... Patch: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/675296
I would like to know why is this happening.
Best regards, Zoran
Hi Zoran,
Please see https://phabricator.wikimedia.org/T280064, it’s being worked on.
Kosta
Στις Τετ, 14 Απρ 2021 στις 04:48 ο χρήστης Zoran Dori < zorandori4444@gmail.com> έγραψε:
Hello, in the last few days, for some reason, CI jobs related to the coverage fails with this reason:
04:16:11 Finding coverage difference in ede7dc8b68b63373b38fee56facaccf5b7d62589 04:16:11 $ php -d zend_extension=xdebug.so tests/phpunit/phpunit.php --coverage-clover /tmp/cloverETlRWo --filter '/MediaWikiIntegrationTestCase|MediaWikiTestCaseTrait|DiffHistoryBlobTest/' 04:16:11 PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/lib/php/20180731/xdebug.so (/usr/lib/php/20180731/xdebug.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ xdebug.so.so (/usr/lib/php/20180731/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 04:16:11 Using PHP 7.3.27-9+0~20210227.82+debian10~1.gbpa4a3d6 04:16:14 PHPUnit 8.5.15 by Sebastian Bergmann and contributors. 04:16:14 04:16:14 Error: No code coverage driver is available 04:16:14 04:16:14 ............................S.......SS 38 / 38 (100%) 04:16:14 04:16:14 Time: 3.21 seconds, Memory: 365.00 MB 04:16:14 04:16:14 OK, but incomplete, skipped, or risky tests! 04:16:14 Tests: 38, Assertions: 87, Skipped: 3. 04:16:14 04:16:14 04:16:14 You should really speed up these slow tests (>50ms)... 04:16:14 1. 60ms to run MediaWikiIntegrationTestCaseTest:testEditPage 04:16:14 04:16:14 In CloverXml.php line 69: 04:16:14 04:16:14 String could not be parsed as XML 04:16:14 04:16:14 04:16:14 check [--sha1 [SHA1]] [--test-dir TEST-DIR] [--html [HTML]] [--command COMMAND]
Example: https://integration.wikimedia.org/ci/job/mwcore-phpunit-coverage-patch/28411... Patch: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/675296
I would like to know why is this happening.
Best regards, Zoran _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hi,
On 4/13/21 7:47 PM, Zoran Dori wrote:
<snip> I would like to know why is this happening.
See https://phabricator.wikimedia.org/T280064 and https://phabricator.wikimedia.org/T234020#6989290. Daimona has proposed https://gerrit.wikimedia.org/r/c/integration/config/+/678383/ to hopefully fix it.
-- Legoktm
Indeed. I should also note that the issue reported at https://phabricator.wikimedia.org/T280064 is about xdebug not being found. I don't have an explanation for this; perhaps something was missed while switching the job to PHP 7.3. OTOH, my proposed solution will make it possible to use pcov instead of xdebug, thus basically ignoring the current issue with xdebug. The rationale being, I don't think it's necessary to unbreak xdebug support if we're migrating away from it anyway.
Il giorno mer 14 apr 2021 alle ore 07:05 Kunal Mehta legoktm@debian.org ha scritto:
Hi,
On 4/13/21 7:47 PM, Zoran Dori wrote:
<snip> I would like to know why is this happening.
See https://phabricator.wikimedia.org/T280064 and https://phabricator.wikimedia.org/T234020#6989290. Daimona has proposed https://gerrit.wikimedia.org/r/c/integration/config/+/678383/ to hopefully fix it.
-- Legoktm
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hello, thank you very much for providing informations, I appreciate it and I hope that the problems will be resolved soon. :)
Best regards, Zoran
wikitech-l@lists.wikimedia.org