Merge pull request 'fix: fix: evolve.sh silences all batch-eval errors with 2>/dev/null (#749)' (#765) from fix/issue-749 into master

This commit is contained in:
johba 2026-03-14 18:06:24 +01:00
commit 833ae45882
2 changed files with 9 additions and 1 deletions

View file

@ -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)

View file

@ -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