github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/.codecov.yml (about) 1 codecov: 2 notify: 3 require_ci_to_pass: yes 4 5 coverage: 6 precision: 4 7 round: down 8 9 status: 10 project: 11 default: 12 threshold: 3 #Allow the coverage to drop by threshold%, and posting a success status. 13 patch: 14 default: 15 target: 0% 16 changes: no 17 18 parsers: 19 gcov: 20 branch_detection: 21 conditional: yes 22 loop: yes 23 method: no 24 macro: no 25 26 comment: 27 layout: "header, components, flags, diff" 28 behavior: default 29 require_changes: no 30 31 ignore: 32 - "LICENSES" 33 - "*_test.go" 34 - "*.pb.go" 35 - ".git" 36 - "*.yaml" 37 - "*.toml" 38 - "*.md" 39 - "docs/.*" 40 - "testing_utils/.*" 41 - "mock/.*" 42 - "*_mock.go" 43 44 component_management: 45 default_rules: # default rules that will be inherited by all components 46 statuses: 47 - type: project # in this case every component that doens't have a status defined will have a project type one 48 target: auto 49 informational: true # resulting status will pass no matter what the coverage is or what other settings are specified. 50 individual_components: 51 - component_id: component_cdc # this is an identifier that should not be changed 52 name: cdc # this is a display name, and can be changed freely 53 paths: 54 - cdc/** 55 - cmd/** 56 - pkg/** 57 - component_id: component_dm 58 name: dm 59 paths: 60 - dm/** 61 - component_id: component_engine 62 name: engine 63 paths: 64 - engine/** 65 # more components. 66 67 flag_management: 68 default_rules: # the rules that will be followed for any flag added, generally 69 carryforward: true 70 statuses: 71 - type: project 72 target: 60% 73 informational: true # resulting status will pass no matter what the coverage is or what other settings are specified. 74 - type: patch 75 target: 60% 76 informational: true # resulting status will pass no matter what the coverage is or what other settings are specified. 77 78 individual_flags: # exceptions to the default rules above, stated flag by flag 79 - name: cdc #fill in your own flag name 80 paths: 81 - cdc/** #fill in your own path. Note, accepts globs, not regexes 82 - cmd/** 83 - pkg/** 84 carryforward: true 85 - name: dm 86 paths: 87 - dm/** 88 carryforward: true 89 - name: engine 90 paths: 91 - engine/** 92 carryforward: true