summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-08-05 14:06:32 -0500
committerFederico Mena Quintero <federico@gnome.org>2022-08-05 14:06:32 -0500
commit4606cdf3e83253718abef27ab956dda4eb3f49d7 (patch)
tree9009ea592954f68396edbb4cee7568d62e2a8f30 /ci
parent21512d18bddcbe225a63e449f6e421249814e20d (diff)
downloadlibrsvg-4606cdf3e83253718abef27ab956dda4eb3f49d7.tar.gz
Disable the cobertura.xml report for now
Disable the cobertura report for now; it is only used for showing coverage in the diff view of merge requests. After switching to gcov-based instrumentation (-Zprofile above), this coverage.xml is almost 500 MB and causes gitlab's redis to OOM when transfering that artifact from the runner to the main gitlab instance. Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/725>
Diffstat (limited to 'ci')
-rw-r--r--ci/gen-coverage.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/ci/gen-coverage.sh b/ci/gen-coverage.sh
index 0b780b57..328c9b4e 100644
--- a/ci/gen-coverage.sh
+++ b/ci/gen-coverage.sh
@@ -34,8 +34,16 @@ call_grcov() {
--output-path $output_path
}
-call_grcov cobertura coverage.xml
call_grcov html public/coverage
+# Disable the cobertura report for now; it is only used for showing coverage
+# in the diff view of merge requests.
+#
+# After switching to gcov-based instrumentation (-Zprofile in .gitlab-ci.yml), this
+# coverage.xml is almost 500 MB and causes gitlab's redis to OOM.
+#
+# call_grcov cobertura coverage.xml
+
# Print "Coverage: 42.42" so .gitlab-ci.yml will pick it up with a regex
-grep -Eo 'line-rate="[^"]+"' coverage.xml | head -n 1 | grep -Eo '[0-9.]+' | awk '{ print "Coverage:", $1 * 100 }'
+#
+# grep -Eo 'line-rate="[^"]+"' coverage.xml | head -n 1 | grep -Eo '[0-9.]+' | awk '{ print "Coverage:", $1 * 100 }'