Page MenuHomePhabricator

Provide list of repos with coverage information in machine-readable format
Closed, ResolvedPublic

Description

https://doc.wikimedia.org/cover-extensions/ provides coverage information about various repos. For every repo the coverage is available in machine-readable Clover format (although not linked from the web interface so one has to guess that), but the only way to get the list of repos seems to be scraping the HTML. It's easy (the coverage tool does it), but it would still be nicer if there was a machine-readable list which does not break whenever the HTML template changes.

Event Timeline

hashar triaged this task as Low priority.EditedMay 6 2019, 11:54 AM
hashar subscribed.

I am not sure what you are looking for. Do you need a machine friendly list of (extension, coverage percent) ?

The code is in integration/docroot.git , the root page is org/wikimedia/doc/cover-extensions/index.php which relies on shared/CoveragePage.php

Maybe it be can be enhanced to support outputing a json/xml.

Do you need a machine friendly list of (extension, coverage percent)?

Yeah.

Change 698180 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/docroot@master] coverage: add link to clover.xml

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

Two years later, it seems it is all about adding a link to the clover.xml file.

Change 698180 merged by jenkins-bot:

[integration/docroot@master] cover: add link to clover.xml file

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

The covering pages (https://doc.wikimedia.org/cover-extensions/ and https://doc.wikimedia.org/cover/) now have a link to the clover.xml file next to each project.