Skip to content

Adding configuration option to exclude jobs from Prometheus metrics v…

ci.jenkins.io / Code Coverage succeeded Sep 22, 2024 in 0s

Line Coverage: 53.85% (-13.46%), Branch Coverage: 50.00% (+1.19%)

Summary for modified lines

  • 87 lines have been modified
  • 18 lines are not covered
  • 5 lines are covered only partially

Overview by baseline

Quality Gates Summary

No active quality gates.

Details

Project coverage details

Module Coverage Package Coverage File Coverage Class Coverage Method Coverage Line Coverage Branch Coverage Instruction Coverage
🐾 Overall project 100.00% (1/1) 100.00% (13/13) 97.96% (96/98) 96.26% (103/107) 89.96% (484/538) 83.79% (1396/1666) 72.42% (344/475) 84.45% (6035/7146)
📈 Overall project (difference to reference job) +0.00% +0.00% +0.02% ⬆️ -0.88% ⬇️ -0.43% ⬇️ -0.83% ⬇️ -1.23% ⬇️ -0.61% ⬇️
🐾 Modified files 100.00% (1/1) 100.00% (2/2) 100.00% (5/5) 85.71% (6/7) 83.33% (35/42) 67.31% (210/312) 48.81% (41/84) 73.92% (1142/1545)
📈 Modified files (difference to reference job) n/a n/a n/a n/a n/a -3.22% ⬇️ -3.97% ⬇️ n/a
🐾 Modified code lines 100.00% (1/1) 100.00% (2/2) 80.00% (4/5) n/a n/a 53.85% (21/39) 50.00% (10/20) n/a
📈 Modified code lines (difference to modified files) n/a n/a n/a n/a n/a -13.46% ⬇️ +1.19% ⬆️ n/a

Annotations

Check warning on line 86 in src/main/java/org/jenkinsci/plugins/prometheus/CodeCoverageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 85-86 are not covered by tests

Check warning on line 84 in src/main/java/org/jenkinsci/plugins/prometheus/CodeCoverageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 84 is only partially covered, one branch is missing

Check warning on line 164 in src/main/java/org/jenkinsci/plugins/prometheus/JobCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 162-164 are not covered by tests

Check warning on line 73 in src/main/java/org/jenkinsci/plugins/prometheus/DiskUsageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered line

Line 73 is not covered by tests

Check warning on line 72 in src/main/java/org/jenkinsci/plugins/prometheus/DiskUsageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 72 is only partially covered, one branch is missing

Check warning on line 55 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/MetricStatusChecker.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 47-55 are not covered by tests

Check warning on line 46 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/MetricStatusChecker.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 46 is only partially covered, one branch is missing

Check warning on line 79 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/MetricStatusChecker.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 79 is only partially covered, one branch is missing

Check warning on line 23 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/JobRegexDisabledMetric.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 13-23 are not covered by tests