Page MenuHomePhabricator

Generate code coverage and make it available to wmf-sonar-scanner
Closed, ResolvedPublic

Description

The wmf-sonar-scanner job hopes to find code coverage reports (see run.sh for example) and if they are found, they will be incorporated into the analysis.

Some problems to figure out:

  1. We need a way to have the code coverage job(s) (plural -- because MobileFrontend for example has both PHP and JS code coverage reports) run before the wmf-sonar-scanner job.
  2. We need a solution that can work for Python, Java, PHP, JS, etc and does not assume that the project we are looking at is a Mediawiki Extension or Mediawiki core. (However starting with just core + extensions would be reasonable.)

Event Timeline

Change 501685 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] (wip) Invoke wmf-sonar-scanner after code coverage is generated

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

Change 502606 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] Establish codehealth pipeline

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

Change 501685 abandoned by Kosta Harlan:
Invoke wmf-sonar-scanner after PHP code coverage is generated

Reason:
Abandoning in favor of https://gerrit.wikimedia.org/r/#/q/If503cf3de069566a9058404d0b4cbc9c167463dc

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

Change 508006 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] Bump java8-sonar-scanner to 0.4.2

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

Change 508019 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] Generate junit.xml for sonar-scanner's usage

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

Change 508006 merged by jenkins-bot:
[integration/config@master] Bump java8-sonar-scanner to 0.4.2

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

Change 508086 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] sonar-scanner: Adjust polling script

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

Change 508086 merged by jenkins-bot:
[integration/config@master] sonar-scanner: Adjust polling script, drop JSON pretty-print output

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

Change 508929 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] sonar-scanner: Use relative paths and mount to /workspace/src

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

Change 508929 merged by jenkins-bot:
[integration/config@master] sonar-scanner: Use relative paths and mount to /workspace/src

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

Change 508019 merged by jenkins-bot:
[integration/config@master] Generate junit.xml for sonar-scanner's usage

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

Change 502606 merged by jenkins-bot:
[integration/config@master] Establish codehealth pipeline, enable for GrowthExperiments only

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

Change 509930 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] Codehealth: Make patch job voting

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

Change 509930 merged by jenkins-bot:
[integration/config@master] Codehealth: Make patch job voting

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

Change 509943 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] Codehealth pipeline: Ignore exit code of npm test:unit

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

Change 509944 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] Codehealth: Allow jobs to execute concurrently

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

Change 509944 merged by jenkins-bot:
[integration/config@master] Codehealth: Allow jobs to execute concurrently

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

Change 509943 merged by jenkins-bot:
[integration/config@master] Codehealth pipeline: Ignore exit code of npm test:unit

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

Change 510824 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[integration/config@master] Change sonar-scanner to a publisher

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

Change 510824 merged by jenkins-bot:
[integration/config@master] Codehealth: Change sonar-scanner to a publisher

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