docs: CI 폴링 패턴 무한 루프 버그 정정 #65
No reviewers
Labels
No labels
api
bug
chore
collector
decision-needed
docs
enhancement
feature
feedback-loop
frontend
infra
skill
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xhh/financial-data-platform!65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/ci-polling-pattern-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
요약
기존 패턴은 첫 줄이
N tasks헤더라head -1로는 grep 매칭이 안 됨 → background 로 띄우면 CI 가 끝나도 종료 신호를 못 받고 매달림. PR #62 / #64 작업 중 두 건의 background polling 이 매달려 있던 것을 사용자가 탐지.변경
until fj actions tasks | head -1 | grep -qE "success|failure"; do sleep 20; doneuntil fj actions tasks 2>/dev/null | sed -n '2p' | grep -qE "success|failure|cancelled"; do sleep 20; donefj actions tasks출력 구조도 1줄 헤더 + 2줄부터 task 임을 명시하는 한 문장으로 보강.글로벌 동기화
같은 정정을 글로벌
~/.claude/CLAUDE.md의 Git 작업 규칙 섹션에도 반영 (이 PR 외 작업).Test plan
fj actions tasks실제 출력 첫 두 줄 확인기존 패턴 `until fj actions tasks | head -1 | grep -qE "success|failure"` 은 첫 줄이 `N tasks` 헤더라 매칭이 절대 안 됨. background 로 띄우면 CI 가 끝나도 종료 신호를 못 받고 매달림. 올바른 패턴: 두 번째 줄을 본다. until fj actions tasks 2>/dev/null | sed -n '2p' \ | grep -qE "success|failure|cancelled"; do sleep 20; done PR #62 / #64 작업 중 두 건의 background polling 이 매달려 있던 것을 사용자가 탐지해 정정. 글로벌 CLAUDE.md 의 Git 작업 규칙 섹션에도 같은 정정 반영. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>