Gridle jacoco test taking almost 24 minutes to run

We have an issue with jacocoTestReport which is taking too long but it doesn’t fail. Total build time is 30 minutes out of which 24 minutes is taken by jacocoTestReport.

we are using below command to execute the test.

 blade gw test jacocoTestReport --parallel --build-cache --no-daemon --info --warning-mode all --scan

we are using Gradle 7.6.3 version.

We are seeing thousands and thousands of events with skipping task (not sure why?)

> Task :modules:xx:xxx:xxx NO-SOURCE
Skipping task ':modules:xxx:xxxx:xxxx' as it has no source files and no previous output files.
Resolve mutations for :modules:xxxx:xxxx:wrap xxxx (Thread[Execution worker Thread 5,5,main]) started.
:modules:placement:placement-api:wrapSoyAlloyTemplate (Thread[Execution worker Thread 5,5,main]) started.

> Configure project :modules:xxxxx
file or directory '/xx/xx/x/x/x/x/xx/xx/xx/xx/main/resources', not found
Set :modules:xx:xx:compileClasspath configuration attribute org.gradle.libraryelements to jar
Evaluating project ':modules:xxxx:xxx' using build file '/xx/xx/xx/xx/xx/xx/xx/xx/xx/build.gradle'.
file or directory '/xx/xx/xx/agent/build/xx/modules/xx/xx/src/xx/java', not found
file or directory '/xx/xx/xx/xx/build/xx/modules/xx/xx/xx/xx/resources/META-INF/resources', not found

It’s hard to guess what your build is looking like. If you have dozens and dozens of tasks that do not have work to do, then that is how you configured your build. :man_shrugging:

If you want to investigate the performance issue, you might want to use the gradle-profiler.