You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/09/12 10:46:31 UTC

[GitHub] [cloudstack] weizhouapache opened a new pull request, #6730: Jacoco: fix no coverage result in server and some other modules

weizhouapache opened a new pull request, #6730:
URL: https://github.com/apache/cloudstack/pull/6730

   According to https://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html
   we need to add "@{argLine}" to argLine if it exists in pom.xml
   
   ### Description
   
   This PR fixes missing jacoco coverage report in some modules
   
   <!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
   
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   <!-- Fixes: # -->
   
   <!--- ********************************************************************************* -->
   <!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
   <!--- PLEASE PUT AN 'X' in only **ONE** box -->
   <!--- ********************************************************************************* -->
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [ ] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [x] Major
   - [ ] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   
   
   ### How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to -->
   <!-- see how your change affects other areas of the code, etc. -->
   
   
   <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on pull request #6730: Jacoco: fix no coverage result in server and some other modules

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on PR #6730:
URL: https://github.com/apache/cloudstack/pull/6730#issuecomment-1243948052

   w00t @weizhouapache good find, and well done. I suspect, adding argLine on `server` alone would have addressed a lot of missed unit tests. @shwstppr I suppose we can merge this as this doesn't change the code essentially but how coverage is analysed and args used in the surefire plugin, but does that still require us to fix the powermock issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] codecov[bot] commented on pull request #6730: Jacoco: fix no coverage result in server and some other modules

