From 16bf8d4af3a0b57f33db1043338c8aef3a19fb73 Mon Sep 17 00:00:00 2001 From: Exoridus Date: Tue, 22 Sep 2026 17:04:09 +0200 Subject: [PATCH] ci(codecov): carry forward coverage on skipped-test pushes Coverage only runs when the pushed diff needs the test lanes; a narrowed push (docs, release metadata, chore) skips the whole test job and uploads nothing, leaving that commit - and the badge, when it lands on the default branch - without a report. Carrying forward the unit and webgl flags reuses each one's last real upload instead. --- codecov.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..a46772040 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,24 @@ +coverage: + status: + project: + default: + target: auto + threshold: 1% + patch: + default: + target: auto + +# Coverage runs only on pushes to main/next, and only when the pushed diff +# actually needs the test lanes (scripts/ci/lanes.ts). A push that narrows to +# e.g. docs or release metadata skips the whole test job and uploads nothing, +# which otherwise leaves that commit - and the repo-level badge, when it lands +# on the default branch - with no report at all. Carryforward reuses each +# flag's last real upload for those commits instead of showing no coverage. +flag_management: + default_rules: + carryforward: false + individual_flags: + - name: unit + carryforward: true + - name: webgl + carryforward: true