From b531dcbeead250092d160bffccafa548b2c1eb3c Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Tue, 3 Nov 2026 02:48:18 +0000 Subject: [PATCH] ci(codecov): report project coverage per flag (#45366) --- codecov.yml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/codecov.yml b/codecov.yml index f5fa6f6bd72..ab465acdd7e 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,30 +1,32 @@ coverage: status: - project: - default: + # Report project coverage per flag (see flag_management) instead of one combined total, + # so a PR touching only one area is not judged by another area's carried-forward data. + project: off + +flag_management: + default_rules: + carryforward: true + statuses: + - type: project target: auto # Absorb sub-percent coverage noise (rounding, trivial added lines, CVA variants, etc). threshold: 1% # Deleting covered code during refactors/migrations must not regress base. removed_code_behavior: adjust_base + individual_flags: + - name: web + paths: + - "web/" -flags: - web: - paths: - - "web/" - carryforward: true + - name: dify-ui + paths: + - "packages/dify-ui/" - dify-ui: - paths: - - "packages/dify-ui/" - carryforward: true + - name: api + paths: + - "api/" - api: - paths: - - "api/" - carryforward: true - - cli: - paths: - - "cli/" - carryforward: true + - name: cli + paths: + - "cli/"