Commit 6b18aa26 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Added triggers from MR for downstream benchmarks.

 - using JUGGLER_DETECTOR_VERSION to communicate which branch to use downstream
 - using JUGGLER_DETECTOR (=topside) to communicate detector to build in
   benchmarks.
 - Added views directory for ci yml files

	new file:   views/view1.yml
parent f0ecd05b
Pipeline #6951 failed with stages
in 4 minutes and 15 seconds
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:latest
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "web"'
- if: '$CI_PIPELINE_SOURCE == "webide"'
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_TAG'
default:
before_script:
- mkdir -p images && mkdir -p doc/
......@@ -9,18 +17,38 @@ default:
paths:
- images/
- doc/
reports:
dotenv: juggler.env
stages:
- config
- build
- docs
- test
- finalize
- deploy
env:
stage: config
script:
- export JUGGLER_DETECTOR="topside"
- |
if [ "x${CI_PIPELINE_SOURCE}" == "xmerge_request_event" ]; then
export JUGGLER_DETECTOR_VERSION="${CI_COMMIT_REF_NAME}"
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
echo "JUGGLER_DETECTOR_VERSION = ${CI_COMMIT_REF_NAME}"
echo "JUGGLER_DETECTOR_VERSION=$CI_COMMIT_REF_NAME" >> juggler.env
echo "JUGGLER_DETECTOR=$JUGGLER_DETECTOR" >> juggler.env
fi
artifacts:
reports:
dotenv: juggler.env
compile:
stage: build
tags:
- silicon
needs:
- ["env"]
script:
- echo "Build successful."
......@@ -28,109 +56,25 @@ compile:
stage: docs
needs:
- ["compile"]
tags:
- silicon
artifacts:
paths:
- images/
- doc/
dawn_view1:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view01 -d scripts/view1 -D
dawn_view1:ev1:
extends: .views
script:
- ./bin/make_dawn_views -t view01_ev1 -d scripts/view1 -s 2
dawn_view2:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view02 -d scripts/view2 -D
dawn_view2:ev1:
extends: .views
script:
- ./bin/make_dawn_views -t view02_ev1 -d scripts/view2 -s 2
dawn_view3:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view03 -d scripts/view3 -D
dawn_view3:ev1:
extends: .views
script:
- ./bin/make_dawn_views -t view03_ev1 -d scripts/view3 -s 2
dawn_view3:ev3:
extends: .views
script:
- ./bin/make_dawn_views -t view03_ev1 -d scripts/view3 -s 3
dawn_view3:ev4:
extends: .views
script:
- ./bin/make_dawn_views -t view03_ev1 -d scripts/view3 -s 4
dawn_view6:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view06 -d scripts/view6 -D
dawn_view7:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view07 -d scripts/view7 -D
dawn_view11:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -D
dawn_view11:ev0:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11
dawn_view11:ev1:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 1
dawn_view11:ev2:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 2
dawn_view11:ev3:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 3
dawn_view11:ev4:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 4
dawn_view12:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view12 -d scripts/view12 -D
dawn_view13:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view13 -d scripts/view13 -D
dawn_view14:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view14 -d scripts/view14 -D
include:
- local: 'views/view1.yml'
- local: 'views/view2.yml'
- local: 'views/view3.yml'
- local: 'views/view6.yml'
- local: 'views/view7.yml'
- local: 'views/config.yml'
report:
stage: test
stage: finalize
needs:
- "dawn_view1:detector"
- "dawn_view2:detector"
- "dawn_view3:detector"
- "dawn_view1:ev1"
- "dawn_view2:ev1"
- "dawn_view3:ev1"
- "dawn_view3:ev3"
- "dawn_view3:ev4"
- "dawn_view6:detector"
- "dawn_view7:detector"
- "dawn_view11:detector"
- "dawn_view12:detector"
- "dawn_view13:detector"
- "dawn_view14:detector"
tags:
- silicon
- view_01
- dawn_view_02:detector
- dawn_view_03:detector
artifacts:
paths:
- images/
......@@ -142,54 +86,40 @@ report:
overlap_check:
stage: test
tags:
- silicon
needs:
- ["compile"]
script:
#- $(exit $(checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l ))
- checkOverlaps -c topside.xml | tee doc/overlap_check.out
- echo "$(cat doc/overlap_check.out | grep ovlp | wc -l) overlaps..."
- if [[ "$(cat doc/overlap_check.out | grep ovlp | wc -l)" -gt "1" ]] ; then echo "Overlaps exist!" && false ; fi
# allow_failure: true
topside:config_testing:
stage: test
tags:
- silicon
needs:
- ["compile"]
script:
#- $(exit $(checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l ))
- checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l
- cat doc/overlap_check.out
allow_failure: true
benchmarks:reconstruction:
stage: deploy
variables:
JUGGLER_DETECTOR: "$JUGGLER_DETECTOR"
JUGGLER_DETECTOR_VERSION: "$JUGGLER_DETECTOR_VERSION"
trigger:
project: EIC/benchmarks/reconstruction_benchmarks
strategy: depend
needs: ["overlap_check","report"]
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH != "master"'
when: never
- when: on_success
needs: ["env","overlap_check","report"]
benchmarks:physics:
stage: deploy
variables:
JUGGLER_DETECTOR: "$JUGGLER_DETECTOR"
JUGGLER_DETECTOR_VERSION: "$JUGGLER_DETECTOR_VERSION"
trigger:
project: EIC/benchmarks/physics_benchmarks
strategy: depend
needs: ["overlap_check","report"]
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH != "master"'
when: never
- when: on_success
needs: ["env","overlap_check","report"]
#dawn_view_03:detector:
# extends: .views
# script:
# - ./bin/make_dawn_views -t view03 -d scripts/view3 -D
#dawn_view_03:ev001:
# extends: .views
# script:
# - ./bin/make_dawn_views -t view03_ev001 -d scripts/view3 -s 2
#dawn_view_03:ev003:
# extends: .views
# script:
# - ./bin/make_dawn_views -t view03_ev100 -d scripts/view3 -s 3
#dawn_view_03:ev004:
# extends: .views
# script:
# - ./bin/make_dawn_views -t view03_ev001 -d scripts/view3 -s 4
#dawn_view_06:detector:
# extends: .views
# script:
# - ./bin/make_dawn_views -t view06 -d scripts/view6 -D
#dawn_view_07:detector:
# extends: .views
# script:
# - ./bin/make_dawn_views -t view07 -d scripts/view7 -D
dawn_view_11:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -D
dawn_view_11:ev000:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11
dawn_view_11:ev001:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 1
dawn_view_11:ev002:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 2
dawn_view_11:ev003:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 3
dawn_view_11:ev004:
extends: .views
script:
- ./bin/make_dawn_views -t view11 -d scripts/view11 -s 4
dawn_view_12:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view12 -d scripts/view12 -D
dawn_view_13:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view13 -d scripts/view13 -D
dawn_view_14:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view14 -d scripts/view14 -D
dawn_view_01:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view01 -d scripts/view1 -D
dawn_view_01:ev001:
extends: .views
script:
- ./bin/make_dawn_views -t view01_ev001 -d scripts/view1 -s 1
dawn_view_01:ev002:
extends: .views
script:
- ./bin/make_dawn_views -t view01_ev001 -d scripts/view1 -s 2
view_01:
stage: test
needs:
- ["dawn_view_01:detector", "dawn_view_01:ev001","dawn_view_01:ev002"]
script:
- ls -lrth *
- ls -lrth images/*
dawn_view_02:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view02 -d scripts/view2 -D
dawn_view_02:ev002:
extends: .views
script:
- ./bin/make_dawn_views -t view02_ev002 -d scripts/view2 -s 2
view_02:
stage: test
needs:
- ["dawn_view_02:detector", "dawn_view_02:ev002"]
script:
- ls -lrth *
- ls -lrth images/*
dawn_view_03:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view02 -d scripts/view2 -D
dawn_view_03:ev002:
extends: .views
script:
- ./bin/make_dawn_views -t view02_ev002 -d scripts/view2 -s 2
view_03:
stage: test
needs:
- ["dawn_view_03:detector", "dawn_view_03:ev002"]
script:
- ls -lrth *
- ls -lrth images/*
dawn_view_06:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view02 -d scripts/view2 -D
dawn_view_06:ev004:
extends: .views
script:
- ./bin/make_dawn_views -t view02_ev004 -d scripts/view2 -s 4
view_06:
stage: test
needs:
- ["dawn_view_06:detector", "dawn_view_06:ev004"]
script:
- ls -lrth *
- ls -lrth images/*
dawn_view_07:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view02 -d scripts/view2 -D
dawn_view_07:ev002:
extends: .views
script:
- ./bin/make_dawn_views -t view02_ev002 -d scripts/view2 -s 2
view_07:
stage: test
needs:
- ["dawn_view_07:detector", "dawn_view_07:ev002"]
script:
- ls -lrth *
- ls -lrth images/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment