Skip to content

Commit a8f2d61

Browse files
committed
Don't add log file to PR provenance if none exists
1 parent add97a3 commit a8f2d61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

polaris/run/serial.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,10 @@ def _write_output_for_pull_request(
696696

697697
# Try to include job scheduler log path for Slurm
698698
job_log = _derive_job_log_path(suite_name, suite)
699-
if job_log:
699+
if job_log and os.path.exists(job_log):
700700
lines.append(f'- Log: `{job_log}`')
701+
else:
702+
lines.append('- Log: not found')
701703

702704
# If we have results, summarize them
703705
if results is not None and isinstance(results, dict):

0 commit comments

Comments
 (0)