You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Ashish Singh <as...@cloudera.com> on 2015/01/25 21:43:18 UTC

Review Request 30259: Add static code coverage reporting capability

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30259/
-----------------------------------------------------------

Review request for kafka.


Bugs: KAFKA-1722
    https://issues.apache.org/jira/browse/KAFKA-1722


Repository: kafka


Description
-------

KAFKA-1722: Add static code coverage capability


Diffs
-----

  build.gradle 1cbab29ce83e20dae0561b51eed6fdb86d522f28 
  core/src/main/scala/kafka/utils/ZkUtils.scala c14bd455b6642f5e6eb254670bef9f57ae41d6cb 

Diff: https://reviews.apache.org/r/30259/diff/


Testing
-------


Thanks,

Ashish Singh


Re: Review Request 30259: Add static code coverage reporting capability

Posted by Ashish Singh <as...@cloudera.com>.

> On Jan. 27, 2015, 1:39 a.m., Eric Olander wrote:
> > core/src/main/scala/kafka/utils/ZkUtils.scala, line 17
> > <https://reviews.apache.org/r/30259/diff/1/?file=833669#file833669line17>
> >
> >     Are there any open issues against scoverage that would explain why it can't instrument this class?  If not, it might be worth contacting that project to see if they have any ideas why it blows up on this class.  Probably would be good to add a TODO explaining that once scoverage can process this class the $COVERAGE-OFF$ should be removed.

I actually planned to put the todo and completely forgot about it. Thanks for pointing this out.

I contacted gradle-scoverage guy to get insight into why is this not working, but suggestion was to skip this for now. However, I have not created an issue on the project. I will create an issue and put that in the TODO as well.


- Ashish


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30259/#review69727
-----------------------------------------------------------


