Motus icon indicating copy to clipboard operation
Motus copied to clipboard

auto_eval.sh summary uses wrong log filename pattern

Open cool-koala opened this issue 11 months ago • 1 comments

Description: In auto_eval.sh, the summary step tries to read logs using log_pattern="${LOG_DIR}/batch_${task}gpu**.log" and ls (current main branch). However, each task actually logs to ${LOG_DIR}/${task}.log when launched. Because of the mismatch, the summary marks every task as LOG NOT FOUND even when logs exist.

  • Steps to Reproduce:
  1. Run auto_eval.sh as provided.
  2. Observe logs appear as ${LOG_DIR}/${task}.log.
  3. Check the generated evaluation_summary_*.txt; tasks are listed as missing logs.
  • Expected: Summary should parse the per-task log files that the script writes (${LOG_DIR}/${task}.log) and report SUCCESS/FAILED based on "Episode.*completed".
  • Actual: Summary searches for non-existent batch_${task}gpu**.log files, so tasks show as LOG NOT FOUND.
  • Suggested Fix: Change the summary loop to read log_file="${LOG_DIR}/${task}.log" and grep that file. Example snippet:
for task in "${tasks[@]}"; do
    log_file="${LOG_DIR}/${task}.log"
    if [ -f "$log_file" ]; then
        if grep -q "Episode.*completed" "$log_file" 2>/dev/null; then
            echo "  ✅ $task: SUCCESS" >> "$summary_file"
        else
            echo "  ❌ $task: FAILED" >> "$summary_file"
        fi
    else
        echo "  ⚠️  $task: LOG NOT FOUND" >> "$summary_file"
    fi
done

cool-koala avatar Dec 18 '25 18:12 cool-koala

Thank you so much for your feedback, we made some fixes and added the README.

HongzheBi avatar Dec 19 '25 17:12 HongzheBi