Skip to content

Commit f01f194

Browse files
authored
Merge pull request stacks-network#7009 from dhaney-stacks/develop
Updated codecov.yml file in multiple ways, to produce reliable PR comments and follow best practices for monorepos
2 parents f61c76b + 509e6d5 commit f01f194

File tree

3 files changed

+79
-54
lines changed

3 files changed

+79
-54
lines changed

.codecov.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# For more configuration details: https://docs.codecov.com/docs/codecovyml-reference
2+
# Check if this file is valid: curl -X POST --data-binary @.codecov.yml https://codecov.io/validate
3+
codecov:
4+
require_ci_to_pass: false
5+
notify:
6+
after_n_builds: 270 # this should be updated occasionally to stay within ~20 of total files uploaded
7+
wait_for_ci: true
8+
notify_error: true
9+
coverage:
10+
range: 60..79
11+
round: down
12+
precision: 2
13+
status:
14+
project:
15+
default: false
16+
clarity:
17+
target: auto
18+
threshold: 0%
19+
removed_code_behavior: adjust_base
20+
if_not_found: success
21+
if_ci_failed: success
22+
only_pulls: true
23+
paths:
24+
- clarity-types
25+
- clarity
26+
contrib:
27+
target: auto
28+
threshold: 0%
29+
removed_code_behavior: adjust_base
30+
if_not_found: success
31+
if_ci_failed: success
32+
only_pulls: true
33+
paths:
34+
- contrib
35+
core:
36+
target: auto
37+
threshold: 0%
38+
removed_code_behavior: adjust_base
39+
if_not_found: success
40+
if_ci_failed: success
41+
only_pulls: true
42+
paths:
43+
- libsigner
44+
- libstackerdb
45+
- pox-locking
46+
- stacks-common
47+
- stacks-node
48+
- stacks-signer
49+
- stackslib
50+
- stx-genesis
51+
patch:
52+
default:
53+
target: auto
54+
threshold: 0%
55+
if_ci_failed: success
56+
only_pulls: true
57+
paths:
58+
- clarity-types
59+
- clarity
60+
- contrib
61+
- libsigner
62+
- libstackerdb
63+
- pox-locking
64+
- stacks-common
65+
- stacks-node
66+
- stacks-signer
67+
- stackslib
68+
- stx-genesis
69+
changes: false
70+
comment:
71+
layout: "condensed_header, diff, files, footer"
72+
behavior: default
73+
hide_project_coverage: false
74+
require_changes: false
75+
require_base: true
76+
require_head: true
77+
github_checks:
78+
annotations: false

.github/workflows/ci.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -246,22 +246,4 @@ jobs:
246246
- changelog-check
247247
- create-cache
248248
- check-release
249-
uses: ./.github/workflows/epoch-tests.yml
250-
251-
## Trigger Codecov report manually once all tests are done
252-
## This is done in concert with codecov.yml having notify: manual_trigger: true set
253-
## See: https://docs.codecov.com/docs/notifications#preventing-notifications-until-youre-ready-to-send-notifications
254-
trigger-codecov-report:
255-
if: ${{ always() && !cancelled() }}
256-
name: Trigger Codecov Report
257-
runs-on: ubuntu-latest
258-
needs:
259-
- stacks-core-tests
260-
- bitcoin-tests
261-
- p2p-tests
262-
- epoch-tests
263-
steps:
264-
- name: Codecov Send Notifications
265-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
266-
with:
267-
run_command: "send-notifications"
249+
uses: ./.github/workflows/epoch-tests.yml

codecov.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)