On Jan. 25, 2015, 8:47 p.m., Ashish Singh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30259/
> -----------------------------------------------------------
> 
> (Updated Jan. 25, 2015, 8:47 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-1722
>     https://issues.apache.org/jira/browse/KAFKA-1722
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> KAFKA-1722: Add static code coverage capability
> 
> 
> Diffs
> -----
> 
>   build.gradle 1cbab29ce83e20dae0561b51eed6fdb86d522f28 
>   core/src/main/scala/kafka/utils/ZkUtils.scala c14bd455b6642f5e6eb254670bef9f57ae41d6cb 
> 
> Diff: https://reviews.apache.org/r/30259/diff/
> 
> 
> Testing
> -------
> 
> How to run: ./gradlew sonarRunner -PscalaVersion=2.11
> 
> Note that if you do not have sonarqube running on your system. The sonarRunner task will fail, but it would have generated coverage reports for core and clients at core/build/reports/scoverage/ and clients/build/reports/jacocoHtml respectively. Open index.html in any of those dirs to see the coverage.
> 
> Once gradle-scoverage starts publishing scoverage report, a single report generated from sonar will be available.
> 
> 
> Thanks,
> 
> Ashish Singh
> 
>


Re: Review Request 30259: Patch for KAFKA-1722

Posted by Ashish Singh <as...@cloudera.com>.

> On Jan. 27, 2015, 1:39 a.m., Eric Olander wrote:
> > This is a nice improvement to the project.  Thanks!

Thanks for the review. Addressed your concern.


- Ashish


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30259/#review69727
-----------------------------------------------------------


On Jan. 29, 2015, 8:33 p.m., Ashish Singh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30259/
> -----------------------------------------------------------
> 
> (Updated Jan. 29, 2015, 8:33 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-1722
>     https://issues.apache.org/jira/browse/KAFKA-1722
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> KAFKA-1722: Add static code coverage capability
> 
> 
> Diffs
> -----
> 
>   build.gradle a980f61def59ae59dbd5e58050285a801b21674f 
>   core/src/main/scala/kafka/utils/ZkUtils.scala c14bd455b6642f5e6eb254670bef9f57ae41d6cb 
> 
> Diff: https://reviews.apache.org/r/30259/diff/
> 
> 
> Testing
> -------
> 
> How to run: ./gradlew sonarRunner -PscalaVersion=2.11
> 
> Note that if you do not have sonarqube running on your system. The sonarRunner task will fail, but it would have generated coverage reports for core and clients at core/build/reports/scoverage/ and clients/build/reports/jacocoHtml respectively. Open index.html in any of those dirs to see the coverage.
> 
> Once gradle-scoverage starts publishing scoverage report, a single report generated from sonar will be available.
> 
> 
> Thanks,
> 
> Ashish Singh
> 
>


Re: Review Request 30259: Add static code coverage reporting capability

Posted by Eric Olander <ol...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30259/#review69727
-----------------------------------------------------------


This is a nice improvement to the project.  Thanks!


core/src/main/scala/kafka/utils/ZkUtils.scala
<https://reviews.apache.org/r/30259/#comment114480>

    Are there any open issues against scoverage that would explain why it can't instrument this class?  If not, it might be worth contacting that project to see if they have any ideas why it blows up on this class.  Probably would be good to add a TODO explaining that once scoverage can process this class the $COVERAGE-OFF$ should be removed.


- Eric Olander


On Jan. 25, 2015, 8:47 p.m., Ashish Singh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30259/
> -----------------------------------------------------------
> 
> (Updated Jan. 25, 2015, 8:47 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-1722
>     https://issues.apache.org/jira/browse/KAFKA-1722
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> KAFKA-1722: Add static code coverage capability
> 
> 
> Diffs
> -----
> 
>   build.gradle 1cbab29ce83e20dae0561b51eed6fdb86d522f28 
>   core/src/main/scala/kafka/utils/ZkUtils.scala c14bd455b6642f5e6eb254670bef9f57ae41d6cb 
> 
> Diff: https://reviews.apache.org/r/30259/diff/
> 
> 
> Testing
> -------
> 
> How to run: ./gradlew sonarRunner -PscalaVersion=2.11
> 
> Note that if you do not have sonarqube running on your system. The sonarRunner task will fail, but it would have generated coverage reports for core and clients at core/build/reports/scoverage/ and clients/build/reports/jacocoHtml respectively. Open index.html in any of those dirs to see the coverage.
> 
> Once gradle-scoverage starts publishing scoverage report, a single report generated from sonar will be available.
> 
> 
> Thanks,
> 
> Ashish Singh
> 
>


Re: Review Request 30259: Patch for KAFKA-1722

Posted by Ashish Singh <as...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30259/
-----------------------------------------------------------

(Updated Jan. 29, 2015, 8:33 p.m.)


Review request for kafka.


Summary (updated)
-----------------

Patch for KAFKA-1722


Bugs: KAFKA-1722
    https://issues.apache.org/jira/browse/KAFKA-1722


Repository: kafka


Description
-------

KAFKA-1722: Add static code coverage capability


Diffs (updated)
-----

  build.gradle a980f61def59ae59dbd5e58050285a801b21674f 
  core/src/main/scala/kafka/utils/ZkUtils.scala c14bd455b6642f5e6eb254670bef9f57ae41d6cb 

Diff: https://reviews.apache.org/r/30259/diff/


Testing
-------

How to run: ./gradlew sonarRunner -PscalaVersion=2.11

Note that if you do not have sonarqube running on your system. The sonarRunner task will fail, but it would have generated coverage reports for core and clients at core/build/reports/scoverage/ and clients/build/reports/jacocoHtml respectively. Open index.html in any of those dirs to see the coverage.

Once gradle-scoverage starts publishing scoverage report, a single report generated from sonar will be available.


Thanks,

Ashish Singh


Re: Review Request 30259: Add static code coverage reporting capability

Posted by Ashish Singh <as...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30259/
-----------------------------------------------------------

(Updated Jan. 25, 2015, 8:47 p.m.)


Review request for kafka.


Changes
-------

Add some notes.


Bugs: KAFKA-1722
    https://issues.apache.org/jira/browse/KAFKA-1722


Repository: kafka


Description
-------

KAFKA-1722: Add static code coverage capability


Diffs
-----

  build.gradle 1cbab29ce83e20dae0561b51eed6fdb86d522f28 
  core/src/main/scala/kafka/utils/ZkUtils.scala c14bd455b6642f5e6eb254670bef9f57ae41d6cb 

Diff: https://reviews.apache.org/r/30259/diff/


Testing (updated)
-------

How to run: ./gradlew sonarRunner -PscalaVersion=2.11

Note that if you do not have sonarqube running on your system. The sonarRunner task will fail, but it would have generated coverage reports for core and clients at core/build/reports/scoverage/ and clients/build/reports/jacocoHtml respectively. Open index.html in any of those dirs to see the coverage.

Once gradle-scoverage starts publishing scoverage report, a single report generated from sonar will be available.


Thanks,

Ashish Singh