From 3fc7abecd52a5b762f8b34ffaaa886c0d3c6a279 Mon Sep 17 00:00:00 2001 From: Sid Shukla Date: Mon, 15 Jan 2024 15:25:47 +0100 Subject: [PATCH] Update codecov.yml to omit generated code Everytime we add or modify a CRD, we will fail to meet generated code coverage. The onus of ensuring the correctness of generated code lies on the generator itself. We can, in future, think about generating tests for this code (trust but verify) but, for the time being, it's best to exclude this from metrics. --- .github/codecov.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/codecov.yml b/.github/codecov.yml index 721df6b11e..46393aff95 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -1,6 +1,10 @@ codecov: require_ci_to_pass: yes +ignore: + # ignore all generated controller-gen and conversion-gen code + - "**/zz_generated.*.go" + coverage: precision: 2 round: down @@ -9,3 +13,4 @@ coverage: patch: default: target: 75% +