summaryrefslogtreecommitdiff
path: root/.codecov.yml
diff options
context:
space:
mode:
authorTodd Gamblin <gamblin2@llnl.gov>2021-08-06 01:33:12 -0700
committerGitHub <noreply@github.com>2021-08-06 01:33:12 -0700
commitad66b758e4388fcf6e0a51b31b742f46239ddbff (patch)
treecdbd679e4a5da88034afdb6f0a0727af564e3ff9 /.codecov.yml
parent0a6e98cdb5c902543ff7c285216a7aece2eef0c0 (diff)
downloadspack-ad66b758e4388fcf6e0a51b31b742f46239ddbff.tar.gz
spack-ad66b758e4388fcf6e0a51b31b742f46239ddbff.tar.bz2
spack-ad66b758e4388fcf6e0a51b31b742f46239ddbff.tar.xz
spack-ad66b758e4388fcf6e0a51b31b742f46239ddbff.zip
codecov: allow coverage offsets for more base commit flexibility (#25293)
This is an attempt to fix "Missing base commit" messages in the codecov UI. Because we do not run full tests on package PRs, package PRs' merge commits on `develop` don't have coverage info. It appears that codecov will give you an error if the pseudo-base's coverage data doesn't all apply properly to the real PR base, unless the `allow_coverage_offsets` option is set. * See here for docs: https://docs.codecov.com/docs/comparing-commits#pseudo-comparison * See here for another potential solution: https://community.codecov.com/t/2480/15
Diffstat (limited to '.codecov.yml')
-rw-r--r--.codecov.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.codecov.yml b/.codecov.yml
index 998b66ce7e..fead3ad004 100644
--- a/.codecov.yml
+++ b/.codecov.yml
@@ -19,3 +19,16 @@ comment: off
# annotations in files that seemingly have nothing to do with the PR.
github_checks:
annotations: false
+
+# Attempt to fix "Missing base commit" messages in the codecov UI.
+# Because we do not run full tests on package PRs, package PRs' merge
+# commits on `develop` don't have coverage info. It appears that
+# codecov will give you an error if the pseudo-base's coverage data
+# doesn't all apply properly to the real PR base.
+#
+# See here for docs:
+# https://docs.codecov.com/docs/comparing-commits#pseudo-comparison
+# See here for another potential solution:
+# https://community.codecov.com/t/2480/15
+codecov:
+ allow_coverage_offsets: true