[librsvg: 2/4] Disable the cobertura.xml report for now




commit 4606cdf3e83253718abef27ab956dda4eb3f49d7
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Aug 5 14:06:32 2022 -0500

    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>

 .gitlab-ci.yml     | 14 ++++++++++----
 ci/gen-coverage.sh | 12 ++++++++++--
 2 files changed, 20 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 19501ef4a..4c8a82d83 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -293,10 +293,16 @@ coverage:
     name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
     expire_in: 2 days
     when: always
-    reports:
-      coverage_report:
-        coverage_format: cobertura
-        path: coverage.xml
+    # 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.
+    #
+    # reports:
+    #   coverage_report:
+    #     coverage_format: cobertura
+    #     path: coverage.xml
     paths:
       - public
 
diff --git a/ci/gen-coverage.sh b/ci/gen-coverage.sh
index 0b780b575..328c9b4e6 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 }'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]