Motus
Motus copied to clipboard
auto_eval.sh summary uses wrong log filename pattern
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:
- Run auto_eval.sh as provided.
- Observe logs appear as ${LOG_DIR}/${task}.log.
- 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
Thank you so much for your feedback, we made some fixes and added the README.