Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR coverage requirement and default settings #3931

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

dreamer-89
Copy link
Member

@dreamer-89 dreamer-89 commented Jul 18, 2022

Signed-off-by: Suraj Singh surajrider@gmail.com

Description

Add PR code coverage requirement and default settings. Used 70% coverage based on existing coverage which is just above 70%.

As an improvement, project specific status checks can be added. For e.g. server/ which contains the core logic should have strict rules and separate status checks.

Issues Resolved

#1324

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Suraj Singh <surajrider@gmail.com>
@dreamer-89 dreamer-89 requested review from a team and reta as code owners July 18, 2022 03:06
@dreamer-89 dreamer-89 marked this pull request as draft July 18, 2022 03:06
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@saratvemulapalli saratvemulapalli added the CI CI related label Jul 18, 2022
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@dreamer-89
Copy link
Member Author

#3872

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testShardAlreadyReplicating" -Dtests.seed=DCD1F75DFB2E276A -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=sk-SK -Dtests.timezone=Australia/Melbourne -Druntime.java=17

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #3931 (a16fd10) into main (e724b2e) will increase coverage by 0.14%.
The diff coverage is 50.98%.

@@             Coverage Diff              @@
##               main    #3931      +/-   ##
============================================
+ Coverage     70.46%   70.60%   +0.14%     
- Complexity    56600    56691      +91     
============================================
  Files          4557     4563       +6     
  Lines        272737   272755      +18     
  Branches      40040    40040              
============================================
+ Hits         192188   192584     +396     
+ Misses        64324    63912     -412     
- Partials      16225    16259      +34     
Impacted Files Coverage Δ
...n/cluster/health/TransportClusterHealthAction.java 48.31% <ø> (+0.56%) ⬆️
...g/opensearch/cluster/ClusterStateTaskListener.java 100.00% <ø> (ø)
.../opensearch/cluster/MasterNodeChangePredicate.java 0.00% <0.00%> (ø)
...ava/org/opensearch/cluster/NotMasterException.java 0.00% <0.00%> (ø)
...rch/cluster/coordination/NoMasterBlockService.java 0.00% <0.00%> (ø)
...ter/coordination/UnsafeBootstrapMasterCommand.java 0.00% <0.00%> (ø)
...rg/opensearch/common/settings/ClusterSettings.java 91.89% <ø> (ø)
...rch/common/settings/ConsistentSettingsService.java 67.85% <ø> (ø)
.../opensearch/common/util/concurrent/BaseFuture.java 62.71% <0.00%> (ø)
...java/org/opensearch/discovery/DiscoveryModule.java 90.27% <ø> (ø)
... and 493 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e96a87...a16fd10. Read the comment docs.

@dreamer-89 dreamer-89 marked this pull request as ready for review July 18, 2022 20:54
@dblock dblock merged commit 1020852 into opensearch-project:main Jul 18, 2022
@dblock dblock added the backport 2.x Backport to 2.x branch label Jul 18, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 18, 2022
Signed-off-by: Suraj Singh <surajrider@gmail.com>
(cherry picked from commit 1020852)
dreamer-89 added a commit that referenced this pull request Jul 19, 2022
Signed-off-by: Suraj Singh <surajrider@gmail.com>
(cherry picked from commit 1020852)

Co-authored-by: Suraj Singh <surajrider@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch CI CI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants