From 72efb3e55eda0e22001da4e5cdcb617793bbe05c Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Sat, 18 Feb 2023 15:55:31 +0000
Subject: [PATCH] feat: run benchmarks after container build

---
 .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b0266d8b2..065661178 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,6 +68,7 @@ stages:
   - base            ## base OS image
   - jug             ## jug container images
   - deploy          ## build/deploy singularity images
+  - benchmarks
   - test
   - finalize
 
@@ -515,6 +516,40 @@ juggler:main:
     project: EIC/juggler
   allow_failure: true
 
+benchmarks:reconstruction:
+  stage: benchmarks
+  rules:
+    - if:  '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
+  needs: 
+    - version
+    - jug_xl:default
+  variables:
+    BENCHMARKS_TAG: "$INTERNAL_TAG"
+    BENCHMARKS_CONTAINER: "jug_xl"
+    BENCHMARKS_REGISTRY: "$CI_REGISTRY_IMAGE"
+  trigger:
+    project: EIC/benchmarks/reconstruction_benchmarks
+    strategy: depend
+  ## for now allow failure, as we need to update those pipelines
+  allow_failure: false
+  
+benchmarks:physics:
+  stage: benchmarks
+  rules:
+    - if:  '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
+  needs: 
+    - version
+    - jug_xl:default
+  variables:
+    RECO: "juggler"
+    BENCHMARKS_TAG: "$INTERNAL_TAG"
+    BENCHMARKS_CONTAINER: "jug_xl"
+    BENCHMARKS_REGISTRY: "$CI_REGISTRY_IMAGE"
+  trigger:
+    project: EIC/benchmarks/physics_benchmarks
+    strategy: depend
+  allow_failure: false
+
 cleanup:
   stage: finalize
   dependencies:
-- 
GitLab