Skip to content

Commit e17eb27

Browse files
committed
fixup
1 parent d9e06f6 commit e17eb27

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/scripts/monitor_slurm_job.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ done
5151

5252
echo "=== Streaming output for job $job_id ==="
5353
# Stream output while job runs (explicitly redirect to ensure output visibility)
54-
tail -f "$output_file" 2>&1 &
54+
# Use stdbuf for unbuffered output to ensure immediate display in CI logs
55+
stdbuf -oL -eL tail -f "$output_file" 2>&1 &
5556
tail_pid=$!
5657

5758
# Give tail a moment to start and show initial output

.github/scripts/run_parallel_benchmarks.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ echo "Starting parallel benchmark jobs..."
2121
echo "=========================================="
2222

2323
# Run both jobs with monitoring using dedicated script from PR
24-
(bash "${SCRIPT_DIR}/submit_and_monitor_bench.sh" pr "$device" "$interface" "$cluster") &
24+
# Use stdbuf for line-buffered output and prefix each line for clarity
25+
(stdbuf -oL -eL bash "${SCRIPT_DIR}/submit_and_monitor_bench.sh" pr "$device" "$interface" "$cluster" 2>&1 | while IFS= read -r line; do echo "[PR] $line"; done) &
2526
pr_pid=$!
2627
echo "PR job started in background (PID: $pr_pid)"
2728

28-
(bash "${SCRIPT_DIR}/submit_and_monitor_bench.sh" master "$device" "$interface" "$cluster") &
29+
(stdbuf -oL -eL bash "${SCRIPT_DIR}/submit_and_monitor_bench.sh" master "$device" "$interface" "$cluster" 2>&1 | while IFS= read -r line; do echo "[MASTER] $line"; done) &
2930
master_pid=$!
3031
echo "Master job started in background (PID: $master_pid)"
3132

0 commit comments

Comments
 (0)