[Git][ghc/ghc][wip/T16748] gitlab-ci: Collect OpenMetrics report

Ben Gamari gitlab at gitlab.haskell.org
Tue Jun 4 17:14:13 UTC 2019



Ben Gamari pushed to branch wip/T16748 at Glasgow Haskell Compiler / GHC


Commits:
eacddcc3 by Ben Gamari at 2019-06-04T17:14:02Z
gitlab-ci: Collect OpenMetrics report

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -227,6 +227,17 @@ hadrian-ghc-in-ghci:
     - |
       THREADS=`mk/detect-cpu-count.sh`
       make $TEST_TYPE THREADS=$THREADS JUNIT_FILE=../../junit.xml METRICS_FILE=$METRICS_FILE
+    - |
+      # Generate OpenMetrics summary
+      if [ -n "$CI_MERGE_REQUEST_SOURCE_BRANCH_SHA" ]; then
+          testsuite/driver/perf_notes.py \
+              --test-env=$TEST_ENV --openmetrics \
+              $CI_MERGE_REQUEST_SOURCE_BRANCH_SHA \
+              $CI_COMMIT_SHA \
+              > metrics.txt
+      else
+          echo "No base commit, skipping OpenMetrics generation..."
+      fi
     - |
       # Push git notes.
       METRICS_FILE=$METRICS_FILE .gitlab/push-test-metrics.sh
@@ -234,6 +245,7 @@ hadrian-ghc-in-ghci:
   artifacts:
     reports:
       junit: junit.xml
+      metrics: metrics.txt
     expire_in: 2 week
     paths:
       - ghc-*.tar.xz



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/eacddcc3f35a1b4fb2e4030363dc2156cd36db96

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/eacddcc3f35a1b4fb2e4030363dc2156cd36db96
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190604/b9f9037f/attachment.html>


More information about the ghc-commits mailing list