mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
enhance: [codecov]split code coverage into components (#37137)
Signed-off-by: Yellow Shine <sammy.huang@zilliz.com>
This commit is contained in:
parent
44ddcb5a63
commit
139f4e5ab5
4
.github/workflows/main.yaml
vendored
4
.github/workflows/main.yaml
vendored
@ -221,7 +221,7 @@ jobs:
|
|||||||
name: Integration Test
|
name: Integration Test
|
||||||
needs: Build
|
needs: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 90
|
timeout-minutes: 120
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
uses: easimon/maximize-build-space@master
|
uses: easimon/maximize-build-space@master
|
||||||
@ -299,6 +299,7 @@ jobs:
|
|||||||
name: ubuntu-20.04-unittests
|
name: ubuntu-20.04-unittests
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
disable_safe_directory: true
|
disable_safe_directory: true
|
||||||
|
verbose: true
|
||||||
- name: Retry Upload coverage to Codecov
|
- name: Retry Upload coverage to Codecov
|
||||||
if: ${{ failure() && github.repository == 'milvus-io/milvus' }}
|
if: ${{ failure() && github.repository == 'milvus-io/milvus' }}
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
@ -309,3 +310,4 @@ jobs:
|
|||||||
name: ubuntu-20.04-unittests
|
name: ubuntu-20.04-unittests
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
disable_safe_directory: true
|
disable_safe_directory: true
|
||||||
|
verbose: true
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
@Library('jenkins-shared-library@v0.62.0') _
|
@Library('jenkins-shared-library@v0.63.0') _
|
||||||
|
|
||||||
def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
|
def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
|
||||||
def milvus_helm_chart_version = '4.2.8'
|
def milvus_helm_chart_version = '4.2.8'
|
||||||
@ -40,7 +40,7 @@ pipeline {
|
|||||||
pullRequestNumber: "$env.CHANGE_ID",
|
pullRequestNumber: "$env.CHANGE_ID",
|
||||||
make_cmd: "make clean && make USE_ASAN=ON build-cpp-with-coverage",
|
make_cmd: "make clean && make USE_ASAN=ON build-cpp-with-coverage",
|
||||||
test_entrypoint: "./scripts/run_cpp_codecov.sh",
|
test_entrypoint: "./scripts/run_cpp_codecov.sh",
|
||||||
codecov_files: "./lcov_output.info,./it_coverage.txt"
|
codecov_files: "./lcov_output.info"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
31
codecov.yml
31
codecov.yml
@ -23,12 +23,39 @@ coverage:
|
|||||||
if_ci_failed: error #success, failure, error, ignore
|
if_ci_failed: error #success, failure, error, ignore
|
||||||
|
|
||||||
comment:
|
comment:
|
||||||
layout: "reach, diff, flags, files"
|
layout: "reach, diff, flags, components, files"
|
||||||
behavior: default
|
behavior: default
|
||||||
require_changes: false
|
require_changes: false
|
||||||
branches: # branch names that can post comment
|
branches: # branch names that can post comment
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
component_management:
|
||||||
|
default_rules: # default rules that will be inherited by all components
|
||||||
|
statuses:
|
||||||
|
- type: project # in this case every component that doens't have a status defined will have a project type one
|
||||||
|
target: auto
|
||||||
|
branches:
|
||||||
|
- "!main"
|
||||||
|
|
||||||
|
individual_components:
|
||||||
|
- component_id: client
|
||||||
|
name: Client
|
||||||
|
paths:
|
||||||
|
- client/**
|
||||||
|
|
||||||
|
- component_id: core
|
||||||
|
name: Core
|
||||||
|
paths:
|
||||||
|
- internal/core/**
|
||||||
|
|
||||||
|
|
||||||
|
- component_id: go
|
||||||
|
name: Go
|
||||||
|
paths:
|
||||||
|
- pkg/**
|
||||||
|
- internal/**
|
||||||
|
- "!internal/core/**" # Exclude core component
|
||||||
|
|
||||||
ignore:
|
ignore:
|
||||||
- "LICENSES"
|
- "LICENSES"
|
||||||
- ".git"
|
- ".git"
|
||||||
@ -42,3 +69,5 @@ ignore:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user