Skip to content

Commit 139f4e5

Browse files
authored
enhance: [codecov]split code coverage into components (milvus-io#37137)
Signed-off-by: Yellow Shine <[email protected]>
1 parent 44ddcb5 commit 139f4e5

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

.github/workflows/main.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ jobs:
221221
name: Integration Test
222222
needs: Build
223223
runs-on: ubuntu-latest
224-
timeout-minutes: 90
224+
timeout-minutes: 120
225225
steps:
226226
- name: Maximize build space
227227
uses: easimon/maximize-build-space@master
@@ -299,6 +299,7 @@ jobs:
299299
name: ubuntu-20.04-unittests
300300
fail_ci_if_error: true
301301
disable_safe_directory: true
302+
verbose: true
302303
- name: Retry Upload coverage to Codecov
303304
if: ${{ failure() && github.repository == 'milvus-io/milvus' }}
304305
uses: codecov/codecov-action@v4
@@ -309,3 +310,4 @@ jobs:
309310
name: ubuntu-20.04-unittests
310311
fail_ci_if_error: true
311312
disable_safe_directory: true
313+
verbose: true

ci/jenkins/UT-CPP.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@Library('jenkins-shared-library@v0.62.0') _
1+
@Library('jenkins-shared-library@v0.63.0') _
22

33
def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
44
def milvus_helm_chart_version = '4.2.8'
@@ -40,7 +40,7 @@ pipeline {
4040
pullRequestNumber: "$env.CHANGE_ID",
4141
make_cmd: "make clean && make USE_ASAN=ON build-cpp-with-coverage",
4242
test_entrypoint: "./scripts/run_cpp_codecov.sh",
43-
codecov_files: "./lcov_output.info,./it_coverage.txt"
43+
codecov_files: "./lcov_output.info"
4444
}
4545
}
4646
}

codecov.yml

+30-1
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,38 @@ coverage:
2323
if_ci_failed: error #success, failure, error, ignore
2424

2525
comment:
26-
layout: "reach, diff, flags, files"
26+
layout: "reach, diff, flags, components, files"
2727
behavior: default
2828
require_changes: false
2929
branches: # branch names that can post comment
3030
- master
31+
32+
component_management:
33+
default_rules: # default rules that will be inherited by all components
34+
statuses:
35+
- type: project # in this case every component that doens't have a status defined will have a project type one
36+
target: auto
37+
branches:
38+
- "!main"
39+
40+
individual_components:
41+
- component_id: client
42+
name: Client
43+
paths:
44+
- client/**
45+
46+
- component_id: core
47+
name: Core
48+
paths:
49+
- internal/core/**
50+
51+
52+
- component_id: go
53+
name: Go
54+
paths:
55+
- pkg/**
56+
- internal/**
57+
- "!internal/core/**" # Exclude core component
3158

3259
ignore:
3360
- "LICENSES"
@@ -42,3 +69,5 @@ ignore:
4269

4370

4471

72+
73+

0 commit comments

Comments
 (0)