Posted by GitBox <gi...@apache.org>.
codecov[bot] commented on PR #6730:
URL: https://github.com/apache/cloudstack/pull/6730#issuecomment-1243746190

   # [Codecov](https://codecov.io/gh/apache/cloudstack/pull/6730?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#6730](https://codecov.io/gh/apache/cloudstack/pull/6730?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (d6f875a) into [4.17](https://codecov.io/gh/apache/cloudstack/commit/d3bfdacffd1223dbc721f6f006cac26dbe9f98e3?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (d3bfdac) will **increase** coverage by `4.45%`.
   > The diff coverage is `n/a`.
   
   ```diff
   @@             Coverage Diff              @@
   ##               4.17    #6730      +/-   ##
   ============================================
   + Coverage      5.88%   10.34%   +4.45%     
   - Complexity     3927     6609    +2682     
   ============================================
     Files          2451     2451              
     Lines        242338   242338              
     Branches      37923    37923              
   ============================================
   + Hits          14261    25060   +10799     
   + Misses       226502   214192   -12310     
   - Partials       1575     3086    +1511     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cloudstack/pull/6730?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...ava/com/cloud/network/as/AutoScaleManagerImpl.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL25ldHdvcmsvYXMvQXV0b1NjYWxlTWFuYWdlckltcGwuamF2YQ==) | `0.12% <0.00%> (+0.12%)` | :arrow_up: |
   | [...a/com/cloud/network/router/CommandSetupHelper.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL25ldHdvcmsvcm91dGVyL0NvbW1hbmRTZXR1cEhlbHBlci5qYXZh) | `0.12% <0.00%> (+0.12%)` | :arrow_up: |
   | [server/src/main/java/com/cloud/api/ApiDBUtils.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL2FwaS9BcGlEQlV0aWxzLmphdmE=) | `0.17% <0.00%> (+0.17%)` | :arrow_up: |
   | [...twork/contrail/management/ContrailManagerImpl.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cGx1Z2lucy9uZXR3b3JrLWVsZW1lbnRzL2p1bmlwZXItY29udHJhaWwvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2Nsb3Vkc3RhY2svbmV0d29yay9jb250cmFpbC9tYW5hZ2VtZW50L0NvbnRyYWlsTWFuYWdlckltcGwuamF2YQ==) | `0.19% <0.00%> (+0.19%)` | :arrow_up: |
   | [...com/cloud/network/vpn/Site2SiteVpnManagerImpl.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL25ldHdvcmsvdnBuL1NpdGUyU2l0ZVZwbk1hbmFnZXJJbXBsLmphdmE=) | `0.21% <0.00%> (+0.21%)` | :arrow_up: |
   | [...java/com/cloud/network/rules/RulesManagerImpl.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL25ldHdvcmsvcnVsZXMvUnVsZXNNYW5hZ2VySW1wbC5qYXZh) | `0.23% <0.00%> (+0.23%)` | :arrow_up: |
   | [...oud/network/ExternalFirewallDeviceManagerImpl.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL25ldHdvcmsvRXh0ZXJuYWxGaXJld2FsbERldmljZU1hbmFnZXJJbXBsLmphdmE=) | `0.25% <0.00%> (+0.25%)` | :arrow_up: |
   | [.../src/main/java/com/cloud/configuration/Config.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL2NvbmZpZ3VyYXRpb24vQ29uZmlnLmphdmE=) | `89.26% <0.00%> (+0.26%)` | :arrow_up: |
   | [...com/cloud/network/NetworkMigrationManagerImpl.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL25ldHdvcmsvTmV0d29ya01pZ3JhdGlvbk1hbmFnZXJJbXBsLmphdmE=) | `0.28% <0.00%> (+0.28%)` | :arrow_up: |
   | [.../cloud/network/ExternalDeviceUsageManagerImpl.java](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL25ldHdvcmsvRXh0ZXJuYWxEZXZpY2VVc2FnZU1hbmFnZXJJbXBsLmphdmE=) | `0.30% <0.00%> (+0.30%)` | :arrow_up: |
   | ... and [449 more](https://codecov.io/gh/apache/cloudstack/pull/6730/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on pull request #6730: Jacoco: fix no coverage result in server and some other modules

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on PR #6730:
URL: https://github.com/apache/cloudstack/pull/6730#issuecomment-1243725204

   > @weizhouapache maybe worth checking local jacoco? I don't see any difference reported by sonarbot (not sure why codecov didn't kick in)
   
   @rohityadavcloud 
   I have added this change to my PR for vm autoscaling
   
   the following page shows coverage result of changes on java files in `server` module.
   https://sonarcloud.io/component_measures?id=apache_cloudstack&pullRequest=6571&metric=new_coverage&view=list
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on pull request #6730: Jacoco: fix no coverage result in server and some other modules

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on PR #6730:
URL: https://github.com/apache/cloudstack/pull/6730#issuecomment-1243652314

   @weizhouapache maybe worth checking local jacoco? I don't see any difference reported by sonarbot (not sure why codecov didn't kick in)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] sonarcloud[bot] commented on pull request #6730: Jacoco: fix no coverage result in server and some other modules

Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #6730:
URL: https://github.com/apache/cloudstack/pull/6730#issuecomment-1243615165

   Kudos, SonarCloud Quality Gate passed!&nbsp; &nbsp; [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=apache_cloudstack&pullRequest=6730)
   
   [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=BUG)  
   [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=VULNERABILITY)  
   [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_cloudstack&pullRequest=6730&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_cloudstack&pullRequest=6730&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_cloudstack&pullRequest=6730&resolved=false&types=SECURITY_HOTSPOT)  
   [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_cloudstack&pullRequest=6730&resolved=false&types=CODE_SMELL)
   
   [![No Coverage information](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/NoCoverageInfo-16px.png 'No Coverage information')](https://sonarcloud.io/component_measures?id=apache_cloudstack&pullRequest=6730&metric=coverage&view=list) No Coverage information  
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_cloudstack&pullRequest=6730&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_cloudstack&pullRequest=6730&metric=new_duplicated_lines_density&view=list)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud merged pull request #6730: Jacoco: fix no coverage result in server and some other modules

Posted by GitBox <gi...@apache.org>.
rohityadavcloud merged PR #6730:
URL: https://github.com/apache/cloudstack/pull/6730


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org