Ignore patch codecov as long as total coverage is within 1% of base 2021-03-config-cltv-delta
authorMatt Corallo <git@bluematt.me>
Thu, 18 Mar 2021 03:12:47 +0000 (23:12 -0400)
committerMatt Corallo <git@bluematt.me>
Sat, 20 Mar 2021 00:49:14 +0000 (20:49 -0400)
In some PRs, codecov gets mad that the coverage of the patch itself
is lower than the base. In most cases, we largely don't want a Big
Red X, at least as long as the total coverage has not gone down
substantially.

codecov.yml

index 88751cdb15f92cfca6ff3fb12f5414179c01bbdd..c55a5357d880c04214fe8707f7b8f3914a0f7a25 100644 (file)
@@ -3,6 +3,11 @@ coverage:
     project:
       default:
         target: auto
-        threshold: 2%
+        threshold: 1%
         base: auto
         informational: false
+    patch:
+      default:
+        target: auto
+        threshold: 100%
+        base: auto