From 0eab4e4fe9920aa5c40f95252ac4c695130c5c82 Mon Sep 17 00:00:00 2001 From: tayson-jeong Date: Thu, 8 Oct 2026 17:22:26 +0900 Subject: [PATCH] =?UTF-8?q?docs(routine):=20=ED=8C=A9=ED=8A=B8=EC=B2=B4?= =?UTF-8?q?=EC=BB=A4=20STEP=205=20=EC=97=90=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=C2=B7=EB=8C=80=EA=B8=B0=20=EC=A0=88=EC=B0=A8?= =?UTF-8?q?=20=EA=B3=A0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 9로케일 빌드가 샌드박스에서 약 32분 걸리는데 프롬프트에 실행 방식이 없어 에이전트가 날마다 다른 방법을 골랐다. 10-08 에는 run_in_background 로 띄워 10분 timeout 에 kill 되면서(en·ko 만 완료) blog/verified 브랜치가 안 만들어졌다. - setsid nohup 으로 빌드를 도구 작업 추적에서 분리해 시간 제한을 피한다 - 9분 단위 포그라운드 대기 루프로 로그의 "build exit=" 줄을 기다린다 - run_in_background·Monitor 사용 금지, 빌드 중 턴 종료 금지를 명시 - 판정은 로그의 build exit=0 와 Duplicate routes 0건으로만 Co-Authored-By: Claude Fable 5.1 --- BLOG_FACTCHECK_PROMPT.md | 46 ++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/BLOG_FACTCHECK_PROMPT.md b/BLOG_FACTCHECK_PROMPT.md index 201c1747..2cb323fb 100644 --- a/BLOG_FACTCHECK_PROMPT.md +++ b/BLOG_FACTCHECK_PROMPT.md @@ -4,7 +4,7 @@ > **Trigger:** API (Generator 완료 시 자동 호출) > **Model:** Opus 4.8 > **Repositories:** bdrive/rcloneview-support -> **Last Updated:** 2026-07-28 +> **Last Updated:** 2026-10-08 (STEP 5 — 빌드 실행·대기 절차 고정) --- @@ -272,20 +272,48 @@ runs the full chain in order: - postbuild: scripts/prune-locale-static.mjs — removes dead per-locale static copies (keeps the output near ~858MB / ~33k files instead of ballooning) -Run it in the rcloneview-support directory and check the exit code DIRECTLY — -never pipe to tail/head, which masks the real exit code: +HOW TO RUN IT — the full 9-locale build takes about 32 minutes in this +sandbox, longer than any single Bash call may run. Follow this procedure +EXACTLY; do not improvise. - npm run build - echo "build exit=$?" # must be 0 + a. Launch the build DETACHED from the tool's task tracking so no tool time + limit can kill it. Do NOT use the Bash tool's `run_in_background` option + and do NOT use the Monitor tool for the build — a background task is + killed when its timeout (max 10 min) expires; that is how the 2026-10-08 + run lost its build with only en/ko finished. + + cd /home/user/rcloneview-support + rm -f /tmp/build.log + setsid nohup bash -c 'npm run build; echo "build exit=$?"' \ + > /tmp/build.log 2>&1 < /dev/null & + sleep 5; tail -3 /tmp/build.log # prebuild checks must be starting + + b. Wait in the FOREGROUND, at most 9 minutes per Bash call (the foreground + limit is 10 min). Each call blocks until the exit line appears or 9 + minutes pass. Exit code 124 just means "9 minutes elapsed, still + building" — run the same call again. Expect 4–5 rounds. + Do NOT end your turn while the build is running. If the stop hook asks + you to commit, keep waiting — do not commit or push yet. + + timeout 540 bash -c 'until grep -q "^build exit=" /tmp/build.log; do sleep 20; done' + grep -E '^build exit=|Generated static files|Duplicate routes|\[ERROR\]' /tmp/build.log | tail -12 + + Repeat (b) until `build exit=` is present. If 8 rounds (~72 min) pass + without it, report "build did not finish" and stop — do not push. + + c. Judge the result ONLY from the log, never from a pipe's exit code: + + grep -q '^build exit=0' /tmp/build.log && echo BUILD_OK # must print BUILD_OK + grep -c 'Duplicate routes' /tmp/build.log # must be 0 Watch the output and act on these: - prebuild "✘ static/ 에 없는 자산 참조 …" — a post references a missing asset. - Fix the reference (or add the file), then rebuild. Do NOT proceed. + Fix the reference (or add the file), then rebuild from (a). Do NOT proceed. - "[WARNING] Duplicate routes found!" — STEP 4.5 missed a duplicate slug. - Re-run STEP 4.5, then rebuild. -- "[ERROR]" or non-zero exit — report the error and stop. Do not push. + Re-run STEP 4.5, then rebuild from (a). +- "[ERROR]" or `build exit=` other than 0 — report the error and stop. Do not push. -Only proceed once the exit code is 0 with no duplicate-route warnings. +Only proceed once `build exit=0` is in the log with no duplicate-route warnings. 빌드가 통과하면 여기서 끝이다. www 반영은 자동이다 — STEP 6 에서 support 브랜치를 push 하고 그 PR 이 main 에 머지되면,