File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5151
5252echo " === 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 &
5556tail_pid=$!
5657
5758# Give tail a moment to start and show initial output
Original file line number Diff line number Diff line change @@ -21,11 +21,12 @@ echo "Starting parallel benchmark jobs..."
2121echo " =========================================="
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) &
2526pr_pid=$!
2627echo " 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 ) &
2930master_pid=$!
3031echo " Master job started in background (PID: $master_pid )"
3132
You can’t perform that action at this time.
0 commit comments