|
17 | 17 | # - SUCCESS (all of) |
18 | 18 | # - working directory contains slurm-JOBID.out file |
19 | 19 | # - working directory contains eessi*tar.gz |
| 20 | +# - no message FATAL |
20 | 21 | # - no message ERROR |
21 | 22 | # - no message FAILED |
22 | 23 | # - no message ' required modules missing:' |
|
25 | 26 | # - FAILED (one of ... implemented as NOT SUCCESS) |
26 | 27 | # - no slurm-JOBID.out file |
27 | 28 | # - no tarball |
| 29 | +# - message with FATAL |
28 | 30 | # - message with ERROR |
29 | 31 | # - message with FAILED |
30 | 32 | # - message with ' required modules missing:' |
@@ -105,6 +107,16 @@ else |
105 | 107 | [[ ${VERBOSE} -ne 0 ]] && echo " Slurm output file '"${job_out}"' NOT found" |
106 | 108 | fi |
107 | 109 |
|
| 110 | +FATAL=-1 |
| 111 | +if [[ ${SLURM_OUTPUT_FOUND} -eq 1 ]]; then |
| 112 | + GP_fatal='FATAL: ' |
| 113 | + grep_out=$(grep -v "^>> searching for " ${job_dir}/${job_out} | grep "${GP_fatal}") |
| 114 | + [[ $? -eq 0 ]] && FATAL=1 || FATAL=0 |
| 115 | + # have to be careful to not add searched for pattern into slurm out file |
| 116 | + [[ ${VERBOSE} -ne 0 ]] && echo ">> searching for '"${GP_fatal}"'" |
| 117 | + [[ ${VERBOSE} -ne 0 ]] && echo "${grep_out}" |
| 118 | +fi |
| 119 | + |
108 | 120 | ERROR=-1 |
109 | 121 | if [[ ${SLURM_OUTPUT_FOUND} -eq 1 ]]; then |
110 | 122 | GP_error='ERROR: ' |
|
163 | 175 |
|
164 | 176 | [[ ${VERBOSE} -ne 0 ]] && echo "SUMMARY: ${job_dir}/${job_out}" |
165 | 177 | [[ ${VERBOSE} -ne 0 ]] && echo " <test name>: <actual result> (<expected result>)" |
| 178 | +[[ ${VERBOSE} -ne 0 ]] && echo " FATAL......: $([[ $FATAL -eq 1 ]] && echo 'yes' || echo 'no') (no)" |
166 | 179 | [[ ${VERBOSE} -ne 0 ]] && echo " ERROR......: $([[ $ERROR -eq 1 ]] && echo 'yes' || echo 'no') (no)" |
167 | 180 | [[ ${VERBOSE} -ne 0 ]] && echo " FAILED.....: $([[ $FAILED -eq 1 ]] && echo 'yes' || echo 'no') (no)" |
168 | 181 | [[ ${VERBOSE} -ne 0 ]] && echo " REQ_MISSING: $([[ $MISSING -eq 1 ]] && echo 'yes' || echo 'no') (no)" |
@@ -190,6 +203,7 @@ job_result_file=_bot_job${SLURM_JOB_ID}.result |
190 | 203 |
|
191 | 204 | # Default reason: |
192 | 205 | if [[ ${SLURM_OUTPUT_FOUND} -eq 1 ]] && \ |
| 206 | + [[ ${FATAL} -eq 0 ]] && \ |
193 | 207 | [[ ${ERROR} -eq 0 ]] && \ |
194 | 208 | [[ ${FAILED} -eq 0 ]] && \ |
195 | 209 | [[ ${MISSING} -eq 0 ]] && \ |
|
223 | 237 | # <dt>_Details_</dt> |
224 | 238 | # <dd> |
225 | 239 | # :white_check_mark: job output file <code>slurm-4682.out</code><br/> |
| 240 | +# :white_check_mark: no message matching <code>FATAL: </code><br/> |
226 | 241 | # :white_check_mark: no message matching <code>ERROR: </code><br/> |
227 | 242 | # :white_check_mark: no message matching <code>FAILED: </code><br/> |
228 | 243 | # :white_check_mark: no message matching <code> required modules missing:</code><br/> |
|
264 | 279 | # <dt>_Details_</dt> |
265 | 280 | # <dd> |
266 | 281 | # :white_check_mark: job output file <code>slurm-4682.out</code><br/> |
| 282 | +# :x: no message matching <code>FATAL: </code><br/> |
267 | 283 | # :x: no message matching <code>ERROR: </code><br/> |
268 | 284 | # :white_check_mark: no message matching <code>FAILED: </code><br/> |
269 | 285 | # :x: no message matching <code> required modules missing:</code><br/> |
@@ -381,6 +397,10 @@ success_msg="job output file <code>${job_out}</code>" |
381 | 397 | failure_msg="no job output file <code>${job_out}</code>" |
382 | 398 | comment_details_list=${comment_details_list}$(add_detail ${SLURM_OUTPUT_FOUND} 1 "${success_msg}" "${failure_msg}") |
383 | 399 |
|
| 400 | +success_msg="no message matching <code>${GP_fatal}</code>" |
| 401 | +failure_msg="found message matching <code>${GP_fatal}</code>" |
| 402 | +comment_details_list=${comment_details_list}$(add_detail ${FATAL} 0 "${success_msg}" "${failure_msg}") |
| 403 | + |
384 | 404 | success_msg="no message matching <code>${GP_error}</code>" |
385 | 405 | failure_msg="found message matching <code>${GP_error}</code>" |
386 | 406 | comment_details_list=${comment_details_list}$(add_detail ${ERROR} 0 "${success_msg}" "${failure_msg}") |
|
0 commit comments