Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Fix: Report aggregation for jacoco #826

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

biswassri
Copy link
Contributor

No description provided.

@biswassri biswassri marked this pull request as draft October 13, 2022 20:58
@github-actions github-actions bot added operator changes related to operator sync changes related to sync labels Oct 13, 2022
@biswassri biswassri marked this pull request as ready for review October 14, 2022 18:12
@github-actions github-actions bot removed operator changes related to operator sync changes related to sync labels Oct 14, 2022
pom.xml Outdated
Comment on lines 334 to 346
<execution>
<id>default-report</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
<configuration>
<includeCurrentProject>true</includeCurrentProject>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
Copy link
Contributor

Choose a reason for hiding this comment

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

The sonar.yml job is looking for the jacoco.xml files in target/site/jacoco and report-aggregate puts them in target/site/jacoco-aggregate. You should be able to add <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory> to override it to the expected location.

Also, just a nit - but this XML block can be indented.

Copy link
Contributor Author

@biswassri biswassri Oct 14, 2022

Choose a reason for hiding this comment

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

Oh yes! I missed that change in this commit. But @MikeEdgar one concern/question I have is that
Even with these changes, in the operator index.html we see api and common coverage but not operator coverage. Same for sync. I think we are missing something here. What do you think?

I experimented with report and report-aggregate but had no luck.

Copy link
Contributor

Choose a reason for hiding this comment

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

Something is definitely still not right... I'm checking now too.

@github-actions github-actions bot added the api changes related to api label Oct 14, 2022
@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@MikeEdgar
Copy link
Contributor

FYI, version 0.8.9 of the JaCoCo plugin was released.

@biswassri
Copy link
Contributor Author

FYI, version 0.8.9 of the JaCoCo plugin was released.

But Mike, the version hasn't been released to the maven repo can we still use the 0.8.9 in our pom ?

@MikeEdgar
Copy link
Contributor

@biswassri , that repo is a not current. See Maven Central. It was only just tagged a few days ago.

@biswassri
Copy link
Contributor Author

@biswassri , that repo is a not current. See Maven Central. It was only just tagged a few days ago.

Oh okay! Thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api changes related to api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants