Skip to content

Commit 8c77222

Browse files
committed
Use job_completion_time with timezone info for performance logging formatting
1 parent 2df7a4a commit 8c77222

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

config/cscs-ci.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class ReframeSettings:
172172
'prefix': '%(check_system)s/%(check_partition)s',
173173
'level': 'INFO',
174174
'format': (
175-
'%(asctime)s|reframe %(version)s|'
175+
'%(check_job_completion_time)s|reframe %(version)s|'
176176
'%(check_info)s|jobid=%(check_jobid)s|'
177177
'num_tasks=%(check_num_tasks)s|'
178178
'%(check_perf_var)s=%(check_perf_value)s|'
@@ -181,6 +181,7 @@ class ReframeSettings:
181181
'u=%(check_perf_upper_thres)s)|'
182182
'%(check_perf_unit)s'
183183
),
184+
'datefmt': '%FT%T%:z',
184185
'append': True
185186
}
186187
]

config/cscs-pbs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,15 @@ class ReframeSettings:
137137
'prefix': '%(check_system)s/%(check_partition)s',
138138
'level': 'INFO',
139139
'format': (
140-
'%(asctime)s|reframe %(version)s|'
140+
'%(check_job_completion_time)s|reframe %(version)s|'
141141
'%(check_info)s|jobid=%(check_jobid)s|'
142142
'num_tasks=%(check_num_tasks)s|'
143143
'%(check_perf_var)s=%(check_perf_value)s|'
144144
'ref=%(check_perf_ref)s '
145145
'(l=%(check_perf_lower_thres)s, '
146146
'u=%(check_perf_upper_thres)s)'
147147
),
148+
'datefmt': '%FT%T%:z',
148149
'append': True
149150
}
150151
]

config/cscs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ class ReframeSettings:
623623
'prefix': '%(check_system)s/%(check_partition)s',
624624
'level': 'INFO',
625625
'format': (
626-
'%(asctime)s|reframe %(version)s|'
626+
'%(check_job_completion_time)s|reframe %(version)s|'
627627
'%(check_info)s|jobid=%(check_jobid)s|'
628628
'num_tasks=%(check_num_tasks)s|'
629629
'%(check_perf_var)s=%(check_perf_value)s|'
@@ -632,6 +632,7 @@ class ReframeSettings:
632632
'u=%(check_perf_upper_thres)s)|'
633633
'%(check_perf_unit)s'
634634
),
635+
'datefmt': '%FT%T%:z',
635636
'append': True
636637
}
637638
]

config/tiger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ class ReframeSettings:
144144
'prefix': '%(check_system)s/%(check_partition)s',
145145
'level': 'INFO',
146146
'format': (
147-
'%(asctime)s|reframe %(version)s|'
147+
'%(check_job_completion_time)s|reframe %(version)s|'
148148
'%(check_info)s|jobid=%(check_jobid)s|'
149149
'%(check_perf_var)s=%(check_perf_value)s|'
150150
'ref=%(check_perf_ref)s '
151151
'(l=%(check_perf_lower_thres)s, '
152152
'u=%(check_perf_upper_thres)s)|'
153153
'%(check_perf_unit)s'
154154
),
155+
'datefmt': '%FT%T%:z',
155156
'append': True
156157
}
157158
]

reframe/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,15 @@ class ReframeSettings:
8686
'prefix': '%(check_system)s/%(check_partition)s',
8787
'level': 'INFO',
8888
'format': (
89-
'%(asctime)s|reframe %(version)s|'
89+
'%(check_job_completion_time)s|reframe %(version)s|'
9090
'%(check_info)s|jobid=%(check_jobid)s|'
9191
'%(check_perf_var)s=%(check_perf_value)s|'
9292
'ref=%(check_perf_ref)s '
9393
'(l=%(check_perf_lower_thres)s, '
9494
'u=%(check_perf_upper_thres)s)|'
9595
'%(check_perf_unit)s'
9696
),
97+
'datefmt': '%FT%T%:z',
9798
'append': True
9899
}
99100
]

0 commit comments

Comments
 (0)