Skip to content

Commit 98df82d

Browse files
authored
[Tool] Cov split BE/FE by flags (StarRocks#29855)
Signed-off-by: AndyZiYe <[email protected]>
1 parent ac41312 commit 98df82d

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/ci-pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,8 @@ jobs:
751751
- name: Clean ECS
752752
if: steps.backup.outcome == 'success'
753753
env:
754-
SQL_TESTER_RESULT: ${{ needs.SQL-Tester.outcome }}
755-
ADMIT_RESULT: ${{ needs.admit.outcome }}
754+
SQL_TESTER_RESULT: ${{ needs.SQL-Tester.result }}
755+
ADMIT_RESULT: ${{ needs.admit.result }}
756756
run: |
757757
cd ci-tool && source lib/init.sh
758758
if [[ "${SQL_TESTER_RESULT}" == 'success' && "${ADMIT_RESULT}" == 'success' ]]; then

.github/workflows/ci-report.yml

+3
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ jobs:
202202
files: ${{ github.workspace }}/coverage.xml
203203
dry_run: false
204204
name: fe-total
205+
flags: fe-total
205206
fail_ci_if_error: false
206207
verbose: true
207208
override_pr: ${{ needs.INFO.outputs.PR_NUMBER }}
@@ -298,11 +299,13 @@ jobs:
298299
# total coverage
299300
- name: Coverage Report
300301
uses: codecov/codecov-action@v3
302+
if: steps.publish_report.outcome == 'success'
301303
with:
302304
token: ${{ secrets.CODECOV_TOKEN }}
303305
files: ${{ github.workspace }}/be/be_ut_coverage.xml
304306
dry_run: false
305307
name: be-total
308+
flags: be-total
306309
fail_ci_if_error: false
307310
verbose: true
308311
override_pr: ${{ needs.INFO.outputs.PR_NUMBER }}

codecov.yml

+12
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,24 @@ github_checks:
77
coverage:
88
status:
99
project:
10+
default: off
1011
fe-total:
1112
target: 60%
1213
threshold: 5%
1314
only_pulls: true
15+
flags:
16+
- fe-total
1417
be-total:
1518
target: 60%
1619
threshold: 5%
1720
only_pulls: true
21+
flags:
22+
- be-total
1823
patch: false
24+
flags:
25+
fe-total:
26+
paths:
27+
- fe/
28+
be-total:
29+
paths:
30+
- be/

0 commit comments

Comments
 (0)