fix: fix: evolve.sh silences all batch-eval errors with 2>/dev/null (#749)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-14 16:27:09 +00:00
parent cf94d4c342
commit 89a9d3e575

View file

@ -462,9 +462,15 @@ for gen in $(seq 0 $((GENERATIONS - 1))); do
if [ "${#_BATCH_FILES[@]}" -gt 0 ]; then
BATCH_EC=0
bash "$BATCH_EVAL_SH" "${_BATCH_FILES[@]}" > "$BATCH_SCORES_FILE" 2>/dev/null \
bash "$BATCH_EVAL_SH" "${_BATCH_FILES[@]}" > "$BATCH_SCORES_FILE" 2>"${TMPDIR}/batch-eval.log" \
|| BATCH_EC=$?
if [ "$BATCH_EC" -ne 0 ]; then
echo "--- last 20 lines of ${TMPDIR}/batch-eval.log ---" >&2
tail -n 20 "${TMPDIR}/batch-eval.log" >&2
echo "--- end batch-eval.log ---" >&2
fi
if [ "$BATCH_EC" -eq 2 ]; then
fail "batch-eval.sh reported an infrastructure error (exit 2) — aborting evolution"
fi