Last modified: 2014-08-18 06:15:02 UTC
We could use a code coverage report of mediawiki/core unit tests. That has been a long time request by Chris McMahon. Asher expressed interest too. We could just run it once per day. No points in having such a CPU intensive task to be done on each merge.
(In reply to comment #0) > We could use a code coverage report of mediawiki/core unit tests. That has > been > a long time request by Chris McMahon. Asher expressed interest too. > > We could just run it once per day. No points in having such a CPU intensive > task to be done on each merge. Seems pretty sensible to me. Could do with a standardised place to view it such as integration.wikimedia.org/codecoverage etc
The Jenkins job is http://integration.wikimedia.org/ci/job/mediawiki-core-code-coverage/? The code coverage report is/will be available at: https://integration.wikimedia.org/cover/mediawiki-core/master/php/
Job currently failing due to: PHP Fatal error: Class 'Services_JSON' not found in /var/lib/jenkins/jobs/mediawiki-core-code-coverage/workspace/tests/phpunit/includes/json/ServicesJsonTest.php on line 21 The workspace need to be wiped before the job is build.
https://gerrit.wikimedia.org/r/#/c/58467/ let us wipe the workspace, it is applied to the job with https://gerrit.wikimedia.org/r/#/c/58468/ .
PHP is segfaulting, see bug 43972
Any chance having it configured, so that extensions (such as SMW or Wikibase) can make use of it as well?
MWJames : as long as it segfault, that is hopeless :)
Change 90509 had a related patch set uploaded by Hashar: 'Cover' section listing code coverage reports https://gerrit.wikimedia.org/r/90509
Change 90509 merged by jenkins-bot: 'Cover' section listing code coverage reports https://gerrit.wikimedia.org/r/90509
PHP still segfaults but it happens very late in PHP execution (during shutdown), so the HTML is actually generated and published at https://integration.wikimedia.org/cover/mediawiki-core/master/php/ The change 90509 above adds a 'Coverage' section on https://integration.wikimedia.org/ which points to the manually maintained list of coverage reports we have: https://integration.wikimedia.org/cover/ Keeping bug open since the Jenkins job producing the coverage code is always failing due to PHP segfaulting (bug 43972).
Bug 43972 tracks the segfaulting issue. Code coverage is generated daily so we can get rid of this bug.
(In reply to MWJames from comment #6) > Any chance having it configured, so that extensions (such as SMW or > Wikibase) can make use of it as well? I filed bug 69685 for extensions.