diff --git a/STATE.md b/STATE.md index 8a76241..5b28266 100644 --- a/STATE.md +++ b/STATE.md @@ -25,3 +25,4 @@ - [2026-03-14] EVAL_MODE now defaults to revm (#751) - [2026-03-14] LLM seed — Defensive Floor Hugger optimizer (#672) - [2026-03-14] evolve.sh stale tmpdirs break subsequent runs (#750) +- [2026-03-14] evolve.sh silences all batch-eval errors with 2>/dev/null (#749) diff --git a/tools/push3-evolution/evolve.sh b/tools/push3-evolution/evolve.sh index 4448c4d..b76490c 100755 --- a/tools/push3-evolution/evolve.sh +++ b/tools/push3-evolution/evolve.sh @@ -462,9 +462,16 @@ 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 \ + BATCH_EVAL_LOG="$WORK_DIR/batch-eval-gen-${gen}.log" + bash "$BATCH_EVAL_SH" "${_BATCH_FILES[@]}" > "$BATCH_SCORES_FILE" 2>"$BATCH_EVAL_LOG" \ || BATCH_EC=$? + if [ "$BATCH_EC" -ne 0 ]; then + echo "--- last 20 lines of $BATCH_EVAL_LOG ---" >&2 + tail -n 20 "$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