@@ -31,6 +31,16 @@ def _format_httpjson(record, extras, ignore_keys):
3131 return json .dumps (data )
3232
3333
34+ reframe_dir = os .getenv (
35+ 'REFRAME_DIR' ,
36+ '/capstor/store/cscs/cscs/public/reframe/reframe-stable/$CLUSTER_NAME'
37+ )
38+ target_dir_var_exists = bool (os .getenv ('TARGET_DIR' ))
39+ target_dir_base = (
40+ '$SCRATCH/reframe/$CLUSTER_NAME' if not target_dir_var_exists else ''
41+ )
42+
43+
3444site_configuration = {
3545 'environments' : [
3646 {
@@ -108,30 +118,38 @@ def _format_httpjson(record, extras, ignore_keys):
108118 {
109119 'name' : 'maintenance' ,
110120 'options' : [
111- '--unload-module=reframe' ,
112121 '-Sstrict_check=1' ,
113- '--output=$SCRATCH/regression/maintenance' ,
114- '--perflogdir=$SCRATCH/regression/maintenance/logs' ,
115- '--stage=$SCRATCH/regression/maintenance/stage' ,
116- '--report-file=$SCRATCH/regression/maintenance/reports/maint_report_{sessionid}.json' ,
117- '--save-log-files' ,
118- '-p \' (?!PrgEnv-ce)\' ' ,
122+ f'-c { reframe_dir } /cscs-reframe-tests.git/checks' ,
123+ '--failure-stats' ,
119124 '--tag=maintenance' ,
120- '--timestamp=%F_%H-%M-%S' ,
125+ '-p \' (?!PrgEnv-ce)\' ' ,
126+ f'--prefix={ os .getenv ("TARGET_DIR" ) if target_dir_var_exists else target_dir_base + "/maint" } ' , # noqa: E501
127+ f'--output={ os .getenv ("TARGET_DIR" ) if target_dir_var_exists else target_dir_base + "/maint" } ' , # noqa: E501
128+ '--timestamp=%F_%H-%M-%S'
121129 ]
122130 },
123131 {
124132 'name' : 'production' ,
125133 'options' : [
126- '--unload-module=reframe' ,
127134 '-Sstrict_check=1' ,
128- '--output=$SCRATCH/regression/production' ,
129- '--perflogdir=$SCRATCH/regression/production/logs' ,
130- '--stage=$SCRATCH/regression/production/stage' ,
131- '--report-file=$SCRATCH/regression/production/reports/prod_report_{sessionid}.json' ,
132- '--save-log-files' ,
133- '-p \' (?!PrgEnv-ce)\' ' ,
135+ f'-c { reframe_dir } /cscs-reframe-tests.git/checks' ,
136+ '--failure-stats' ,
134137 '--tag=production' ,
138+ '-p \' (?!PrgEnv-ce)\' ' ,
139+ f'--prefix={ os .getenv ("TARGET_DIR" ) if target_dir_var_exists else target_dir_base + "/prod" } ' , # noqa: E501
140+ f'--output={ os .getenv ("TARGET_DIR" ) if target_dir_var_exists else target_dir_base + "/prod" } ' , # noqa: E501
141+ '--timestamp=%F_%H-%M-%S'
142+ ]
143+ },
144+ {
145+ 'name' : 'veto' ,
146+ 'options' : [
147+ '-Sstrict_check=1' ,
148+ f'-c { reframe_dir } /cscs-reframe-tests.git/checks/microbenchmarks/cpu_gpu/node_burn/node-burn-ce.py' , # noqa: E501
149+ '-S nb_duration=300' ,
150+ '--distribute=all' ,
151+ f'--prefix={ os .getenv ("TARGET_DIR" ) if target_dir_var_exists else target_dir_base + "/veto" } ' , # noqa: E501
152+ f'--output={ os .getenv ("TARGET_DIR" ) if target_dir_var_exists else target_dir_base + "/veto" } ' , # noqa: E501
135153 '--timestamp=%F_%H-%M-%S'
136154 ]
137155 },
0 commit comments