From 8c7d0fda39839c76d52ac683de0be4eecbc7cb89 Mon Sep 17 00:00:00 2001
From: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Date: Tue, 8 Oct 2024 22:28:52 -0400
Subject: [PATCH] **/config.yml: collect_results shoud extend from
 .det_benchmark (#80)

---
 benchmarks/femc_electron/config.yml  | 5 +++--
 benchmarks/femc_photon/config.yml    | 5 +++--
 benchmarks/femc_pi0/config.yml       | 6 +++---
 benchmarks/insert_muon/config.yml    | 5 +++--
 benchmarks/insert_neutron/config.yml | 5 +++--
 benchmarks/zdc_lambda/config.yml     | 5 +++--
 benchmarks/zdc_photon/config.yml     | 5 +++--
 benchmarks/zdc_pi0/config.yml        | 7 +++----
 benchmarks/zdc_sigma/config.yml      | 5 +++--
 9 files changed, 27 insertions(+), 21 deletions(-)

diff --git a/benchmarks/femc_electron/config.yml b/benchmarks/femc_electron/config.yml
index a600454d..7b6f1043 100644
--- a/benchmarks/femc_electron/config.yml
+++ b/benchmarks/femc_electron/config.yml
@@ -1,6 +1,6 @@
 sim:femc_electron:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 10
@@ -20,13 +20,14 @@ sim:femc_electron:
       - runner_system_failure
 
 bench:femc_electron:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:femc_electron"]
   script:
     - snakemake --cores 1 results/epic_craterlake/femc_electron
 
 collect_results:femc_electron:
+  extends: .det_benchmark
   stage: collect
   needs: ["bench:femc_electron"]
   script:
diff --git a/benchmarks/femc_photon/config.yml b/benchmarks/femc_photon/config.yml
index a367e509..af710897 100644
--- a/benchmarks/femc_photon/config.yml
+++ b/benchmarks/femc_photon/config.yml
@@ -1,6 +1,6 @@
 sim:femc_photon:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 10
@@ -20,13 +20,14 @@ sim:femc_photon:
       - runner_system_failure
 
 bench:femc_photon:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:femc_photon"]
   script:
     - snakemake --cores 1 results/epic_craterlake/femc_photon
 
 collect_results:femc_photon:
+  extends: .det_benchmark
   stage: collect
   needs: ["bench:femc_photon"]
   script:
diff --git a/benchmarks/femc_pi0/config.yml b/benchmarks/femc_pi0/config.yml
index bcbd90af..46e6ed9e 100644
--- a/benchmarks/femc_pi0/config.yml
+++ b/benchmarks/femc_pi0/config.yml
@@ -1,6 +1,6 @@
 sim:femc_pi0:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 10
@@ -11,7 +11,6 @@ sim:femc_pi0:
       - P: 60
       - P: 70
       - P: 80
-  timeout: 1 hours
   script:
     - snakemake --cores 1 sim_output/femc_pi0/epic_craterlake_rec_pi0_${P}GeV.edm4eic.root
   retry:
@@ -20,13 +19,14 @@ sim:femc_pi0:
       - runner_system_failure
 
 bench:femc_pi0:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:femc_pi0"]
   script:
     - snakemake --cores 1 results/epic_craterlake/femc_pi0
 
 collect_results:femc_pi0:
+  extends: .det_benchmark
   stage: collect
   needs: ["bench:femc_pi0"]
   script:
diff --git a/benchmarks/insert_muon/config.yml b/benchmarks/insert_muon/config.yml
index 252cd6e8..76899c1d 100644
--- a/benchmarks/insert_muon/config.yml
+++ b/benchmarks/insert_muon/config.yml
@@ -1,6 +1,6 @@
 sim:insert_muon:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 50
@@ -12,13 +12,14 @@ sim:insert_muon:
       - runner_system_failure
 
 bench:insert_muon:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:insert_muon"]
   script:
     - snakemake --cores 1 results/epic_craterlake/insert_muon
 
 collect_results:insert_muon:
+  extends: .det_benchmark
   stage: collect
   needs: ["bench:insert_muon"]
   script:
diff --git a/benchmarks/insert_neutron/config.yml b/benchmarks/insert_neutron/config.yml
index 4c723e68..eedac937 100644
--- a/benchmarks/insert_neutron/config.yml
+++ b/benchmarks/insert_neutron/config.yml
@@ -1,6 +1,6 @@
 sim:insert_neutron:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 20
@@ -18,13 +18,14 @@ sim:insert_neutron:
       - runner_system_failure
 
 bench:insert_neutron:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:insert_neutron"]
   script:
     - snakemake --cores 1 results/epic_craterlake/insert_neutron
 
 collect_results:insert_neutron:
+  extends: .det_benchmark
   stage: collect
   needs: ["bench:insert_neutron"]
   script:
diff --git a/benchmarks/zdc_lambda/config.yml b/benchmarks/zdc_lambda/config.yml
index e62b0d9c..e6b16031 100644
--- a/benchmarks/zdc_lambda/config.yml
+++ b/benchmarks/zdc_lambda/config.yml
@@ -1,6 +1,6 @@
 sim:zdc_lambda:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 100
@@ -19,13 +19,14 @@ sim:zdc_lambda:
       - runner_system_failure
 
 bench:zdc_lambda:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:zdc_lambda"]
   script:
     - snakemake --cores 1 results/epic_zdc_sipm_on_tile_only/zdc_lambda
 
 collect_results:zdc_lambda:
+  extends: .det_benchmark
   stage: collect
   needs: ["bench:zdc_lambda"]
   script:
diff --git a/benchmarks/zdc_photon/config.yml b/benchmarks/zdc_photon/config.yml
index 4d205eb2..aee4f6c6 100644
--- a/benchmarks/zdc_photon/config.yml
+++ b/benchmarks/zdc_photon/config.yml
@@ -1,6 +1,6 @@
 sim:zdc_photon:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 20
@@ -19,14 +19,15 @@ sim:zdc_photon:
       - runner_system_failure
 
 bench:zdc_photon:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:zdc_photon"]
   script:
     - mkdir -p results/epic_zdc_sipm_on_tile_only
     - python benchmarks/zdc_photon/analysis/zdc_photon_plots.py results/epic_zdc_sipm_on_tile_only/zdc_photon
 
 collect_results:zdc_photon:
+  extends: .det_benchmark
   stage: collect
   extends: .det_benchmark
   needs: ["bench:zdc_photon"]
diff --git a/benchmarks/zdc_pi0/config.yml b/benchmarks/zdc_pi0/config.yml
index ae2c1fd9..f0b8993e 100644
--- a/benchmarks/zdc_pi0/config.yml
+++ b/benchmarks/zdc_pi0/config.yml
@@ -1,6 +1,6 @@
 sim:zdc_pi0:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 60
@@ -16,17 +16,16 @@ sim:zdc_pi0:
       - runner_system_failure
 
 bench:zdc_pi0:
-  stage: benchmarks
-  
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:zdc_pi0"]
   script:
     - mkdir -p results/epic_zdc_sipm_on_tile_only
     - python benchmarks/zdc_pi0/analysis/zdc_pi0_plots.py results/epic_zdc_sipm_on_tile_only/zdc_pi0
 
 collect_results:zdc_pi0:
-  stage: collect
   extends: .det_benchmark
+  stage: collect
   needs: ["bench:zdc_pi0"]
   script:
     - ls -al
diff --git a/benchmarks/zdc_sigma/config.yml b/benchmarks/zdc_sigma/config.yml
index 5a490510..af204d42 100644
--- a/benchmarks/zdc_sigma/config.yml
+++ b/benchmarks/zdc_sigma/config.yml
@@ -1,6 +1,6 @@
 sim:zdc_sigma:
-  stage: simulate
   extends: .det_benchmark
+  stage: simulate
   parallel:
     matrix:
       - P: 100
@@ -19,13 +19,14 @@ sim:zdc_sigma:
       - runner_system_failure
 
 bench:zdc_sigma:
-  stage: benchmarks
   extends: .det_benchmark
+  stage: benchmarks
   needs: ["sim:zdc_sigma"]
   script:
     - snakemake --cores 1 results/epic_zdc_sipm_on_tile_only/zdc_sigma
 
 collect_results:zdc_sigma:
+  extends: .det_benchmark
   stage: collect
   needs: ["bench:zdc_sigma"]
   script:
-- 
GitLab