[ 
https://issues.apache.org/jira/browse/KAFKA-13922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799084#comment-17799084
 ] 

Andras Katona edited comment on KAFKA-13922 at 12/20/23 4:15 PM:
-----------------------------------------------------------------

Okay, I was trying to configure the jacoco-report-aggregation for the project, 
because we're removing the rootreport part from the build.gradle, that's not 
working any more. But failed to include that aggregation plugin in the 
timeframe I allocated myself to try. It's not adding much, sonar and jenkins 
are able to fetch the coverage reports from the build dirs (they would not use 
the aggregated one anyway), so I convinced myself that it's fine to stop trying 
:).

I'm doing a last round of tests with my adjustments (see the above mentioned 
[PR|https://github.com/apache/kafka/pull/11982/files])


was (Author: akatona):
Okay, I was trying to configure the jacoco-report-aggregation for the project, 
because we're removing the rootreport part from the build.gradle, that's not 
working any more. But failed to include that aggregation plugin in the 
timeframe I allocated myself to try. It's not adding much, sonar and jenkins 
are able to fetch the coverage reports from the build dirs (they would not use 
the aggregated one anyway), so I convinced myself that it's fine to stop trying 
:).

I'm doing a last round of tests with my adjustments (see the above mentioned 
[PR}https://github.com/apache/kafka/pull/11982/files])

> Unable to generate coverage reports for the whole project
> ---------------------------------------------------------
>
>                 Key: KAFKA-13922
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13922
>             Project: Kafka
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 2.5.0
>            Reporter: Patrik Nagy
>            Assignee: Andras Katona
>            Priority: Minor
>              Labels: cloudera
>
> It is documented in the project that if we need code coverage reports for the 
> whole project, we need to run something like this where we enabled the test 
> coverage flag and run the reportCoverage task:
> {code:java}
> ./gradlew reportCoverage -PenableTestCoverage=true -Dorg.gradle.parallel=false
> {code}
> If I run it, the build will fail in the end because of jacocoRootReport:
> {code:java}
> 14:34:41 > Task :jacocoRootReport FAILED
> 14:34:41 
> 14:34:41 FAILURE: Build failed with an exception.
> 14:34:41 
> 14:34:41 * What went wrong:
> 14:34:41 Some problems were found with the configuration of task 
> ':jacocoRootReport' (type 'JacocoReport').
> 14:34:41   - Type 'org.gradle.testing.jacoco.tasks.JacocoReport' property 
> 'jacocoClasspath' doesn't have a configured value.
> 14:34:41     
> 14:34:41     Reason: This property isn't marked as optional and no value has 
> been configured.
> 14:34:41     
> 14:34:41     Possible solutions:
> 14:34:41       1. Assign a value to 'jacocoClasspath'.
> 14:34:41       2. Mark property 'jacocoClasspath' as optional.
> 14:34:41     
> 14:34:41     Please refer to 
> https://docs.gradle.org/7.3.3/userguide/validation_problems.html#value_not_set
>  for more details about this problem.
> 14:34:41   - Type 'org.gradle.testing.jacoco.tasks.JacocoReport' property 
> 'reports.enabledReports.html.outputLocation' doesn't have a configured value.
> 14:34:41     
> 14:34:41     Reason: This property isn't marked as optional and no value has 
> been configured.
> 14:34:41     
> 14:34:41     Possible solutions:
> 14:34:41       1. Assign a value to 
> 'reports.enabledReports.html.outputLocation'.
> 14:34:41       2. Mark property 'reports.enabledReports.html.outputLocation' 
> as optional.
> 14:34:41     
> 14:34:41     Please refer to 
> https://docs.gradle.org/7.3.3/userguide/validation_problems.html#value_not_set
>  for more details about this problem.
> 14:34:41   - Type 'org.gradle.testing.jacoco.tasks.JacocoReport' property 
> 'reports.enabledReports.xml.outputLocation' doesn't have a configured value.
> 14:34:41     
> 14:34:41     Reason: This property isn't marked as optional and no value has 
> been configured.
> 14:34:41     
> 14:34:41     Possible solutions:
> 14:34:41       1. Assign a value to 
> 'reports.enabledReports.xml.outputLocation'.
> 14:34:41       2. Mark property 'reports.enabledReports.xml.outputLocation' 
> as optional. {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to