[Tool] Cov split BE/FE by flags (#29855)

Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
This commit is contained in:
andyziye 2023-08-24 13:52:54 +08:00 committed by GitHub
parent ac413123f3
commit 98df82dc5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View File

@ -751,8 +751,8 @@ jobs:
- name: Clean ECS
if: steps.backup.outcome == 'success'
env:
SQL_TESTER_RESULT: ${{ needs.SQL-Tester.outcome }}
ADMIT_RESULT: ${{ needs.admit.outcome }}
SQL_TESTER_RESULT: ${{ needs.SQL-Tester.result }}
ADMIT_RESULT: ${{ needs.admit.result }}
run: |
cd ci-tool && source lib/init.sh
if [[ "${SQL_TESTER_RESULT}" == 'success' && "${ADMIT_RESULT}" == 'success' ]]; then

View File

@ -202,6 +202,7 @@ jobs:
files: ${{ github.workspace }}/coverage.xml
dry_run: false
name: fe-total
flags: fe-total
fail_ci_if_error: false
verbose: true
override_pr: ${{ needs.INFO.outputs.PR_NUMBER }}
@ -298,11 +299,13 @@ jobs:
# total coverage
- name: Coverage Report
uses: codecov/codecov-action@v3
if: steps.publish_report.outcome == 'success'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ github.workspace }}/be/be_ut_coverage.xml
dry_run: false
name: be-total
flags: be-total
fail_ci_if_error: false
verbose: true
override_pr: ${{ needs.INFO.outputs.PR_NUMBER }}

View File

@ -7,12 +7,24 @@ github_checks:
coverage:
status:
project:
default: off
fe-total:
target: 60%
threshold: 5%
only_pulls: true
flags:
- fe-total
be-total:
target: 60%
threshold: 5%
only_pulls: true
flags:
- be-total
patch: false
flags:
fe-total:
paths:
- fe/
be-total:
paths:
- be/