Skip to content

Commit 69b1854

Browse files
authored
Adds threshold to code coverage changes for project (#4040)
* Fixes code coverage workflow failures for the project test due to inderect flakey changes Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * Adds changelog Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> --------- Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
1 parent 87e7951 commit 69b1854

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/.codecov.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# https://docs.codecov.com/docs/codecov-yaml
2+
codecov:
3+
require_ci_to_pass: yes
4+
25
coverage:
36
status:
47
project:
58
default:
6-
# https://docs.codecov.com/docs/commit-status#target
7-
target: auto # coverage must be equal or above the previous commit
9+
target: auto
10+
threshold: 2% # the leniency in hitting the target
11+

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
150150
- [CI] Reduce redundancy by using matrix strategy on Windows and Linux workflows ([#3514](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3514))
151151
- Add an achievement badger to the PR ([#3721](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3721))
152152
- Install chrome driver for functional tests from path set by environment variable `TEST_BROWSER_BINARY_PATH`([#3997](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3997))
153+
- Adds threshold to code coverage config to prevent workflow failures ([#4040](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4040))
153154

154155
### 📝 Documentation
155156

0 commit comments

Comments
 (0)