.gitlab-ci.yml 2.37 KB
Newer Older
Sylvester Joosten's avatar
Sylvester Joosten committed
1
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
Whitney Armstrong's avatar
Whitney Armstrong committed
2
3

default:
4
5
  before_script:
    - source .local/bin/env.sh
Sylvester Joosten's avatar
Sylvester Joosten committed
6
  interruptible: true
Sylvester Joosten's avatar
Sylvester Joosten committed
7
8
  tags:
    - phy-scratch
Whitney Armstrong's avatar
Whitney Armstrong committed
9
  artifacts:
10
    expire_in: 3 days
Whitney Armstrong's avatar
Whitney Armstrong committed
11
    paths:
12
13
14
15
16
      - .local/detector
      - .local/lib
      - .local/bin
      - .local/include
      - .local/share
17
      - .local/root_build
18
19
      - results
      - config
Whitney Armstrong's avatar
Whitney Armstrong committed
20
21
22
      - juggler.env
    reports:
      dotenv: juggler.env
Whitney Armstrong's avatar
Whitney Armstrong committed
23
24

stages:
25
  - config
26
  - initialize
27
  - compile
Whitney Armstrong's avatar
Whitney Armstrong committed
28
  - run
29
30
  - benchmarks1
  - benchmarks2
31
32
  - process
  - collect
Whitney Armstrong's avatar
Whitney Armstrong committed
33
34
  - finish

35
36
37
common:setup:
  stage: config
  before_script:
Whitney Armstrong's avatar
Whitney Armstrong committed
38
39
40
41
42
43
    - |
      if [[ "${COMMON_BENCH_VERSION}" == "" ]] ; then
        export COMMON_BENCH_VERSION="master" 
      fi
      echo "COMMON_BENCH_VERSION = ${COMMON_BENCH_VERSION}" 
      git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup 
44
45
46
47
  script:
    - source setup/bin/env.sh && ./setup/bin/install_common.sh

common:detector:
48
  stage: initialize
49
  needs: ["common:setup"]
Whitney Armstrong's avatar
Whitney Armstrong committed
50
  script:
51
52
    - source .local/bin/env.sh && build_detector.sh
    - mkdir_local_data_link sim_output
Whitney Armstrong's avatar
Whitney Armstrong committed
53
    - mkdir -p results
54
    - mkdir -p config
55
    - print_env.sh
Whitney Armstrong's avatar
Whitney Armstrong committed
56

57
58
59
60
61
62
.compile_benchmark:
  needs:
    - ["common:detector"]
  before_script:
    - source .local/bin/env.sh

Whitney Armstrong's avatar
Whitney Armstrong committed
63
64
65
66
67
68
69
70
71
.rec_benchmark:
  needs:
    - ["common:detector"]
  before_script:
    - source .local/bin/env.sh
    - ls -lrtha 
    - ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
    - ln -s "${LOCAL_DATA_PATH}/datasets/data" data
    - ls -lrtha
72
73
74
75
  retry:
    max: 2
    when:
      - runner_system_failure
76
  interruptible: true
Whitney Armstrong's avatar
Whitney Armstrong committed
77

78
include: 
79
  - local: 'benchmarks/ecal/config.yml'
80
  - local: 'benchmarks/track_finding/config.yml'
81
  - local: 'benchmarks/track_fitting/config.yml'
82
83
  - local: 'benchmarks/tracking/config.yml'
  - local: 'benchmarks/clustering/config.yml'
84
    #  - local: 'benchmarks/rich/config.yml'
85
  - local: 'benchmarks/imaging_ecal/config.yml'
86
  - local: 'benchmarks/imaging_shower_ML/config.yml'
87
  - local: 'benchmarks/far_forward/config.yml'
88

Whitney Armstrong's avatar
Whitney Armstrong committed
89
90
final_report:
  stage: finish
91
  needs: ["ecal_collect", "tracking_central_electrons", "clustering:results", "track_finding:collect", "track_fitting:collect", "far_forward:collect"]
Whitney Armstrong's avatar
Whitney Armstrong committed
92
  script:
93
94
    # disabled while we address ACTS issues
    #- mkdir -p results/views && cd results/views && bash ../../bin/download_views
Whitney Armstrong's avatar
Whitney Armstrong committed
95
    - echo "It was a success!"
96
  allow_failure: true
Whitney Armstrong's avatar
Whitney Armstrong committed
97