Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Conversation

@fo-code
Copy link
Collaborator

@fo-code fo-code commented Sep 26, 2022

I added an additional check to prevent exception in case of mismatches between the calculated code delta and the Jacoco coverage data.
This prevents the bug from issue #467.
After an unexpected behavior has been detected, all caluclations based on the code delta are skipped and the error is logged.

@codecov
Copy link

codecov bot commented Sep 26, 2022

Codecov Report

Merging #486 (df487c7) into master (4e28a81) will increase coverage by 0.11%.
The diff coverage is 94.73%.

@@             Coverage Diff              @@
##             master     #486      +/-   ##
============================================
+ Coverage     72.66%   72.78%   +0.11%     
- Complexity     1010     1014       +4     
============================================
  Files            87       87              
  Lines          3754     3770      +16     
  Branches        436      437       +1     
============================================
+ Hits           2728     2744      +16     
  Misses          878      878              
  Partials        148      148              
Impacted Files Coverage Δ
...ns/plugins/coverage/model/CodeDeltaCalculator.java 97.84% <94.73%> (+0.44%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@uhafner uhafner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is only debugging code, only some optional improvements.

# Conflicts:
#	plugin/src/main/java/io/jenkins/plugins/coverage/model/CodeDeltaCalculator.java
#	plugin/src/test/java/io/jenkins/plugins/coverage/model/CodeDeltaCalculatorTest.java
@uhafner uhafner merged commit b204ecc into jenkinsci:master Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants