Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 25 2019 06:05
  • Jan 23 2019 13:32

    cizezsy on dev

    [maven-release-plugin] prepare … (compare)

  • Jan 23 2019 13:32

    cizezsy on code-coverage-api-1.0.7

    (compare)

  • Jan 23 2019 13:32

    cizezsy on dev

    [maven-release-plugin] prepare … (compare)

  • Jan 23 2019 13:24

    cizezsy on dev

    Fix: thresholds set in global l… Merge pull request #67 from jen… (compare)

  • Jan 23 2019 13:24
    cizezsy closed #67
  • Jan 23 2019 07:09
    cizezsy synchronize #67
  • Jan 23 2019 07:09

    cizezsy on duplicated-thresholds

    Fix: thresholds set in global l… (compare)

  • Jan 23 2019 07:06
    cizezsy reopened #67
  • Jan 23 2019 07:06
    cizezsy closed #67
  • Jan 23 2019 07:03
    cizezsy opened #67
  • Jan 23 2019 07:02

    cizezsy on duplicated-thresholds

    Fix: thresholds set in global l… (compare)

  • Jan 23 2019 03:31

    cizezsy on dev

    remove unused import (compare)

  • Jan 22 2019 09:46

    cizezsy on dev

    Fix: threshold cannot be serial… Merge pull request #66 from jen… (compare)

  • Jan 22 2019 09:46
    cizezsy closed #66
  • Jan 22 2019 09:31
    cizezsy opened #66
  • Jan 22 2019 09:30

    cizezsy on threshold-serialize

    Fix: threshold cannot be serial… (compare)

  • Jan 18 2019 03:48
    cizezsy commented #65
  • Jan 17 2019 18:08
    andre2007 opened #65
  • Jan 17 2019 12:35
    cizezsy closed #64
rompic
@rompic
which is nice because we have both coverage reports available (alternatively having two named coverage items on the left side of the job would be ok as well)
now they are overwritting each other and i only see the second coverage report
Ulli Hafner
@uhafner:matrix.org
[m]
I see. Showing the results of two different projects in a single page seems to be hard from the UI design. In the new details view there is much more information visible in one page. I wonder if it would be simpler to implement if we use the same pattern as in the warnings plugin: different toplevel links that show the individual results. (Maybe that actually is the reason for the tag. Maybe we just need to transform the tag to an id, so that we also have the tag in the URL.
Can you please create a new issue?
rompic
@rompic
sure. thanks for the fast response
rompic
@rompic
I'll play around a little bit with the tags before creating the ticket
Oluwole Oyetoke
@OluwoleOyetoke

Does anyone how to resolve this error:

"Found no reference build, won't calculate coverage diff"

The Jenkins job fails after this error.
Oluwole Oyetoke
@OluwoleOyetoke
Do I need to merged first and this will correct itself from the next PR?
Ulli Hafner
@uhafner:matrix.org
[m]
The failure of your job is not be related to the message. The message simply says that you did not correctly configure the reference job. How do you invoke the step? Did you configure the reference build before the coverage?
Oluwole Oyetoke
@OluwoleOyetoke
I called publishCoverage adapters: [jacocoAdapter('target/site/jacoco/jacoco.xml')] after build.
What do you mean by configure the reference job
Oluwole Oyetoke
@OluwoleOyetoke
Thanks, that fixed it.
Is there any documentation on ThresholdTarget? I want my threshold to be against total number of lines covered. Is this supported?
Oluwole Oyetoke
@OluwoleOyetoke
Is there a reason why line and instruction coverage will decrease for a PR where I only made changes to pom.xml?
Oluwole Oyetoke
@OluwoleOyetoke
I replay the same job and sometimes line coverage diff is 0%, other times its -0.0086%
Without any change in code
I'm wondering why this is happening
It is always a percentage.
I think the delta computation currently has a rounding problem.
ayli
@ayli:matrix.org
[m]
Is it possible to speed up the copying of the source code or attach code without copying it? Currently I have 5800 files and it spends 1 hour. My call publishCoverage adapters: [jacocoAdapter('**/target/site/jacoco/jacoco.xml')], sourceFileResolver: sourceFiles('STORE_LAST_BUILD')
ayli
@ayli:matrix.org
[m]
Ah I see improvement jenkinsci/code-coverage-api-plugin#310. But it was not released yet?
Ulli Hafner
@uhafner:matrix.org
[m]
Yes, this PR (and some others) are feature complete and will be released soon. If you are interested in testing, please let me know!
Currently the UI is not so good on small displays so I want to fix that before a next release.
You can build the plugin manually and install in a test instance.
Cristian Morales Vega
@RedDwarf82_gitlab
Warnings NG has the "id" and "name" options so I can have multiple reports in both the Jenkins job page and in the GitHub reports.
That's not possible with publishCoverage, right?

I am a bit confused because I'm not sure what the "mergeToOneReport" option does (since there can only be a report, it's always "merged" isn't it?), and because in the Jenkins job page I get:

Coverage Report
    Project Coverage:
        Line: 14.02%
        Branch: 14.86%

What's the point of having that "Project Coverage" if there can be only one project?
I suspect I'm missing something. FWIW I'm using the coberturaAdapter with a xml file created by gcovr.

Cristian Morales Vega
@RedDwarf82_gitlab

FWIW at some point I tried to do

publishCoverage ...
withChecks('Different coverage') {
  publishCoverage ...
}

And it didn't go well, GitHub was saying that it never received all the Checks.

Ulli Hafner
@uhafner:matrix.org
[m]
This part of the plug-in is currently broken, see corresponding issue
Cristian Morales Vega
@RedDwarf82_gitlab
Peter Schrott
@peterschrott

Hi,

i am about to setup the code-coverage-api-plugin for a java maven project (jacoco) and wanted to define some thresholds like:

[thresholdTarget: 'Branch', unhealthyThreshold: 65.0, unstableThreshold: 75.0]

This gives me and NPE when running on Jenkins, as the target "Branch" seems not to exist. It works fine with e.g. "Line".

I could not find the correct target name for branch coverage, could someone give me a hint, how to setup the thresholds for branch coverage?

Best & Thanks

uhafner
@uhafner:matrix.org
[m]
I think the current naming is "Conditional". (Though this kind of processing will be replaced in the next major release with quality gates, see jenkinsci/code-coverage-api-plugin#512 for details)