Skip to content

Commit

Permalink
Add code coverage exclusions on false positives (#3196)
Browse files Browse the repository at this point in the history
Adding code coverage exclusions on files that are creating code coverage
measurement issues.

Signed-off-by: Peter Nied <[email protected]>
(cherry picked from commit 07406d6)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Aug 22, 2023
1 parent 1bb6df5 commit a3f80aa
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
coverage:
status:
project:
# Exclusions to prevent false positives triggered
# Tracking with https://github.com/opensearch-project/security/issues/3137
default: false
plugin:
paths:
- "!src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/SelfRefreshingKeySet.java"
- "!src/main/java/com/amazon/dlic/auth/ldap2/LDAPConnectionFactoryFactory.java"
- "!src/main/java/org/opensearch/security/transport/SecurityInterceptor.java"
- "!src/main/java/org/opensearch/security/auditlog/AuditLogSslExceptionHandler.java"
- "!src/main/java/org/opensearch/security/configuration/StaticResourceException.java"
- "!src/main/java/org/opensearch/security/dlic/rest/api/AuditApiAction.java"
- "!src/main/java/org/opensearch/security/ssl/transport/SecuritySSLNettyTransport.java"
- "!src/main/java/org/opensearch/security/ssl/util/SSLConnectionTestUtil.java"
- "src/main"
target: auto
threshold: 0%
inconsistent-coverage-files:
paths:
- "src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/SelfRefreshingKeySet.java"
- "src/main/java/com/amazon/dlic/auth/ldap2/LDAPConnectionFactoryFactory.java"
- "src/main/java/org/opensearch/security/transport/SecurityInterceptor.java"
- "src/main/java/org/opensearch/security/auditlog/AuditLogSslExceptionHandler.java"
- "src/main/java/org/opensearch/security/configuration/StaticResourceException.java"
- "src/main/java/org/opensearch/security/dlic/rest/api/AuditApiAction.java"
- "src/main/java/org/opensearch/security/ssl/transport/SecuritySSLNettyTransport.java"
- "src/main/java/org/opensearch/security/ssl/util/SSLConnectionTestUtil.java"
target: auto
threshold: 50%
tests:
paths:
- "src/integrationTest"
- "src/test"
target: 100%

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: true

0 comments on commit a3f80aa

Please sign in to comment.