run-eval.sh ⑥ 무응답 자동 재시도·sh 실행 대응, ⑦ contracts.jsonl ts 삭제, 자료 위치 문서 추가
- run-eval.sh: ⑥ bench.py 가 TimeoutError 로 멈추면 운용 로그를 되돌리고 1회 재실행, 판정 기록에 `재시도` 표시 (bench.py 무변경) - run-eval.sh: `sh run-eval.sh`(dash)로 불러도 bash 로 다시 실행 - eval/07_data_count/data/contracts.jsonl: ts 필드 삭제 (10,272줄, 나머지 내용 동일 · 재집계 result.json 동일) - eval/자료_위치.md: 지표별 최종 결과·사용 모델·테스트 데이터 위치 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018nTzDQLR2WxeeK96SZEs4g
This commit is contained in:
1 parent
5789bfca64
commit
6dc276ff60
3 files changed
+10471
-10276
No files matched your search
+24
-4
@@ -12,6 +12,8 @@
|
||||
# 결과·로그는 호스트 logs/verify/<실행ID>/ 로 가져오고, 판정은 logs/verify/판정_누적.tsv 에 쌓는다.
|
||||
#
|
||||
# 정본 재측정(정본을 덮어쓰는 실행)은 이 실행기로 하지 않는다 — eval/<지표>/provenance.md 의 명령으로.
|
||||
# bash 전용 — `sh run-eval.sh` 로 부르면(Ubuntu sh = dash) bash 로 다시 실행한다. 이 줄은 POSIX 문법이어야 한다
|
||||
[ -n "${BASH_VERSION:-}" ] || exec bash "$0" "$@"
|
||||
set -uo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
REPO=$(pwd)
|
||||
@@ -255,15 +257,28 @@ confirm_long() { # confirm_long <분>
|
||||
|
||||
# ---- 한 항목 검증 ---------------------------------------------------------
|
||||
run_metric() { # run_metric <번호> <개수>
|
||||
local n=$1 c=$2 d w start t
|
||||
local n=$1 c=$2 d w start t try out rc
|
||||
d=$(dir_of "$n")
|
||||
case "$n" in
|
||||
1) V "$d" run_split.py --dir 검증 --n "$c" ;;
|
||||
2) V "$d" extract_file.py ;;
|
||||
3) V "$d" negotiation.py --model gpt-4o --n "$c" --dir 검증 ;;
|
||||
6) w=$(( c / 20 )) # 정본 1,000건 · 워밍업 50 과 같은 비율
|
||||
start=$(TZ=Asia/Seoul date +%Y-%m-%dT%H:%M:%S) # 서버 로그 ts 가 KST 문자열이다
|
||||
V "$d" bench.py --profile heavy --n "$c" --warmup "$w" --vus 10 || return $?
|
||||
for try in 1 2; do
|
||||
start=$(TZ=Asia/Seoul date +%Y-%m-%dT%H:%M:%S) # 서버 로그 ts 가 KST 문자열이다
|
||||
out=$(V "$d" bench.py --profile heavy --n "$c" --warmup "$w" --vus 10 2>&1); rc=$?
|
||||
printf '%s\n' "$out"
|
||||
[ "$rc" = 0 ] && break
|
||||
# 간헐적으로 요청 1~2건이 서버 앱에 닿지 않아 bench.py 가 60초 뒤 통째로 멈춘다
|
||||
# (원인 미확정 — 2026-09-15 같은 요청 5,000건 재현 시험은 실패 0). 무응답일 때만 한 번 다시 돈다.
|
||||
# 첫 시도가 운용 로그에 남긴 줄은 지우고, 집계는 새 시작 시각부터 한다. bench.py(측정 코드)는 그대로 둔다.
|
||||
if [ "$try" = 1 ] && printf '%s' "$out" | grep -q 'TimeoutError'; then
|
||||
printf '[재시도] 요청 무응답(timed out) — 운용 로그를 되돌리고 한 번 다시 실행합니다\n'
|
||||
oplog_restore; oplog_save # 파이프 서브셸이라 부모의 원복 기준(실행 전 크기)은 그대로 남는다
|
||||
continue
|
||||
fi
|
||||
return "$rc"
|
||||
done
|
||||
V "$d" aggregate.py --log /app/data/response_time.jsonl --since "$start" --warmup "$w" --label 검증 ;;
|
||||
7) t=10000; [ "$c" -lt 10000 ] && t=$c # 축소 검증은 고른 건수가 빠짐없이 모이는지 본다
|
||||
V "$d" collect.py --opponent profiled --prefix "VERIFY${ID//_/}" --limit "$c" \
|
||||
@@ -391,11 +406,16 @@ execute() { # execute <번호> <개수>
|
||||
printf ' 결과 %s%s%s — 로그 끝부분:\n' "$col" "$verdict" "$C_0"
|
||||
tail -8 "$LOG" | sed 's/^/ /'
|
||||
fi
|
||||
local retry=""
|
||||
if grep -q '^\[재시도\]' "$LOG"; then # ⑥ 무응답 재실행 — 판정 기록에도 남긴다
|
||||
retry="·재시도"
|
||||
warn " ※ 첫 시도가 요청 무응답(timed out)으로 멈춰 한 번 다시 실행한 결과입니다 (첫 시도 출력은 run.log)"
|
||||
fi
|
||||
oplog_note
|
||||
[ -n "$OPLOG_MSG" ] && printf '운용 로그 원복: %s\n' "$OPLOG_MSG" >> "$LOG"
|
||||
say "${C_D} 로그 $LOG${C_0}"
|
||||
|
||||
line=$(printf '%s\t%s\t%s\t%s\t%s\t%s\t%s' "$(name_of "$n")" "$c($scale)" "$nn" "$val$unit" "$tgt$unit" "$base" "$verdict")
|
||||
line=$(printf '%s\t%s\t%s\t%s\t%s\t%s\t%s' "$(name_of "$n")" "$c($scale$retry)" "$nn" "$val$unit" "$tgt$unit" "$base" "$verdict")
|
||||
printf '%s\t%s\n' "$ID" "$line" >> "$VERIFY_ROOT/판정_누적.tsv"
|
||||
printf '%s\n' "$line" > "$OUT/판정.tsv"
|
||||
RESULTS+=("$line")
|
||||
|
||||
Reference in new issue
Block a user