Page MenuHomePhabricator

Generate coverage report for Wikidata extensions
Closed, ResolvedPublic

Description

This would be useful, for example, to see in the CoverMe tool which frequently-run functions are not yet well tested.

Event Timeline

Ladsgroup triaged this task as Medium priority.

Change 404972 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[integration/config@master] Report coverage of WikibaseQualityConstraints

https://gerrit.wikimedia.org/r/404972

Change 404972 merged by jenkins-bot:
[integration/config@master] Report coverage of WikibaseQualityConstraints

https://gerrit.wikimedia.org/r/404972

hashar updated the task description. (Show Details)

Since this task got filed in 2018, coverage has been added to lot of extensions https://doc.wikimedia.org/cover-extensions/

Yet the most important one by far, Wikibase, still doesn’t have coverage information.

Change #1016303 had a related patch set uploaded (by Reedy; author: Reedy):

[integration/config@master] layout.yaml: Add extension-coverage to Wikibase extension

https://gerrit.wikimedia.org/r/1016303

Though we also have T288396 for Wikibase specifically (I temporarily forgot it existed, but there’s more details there).

Change #1016303 merged by jenkins-bot:

[integration/config@master] layout.yaml: Add extension-coverage to Wikibase extension

https://gerrit.wikimedia.org/r/1016303

Yet the most important one by far, Wikibase, still doesn’t have coverage information.

Sorry I have somehow missed Wikibase was in the list of this task! :-)

Change #1016303 merged by jenkins-bot:

[integration/config@master] layout.yaml: Add extension-coverage to Wikibase extension

https://gerrit.wikimedia.org/r/1016303

Example build results in:

Warning: Incorrect filter configuration, code coverage will not be processed

test -f /workspace/cover/index.html

subprocess.CalledProcessError: Command 'mwext-phpunit-coverage' returned non-zero exit status 1.

Change #1017888 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[integration/config@master] Revert "layout.yaml: Add extension-coverage to Wikibase extension"

https://gerrit.wikimedia.org/r/1017888

Change #1017888 merged by jenkins-bot:

[integration/config@master] Revert "layout.yaml: Add extension-coverage to Wikibase extension"

https://gerrit.wikimedia.org/r/1017888

hashar claimed this task.
hashar updated the task description. (Show Details)

Wikibase itself is a different beast. I have declined the decade old T74318 . Wikibase apparently had coverage report for some time and adding it back looks like to be the subject of T288396.

I am marking this one as completed given the standard Wikibase* extensions now have coverage reports generated at https://doc.wikimedia.org/cover-extensions/