-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
264 lines (248 loc) · 7.61 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
stages:
- build
- process
- combine
- plotting
- download
image: atlasadc/atlas-grid-centos7
hhCompile:
stage: build
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SSL_NO_VERIFY: "true"
script:
- set +e
- shopt -s expand_aliases
- export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
- alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'
- base_path=$(pwd)
- git status
- cd $base_path
- source compile.sh
- source setup.sh
artifacts:
paths:
- submodules
- hh_combination_fw
- scripts
- setup.sh
.IStep1:
stage: process
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
needs:
- job: hhCompile
variables:
GIT_SSL_NO_VERIFY: "true"
input_dir: input
before_script:
- set +e
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- eval "$(ssh-agent -s)"
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- echo "lxplus.cern.ch, ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPZvfRF+9L7TR3FRPyLFdcsXSZ6RQYJHfOjzzWB94sX0gP34Cgij9p4ukL900sVVvw3LPM5OxxFSNIXGztFYu4o=" > ~/.ssh/known_hosts
- echo -e "Host *\n\tGSSAPIDelegateCredentials yes\n\tGSSAPITrustDNS yes\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- echo $SERVICE_PASS | kinit -f $CERN_USER || echo something
- mkdir -p $input_dir/$version
- scp -r -i ~/.ssh/id_rsa ${CERN_USER}@lxplus.cern.ch:/afs/cern.ch/work/z/zhangr/HHcomb/FullRun2Workspaces/original/$version/* $input_dir/$version/
- ls $input_dir/$version/*/nonres/0.root
- shopt -s expand_aliases
- export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
- alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'
- echo $input_dir/$version
- source setup.sh || echo ignore setupATLAS return code
artifacts:
paths:
- $output_dir
.IStep2:
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
stage: combine
variables:
GIT_SSL_NO_VERIFY: "true"
input_dir: output
before_script:
- set +e
- shopt -s expand_aliases
- export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
- alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'
- source setup.sh || echo ignore setupATLAS return code
artifacts:
paths:
- $input_dir
###################################
## Non-resonant Process channels ##
###################################
.NRProcess:
extends: .IStep1
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
output_dir: output/NR
mini_option: default.json
version: CONF2021/20210922
other_options: ""
allow_failure: true
script:
- echo HHComb process_channels -i $input_dir/$version -c $channel -n nonres -o $output_dir --minimizer_options configs/minimizer_options/$mini_option --config configs/task_options/CONF2021/nonres_v6_mH125_CI.yaml --tasks "modification,limit"
- HHComb process_channels -i $input_dir/$version -c $channel -n nonres -o $output_dir --minimizer_options configs/minimizer_options/$mini_option --config configs/task_options/CONF2021/nonres_v6_mH125_CI.yaml --tasks "modification,limit"
NR_mu_pro:
needs:
- job: hhCompile
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
extends: .NRProcess
variables:
output_dir: output/NR_blind
channel: bbbb,bbtautau,bbyy,bbll,bbVV,WWWW
only:
- branches
- tags
###################################
## None-resonant combination ##
###################################
# Default is correlated (bbtautau and bbyy)
.NRCombine_ws:
extends: .IStep2
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
mini_option: default.json
np_option: CONF2021/nonres_v10.json
other_options: ""
allow_failure: true
script:
- echo HHComb combine_channels -i $input_dir -c $channels -n nonres --minimizer_options configs/minimizer_options/$mini_option --scheme configs/correlation_schemes/$np_option --tasks "combination,limit" $other_options --config configs/task_options/CONF2021/nonres_v6_mH125_CI.yaml
- HHComb combine_channels -i $input_dir -c $channels -n nonres --minimizer_options configs/minimizer_options/$mini_option --scheme configs/correlation_schemes/$np_option --tasks "combination,limit" $other_options --config configs/task_options/CONF2021/nonres_v6_mH125_CI.yaml
only:
- tags
- master
- CI
# For sensitivity study
NR_BTY_comb_blind:
needs:
- job: hhCompile
- job: NR_mu_pro
extends: .NRCombine_ws
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
input_dir: output/NR_blind
channels: bbbb,bbtautau,bbyy
NR_ALL6_comb_blind:
needs:
- job: hhCompile
- job: NR_mu_pro
extends: .NRCombine_ws
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
input_dir: output/NR_blind
channels: bbbb,bbtautau,bbyy,bbll,bbVV,WWWW
NR_N-ll_comb_blind:
needs:
- job: hhCompile
- job: NR_mu_pro
extends: .NRCombine_ws
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
input_dir: output/NR_blind
channels: bbbb,bbtautau,bbyy,bbVV,WWWW
NR_N-VV_comb_blind:
needs:
- job: hhCompile
- job: NR_mu_pro
extends: .NRCombine_ws
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
input_dir: output/NR_blind
channels: bbbb,bbtautau,bbyy,bbll,WWWW
NR_N-WW_comb_blind:
needs:
- job: hhCompile
- job: NR_mu_pro
extends: .NRCombine_ws
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
input_dir: output/NR_blind
channels: bbbb,bbtautau,bbyy,bbll,bbVV
###################################
## Plotting ##
###################################
.plot:
stage: plotting
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
GIT_SSL_NO_VERIFY: "true"
configuration: project3000
before_script:
- set +e
- shopt -s expand_aliases
- export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
- alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'
- source setup.sh || echo ignore setupATLAS return code
allow_failure: true
only:
- tags
- master
- CI
NRPlot:
extends: .plot
needs:
- job: hhCompile
- job: NR_BTY_comb_blind
- job: NR_ALL6_comb_blind
- job: NR_N-ll_comb_blind
- job: NR_N-VV_comb_blind
- job: NR_N-WW_comb_blind
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
input_dir: output/NR_blind
script:
# Plot nonres signal strength (mu)
- echo python plotting/new/combine_plot_6chan.py -a -i $input_dir
- python plotting/new/combine_plot_6chan.py -a -i $input_dir
artifacts:
paths:
- $input_dir/figures
#####################################
## Intermediate output to download ##
#####################################
Artifacts:
stage: download
tags:
# Make you job be executed in a shared runner that has CVMFS mounted
- cvmfs
variables:
GIT_SSL_NO_VERIFY: "true"
output: output
allow_failure: true
script:
- ls
only:
- tags
- master
- CI
artifacts:
paths:
- $output