Skip to content

drop unsupported sonar per test coverage - #704

Merged
ryanjbaxter merged 2 commits into
spring-cloud:mainfrom
wind57:drop_unsupported_per_test_coverage
Oct 2, 2026
Merged

ryanjbaxter merged 2 commits into
spring-cloud:mainfrom
wind57:drop_unsupported_per_test_coverage

Conversation

@wind57

@wind57 wind57 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: wind57 <eugen.rabii@gmail.com>
@wind57 wind57 changed the title fix drop unsupported sonar per test coverage Oct 2, 2026
Comment thread pom.xml
<maven-deploy-plugin.version>3.2.0</maven-deploy-plugin.version>
<readme.main.classpath>${docs.classes.dir}</readme.main.classpath>
<readme.class.path>readme.class.path</readme.class.path>
<sonar-jacoco-listeners.version>5.14.0.18788</sonar-jacoco-listeners.version>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

in spring-cloud-kurbernetes we have this failure:

https://github.com/spring-cloud/spring-cloud-kubernetes/actions/runs/37047671159/job/110974269610?pr=2340

org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException There was an error in the forked process
  org/junit/runner/notification/RunListener
  java.lang.NoClassDefFoundError: org/junit/runner/notification/RunListener

this happens because we now use surefire 3.6.0 that does not ignore these listeners ( it used to in the previous version 3.5.6 ). This is a junit-4 listener and in spring-cloud-kubernetes we do not have junit-4 dependencies.

This listener offers per test coverage, which is unsupported by sonar anyway: https://community.sonarsource.com/t/no-information-about-coverage-by-test/2999

so we can drop it. This will require a new version to be published so that we can use it

@wind57

wind57 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@ryanjbaxter can you look at this one please and tell me what you think?

@wind57
wind57 marked this pull request as ready for review October 2, 2026 19:25
@spencergibb

Copy link
Copy Markdown
Member

I think I remember him working on that error somewhere else

@ryanjbaxter

Copy link
Copy Markdown
Contributor

@spencergibb No not this specific one.

I think this is fine since we don't use junit 4 anyways

Comment thread pom.xml
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we just drop the configuration here and not the entire plugin?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: wind57 <eugen.rabii@gmail.com>
@ryanjbaxter
ryanjbaxter merged commit fed900e into spring-cloud:main Oct 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants