🔗 공개 글 목록을 발행 직후 갱신 - #72
Merged
Merged
Conversation
live_posts.json은 blog-cluster(주 1회, 일요일)에서만 갱신됐습니다. 2026-09-18 확인 결과 파일은 9/13자였고, 그 사이 19편이 발행됐습니다. related_posts는 이 목록에 없는 글을 '내려간 글'로 봅니다. 즉 새로 발행한 글일수록 관련 포스트 후보에서 빠지고, 아무도 가리키지 않는 고아가 됩니다. 링크 고아를 줄이려고 만든 필터가 반대로 고아를 만들고 있었습니다. - blog-run.yml 세 잡(blog1/2/3) 모두 발행 뒤 sync_live_posts.py 실행 - live_posts.json을 커밋 목록에 추가 — 동기화만 하고 커밋하지 않으면 러너와 함께 사라집니다 - continue-on-error: 동기화는 부가 작업이라 실패해도 발행을 막지 않습니다 (실패 시 related_posts가 필터를 생략하고 예전처럼 동작) - 테스트 4개 — 세 잡 모두 동기화, 세 잡 모두 커밋, 커밋보다 앞서 실행, 실패가 발행을 막지 않음 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P5dribc2dwVr46xE2L8nMD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
live_posts.json은blog-cluster(주 1회, 일요일)에서만 갱신됐습니다.2026-09-18 확인 결과:
live_posts.json마지막 동기화왜 문제인가
related_posts._load_posts()는 이 목록에 없는 글을 '내려간 글'로 봅니다. PR #68에서 넣은 필터입니다.즉 새로 발행한 글일수록 관련 포스트 후보에서 빠집니다. 아무도 가리키지 않는 고아가 됩니다.
링크 고아를 줄이려고 만든 필터가 반대로 고아를 만들고 있었습니다. 주 1회 주기가 발행 주기(하루 2~3편)를 따라가지 못한 탓입니다.
변경
blog-run.ymlsync_live_posts.py실행docs/data/live_posts.json추가continue-on-error: true동기화만 하고 커밋하지 않으면 러너와 함께 사라집니다. 커밋 목록 추가가 빠지면 아무 효과가 없어서, 테스트로 함께 검증합니다.
continue-on-error는 의도된 설계입니다. 동기화는 부가 작업이고, 실패해도related_posts가 필터를 생략하고 예전처럼 동작합니다 — 발행을 막을 이유가 없습니다.테스트 4개
continue-on-error누락세 번째가 실수하기 쉬운 지점입니다. 스텝 순서는 눈으로 보면 맞는 것 같아도 리팩터링에서 쉽게 뒤집힙니다.
효과
🤖 Generated with Claude Code
https://claude.ai/code/session_01P5dribc2dwVr46xE2L8nMD