๐ ๊ณ ์น ๋ฒ๊ทธ๊ฐ ์ฌ๋ณธ 3๊ฐ์ ๋จ์ ์๋ ๋ฌธ์ + ์กฐ์ฉํ ์คํจ ๋๋ฌ๋ด๊ธฐ - #54
Merged
Conversation
๋ชจ๋๋ณ ์ฝ๋ ์ ๊ฒ์์ ๋์์ต๋๋ค. 1) ๊ฐ์ ๋ฒ๊ทธ๊ฐ ์ธ ๋ชจ๋์ ๊ทธ๋๋ก ๋จ์ ์์์ต๋๋ค โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ _iter_posts๊ฐ ๋ค ๋ชจ๋์ ๋ณต์ฌ๋ผ ์์์ต๋๋ค. 2026-08-25์ "๋ชฉ๋ก์ด ์กฐ์ฉํ ์๋ ค '๋ค ์ฒ๋ฆฌํ๋ค'๋ฅผ ์ ์ ์๋ ๋ฌธ์ "๋ฅผ ๊ณ ์ณค๋๋ฐ, ์์ ์ด fix_unlicensed_images ํ ๊ณณ์๋ง ๋ค์ด๊ฐ์ต๋๋ค. fix_unlicensed_images 45์ค ์ฌ์๋ O ListingTruncated O fix_dead_links 18์ค ์ฌ์๋ X ListingTruncated X fix_duplicate_images 25์ค ์ฌ์๋ X ListingTruncated X fix_duplicate_toc 25์ค ์ฌ์๋ X ListingTruncated X ์ ๋ค ๋น200์ ๋ก๊ทธ๋ง ๋จ๊ธฐ๊ณ returnํฉ๋๋ค โ ์ ๋๋ ์ดํฐ๊ฐ ๋๋๋ฏ๋ก ํธ์ถ๋ถ์๋ "๊ทธ ๋ธ๋ก๊ทธ์ ๊ธ์ด ์ด๋งํผ๋ฟ"์ผ๋ก ๋ณด์ด๊ณ ๋๊ตฌ๋ ์ ๋ฐ๋ง ํ๊ณ ์ฑ๊ณตํฉ๋๋ค. fix_duplicate_images๋ ์ด๋ฒ ์ธ์ ์ ์ฌ๋ฌ ๋ฒ ๋๋ฆฐ ๋๊ตฌ์ด๊ณ , ๊ทธ๋ "440ํธ ์ค์บ"์ด๋ผ๋ ์ซ์๋ฅผ ๊ทผ๊ฑฐ๋ก ์๋ฃ๋ฅผ ํ์ ํ์ต๋๋ค. blogger_posts.py๋ก ํ ๋ฒ๋ง ๋๊ณ ๋ท์ด ์์ํฉ๋๋ค (111์ค โ 23์ค). fix_unlicensed_images๋ ๊ธฐ์กด import ๊ฒฝ๋ก๊ฐ ์ด์ ์๋๋ก re-exportํฉ๋๋ค. 2) Pillow๊ฐ ์ ์ธ๋์ง ์์ ์ ์ด ์์กด์ฑ์ด์์ต๋๋ค โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ requirements.txt์ ์๋๋ฐ ๋ค๋ฅธ ํจํค์ง์ ๋ธ๋ ค ์ค์น๋ผ ๋์ ์ค์ ๋๋ค (์คํ ๋ก๊ทธ์์ pillow-12.3.0 ์ค์น์ "์ง๋ฌธ ๊ณ์ฐ ์๋ฃ: 173/248๊ฐ ์ฑ๊ณต" ํ์ธ). ์์ ํจํค์ง๊ฐ Pillow๋ฅผ ๋ผ๋ฉด `except ImportError: return None`์ผ๋ก ๋น ์ ธ dHash๊ฐ ๊บผ์ง๊ณ URL ๋น๊ต๋ง ๋จ๋๋ฐ, ์ํฌํ๋ก๋ ๊ทธ๋๋ก ์ฑ๊ณตํฉ๋๋ค. ๋ช ์์ ์ผ๋ก ์ ์ธํฉ๋๋ค. 3) ์ค๋ฅ๋ฅผ ๋น ๊ฐ์ผ๋ก ๋ฐ๊ฟ "ํ ์ผ ์์"์ฒ๋ผ ๋ณด์ด๋ ์๋ฆฌ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๊ด๋ฒ์ except 62๊ฑด ์ค ๋๋ถ๋ถ์ ํ๋นํ ๊ธฐ๋ณธ๊ฐ์ด๋ผ ๊ทธ๋๋ก ๋๊ณ , ์คํจ๊ฐ ๊ณง "๋์ 0๊ฑด"์ผ๋ก ์ฝํ๋ ๊ฒ๋ง ๊ณจ๋์ต๋๋ค. - comment_manager._queue_comment: ๊ฐ์ฅ ์ฌ๊ฐ. ํ์ฑ ์คํจ ์ pending = []๋ก ๋๊ณ ๊ทธ๋๋ก ๋ฎ์ด์จ, ํ์ ์์ธ ๋๊ธ ์ต๋ 200๊ฑด์ด ์ฌ๋ผ์ง๋๋ค. ์์ ํ์ผ์ .corrupt.json์ผ๋ก ๋จ๊ธฐ๊ณ ๋ก๊ทธ๋ฅผ ์ฐ์ต๋๋ค. - comment_manager._load_published_posts: registry ์ฝ๊ธฐ ์คํจ โ [] โ ๋๊ธ ์๋ํ๊ฐ ์๋ฌด๊ฒ๋ ์ ํ๋ฉด์ ์ฑ๊ณต. ๋ก๊ทธ ์ถ๊ฐ. - post_lifecycle: GSC ์กฐํ ์คํจ โ [] โ ์ฑ๊ณผ 0์ผ๋ก ์ง๊ณ. ๊ทธ ์ซ์๋ก ๊ธ์ ์ง์ฐ๊ฑฐ๋ ์์๋ฅผ ๋งค๊ธฐ๋ฏ๋ก ์คํจ์ "๋ ธ์ถ ์์"์ด ๊ตฌ๋ถ๋ผ์ผ ํฉ๋๋ค. - manage_post: pending ์ฝ๊ธฐ ์คํจ ๋ก๊ทธ ์ถ๊ฐ. ๊ฒ์ฆ โโโโ ๊ฐ๋ 2์ข ์ ๋ถ์๊ณ ๋ ๋ค ๋๋๋ ค ๋ฃ์ด ์ค์ ๋ก ์คํจํ๋ ๊ฒ์ ํ์ธํ์ต๋๋ค. - ์ฌ๋ณธ์ ๋์ด๋ฆฌ์ test_tools_delegate_instead_of_copying๊ณผ test_no_silent_truncation_in_tools๊ฐ ์คํจ - ๋ฐฑ์ ์์ด ๋ฎ์ด์ฐ๊ฒ ๋๋๋ฆฌ์ test_pending_comment_queue_is_not_silently_wiped์ ํด๋น ํธ๋ค๋ฌ ๋ก๊ทธ ๊ฒ์ฌ๊ฐ ์คํจ ๋ณต์ ํ 17๊ฑด ์ ๋ถ ํต๊ณผ. ์ ๊ฒ ์ค ์ ์์ฌ ํ๋๋ ํ๋ ธ์ต๋๋ค. Pillow๊ฐ requirements์ ์๋ ๊ฒ์ ๋ณด๊ณ dHash๊ฐ CI์์ ๊บผ์ ธ ์์ ๊ฒ์ด๋ผ ์์ฌํ๋๋ฐ, ์คํ ๋ก๊ทธ๋ฅผ ํ์ธํ๋ ์ค์น๋ผ ์์๊ณ ์ ์ ์๋ ์ค์ด์์ต๋๋ค. ๋ก๊ทธ๋ฅผ ๋ณด๊ธฐ ์ ์ ๋ณด๊ณ ํ๋ค๋ฉด ์๋ ๊ฒฐํจ์ ๋ง๋ค ๋ปํ์ต๋๋ค. 1188 passed, 2 skipped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RgLYqM9puPW1aqHTccbX69
Kevinlee7250
marked this pull request as ready for review
August 28, 2026 15:00
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
๋ชจ๋๋ณ ์ฝ๋ ์ ๊ฒ์์ ๋์จ 3๊ฑด์ ๋๋ค.
โ ๊ฐ์ ๋ฒ๊ทธ๊ฐ ์ธ ๋ชจ๋์ ๊ทธ๋๋ก ๋จ์ ์์์ต๋๋ค
_iter_posts๊ฐ ๋ค ๋ชจ๋์ ๋ณต์ฌ๋ผ ์์์ต๋๋ค. 8/25์ **"๋ชฉ๋ก์ด ์กฐ์ฉํ ์๋ ค '๋ค ์ฒ๋ฆฌํ๋ค'๋ฅผ ์ ์ ์๋ ๋ฌธ์ "**๋ฅผ ๊ณ ์ณค๋๋ฐ, ์์ ์ด ํ ๊ณณ์๋ง ๋ค์ด๊ฐ์ต๋๋ค.ListingTruncatedfix_unlicensed_imagesfix_dead_linksfix_duplicate_imagesfix_duplicate_toc์ ๋ค ๋น200์ ๋ก๊ทธ๋ง ๋จ๊ธฐ๊ณ
returnํฉ๋๋ค โ ์ ๋๋ ์ดํฐ๊ฐ ๋๋๋ฏ๋ก ํธ์ถ๋ถ์๋ "๊ทธ ๋ธ๋ก๊ทธ์ ๊ธ์ด ์ด๋งํผ๋ฟ"์ผ๋ก ๋ณด์ด๊ณ , ๋๊ตฌ๋ ์ ๋ฐ๋ง ํ๊ณ ์ฑ๊ณตํฉ๋๋ค.fix_duplicate_images๋ ์ด๋ฒ ์ธ์ ์ ์ฌ๋ฌ ๋ฒ ๋๋ฆฐ ๋๊ตฌ์ด๊ณ , ๊ทธ๋ "440ํธ ์ค์บ"์ด๋ผ๋ ์ซ์๋ฅผ ๊ทผ๊ฑฐ๋ก ์๋ฃ๋ฅผ ํ์ ํ์ต๋๋ค.โ
blogger_posts.py๋ก ํ ๋ฒ๋ง ๋๊ณ ๋ท์ด ์์ํฉ๋๋ค (111์ค โ 23์ค).fix_unlicensed_images๋ ๊ธฐ์กด import ๊ฒฝ๋ก๊ฐ ์ด์ ์๋๋ก re-exportํฉ๋๋ค.โก Pillow๊ฐ ์ ์ธ๋์ง ์์ ์ ์ด ์์กด์ฑ
requirements.txt์ ์๋๋ฐ ๋ค๋ฅธ ํจํค์ง์ ๋ธ๋ ค ์ค์น๋ผ ๋์ ์ค์ ๋๋ค. ์์ ํจํค์ง๊ฐ Pillow๋ฅผ ๋ผ๋ฉดexcept ImportError: return None์ผ๋ก ๋น ์ ธ dHash๊ฐ ๊บผ์ง๊ณ URL ๋น๊ต๋ง ๋จ๋๋ฐ, ์ํฌํ๋ก๋ ๊ทธ๋๋ก ์ฑ๊ณตํฉ๋๋ค. ๋ช ์์ ์ผ๋ก ์ ์ธํฉ๋๋ค.โข ์ค๋ฅ๋ฅผ ๋น ๊ฐ์ผ๋ก ๋ฐ๊ฟ "ํ ์ผ ์์"์ฒ๋ผ ๋ณด์ด๋ ์๋ฆฌ
๊ด๋ฒ์
except62๊ฑด ์ค ๋๋ถ๋ถ์ ํ๋นํ ๊ธฐ๋ณธ๊ฐ์ด๋ผ ๊ทธ๋๋ก ๋๊ณ , ์คํจ๊ฐ ๊ณง "๋์ 0๊ฑด"์ผ๋ก ์ฝํ๋ ๊ฒ๋ง ๊ณจ๋์ต๋๋ค.comment_manager._queue_commentpending = []๋ก ๋๊ณ ๊ทธ๋๋ก ๋ฎ์ด์จ ํ์ ์์ธ ๋๊ธ ์ต๋ 200๊ฑด์ด ์์ค. ์์ ํ์ผ์.corrupt.json์ผ๋ก ๋จ๊ธฐ๊ณ ๋ก๊ทธcomment_manager._load_published_posts[]โ ๋๊ธ ์๋ํ๊ฐ ์๋ฌด๊ฒ๋ ์ ํ๋ฉด์ ์ฑ๊ณตpost_lifecycle(GSC ์ง์)[]โ ์ฑ๊ณผ 0์ผ๋ก ์ง๊ณ. ๊ทธ ์ซ์๋ก ๊ธ์ ์ง์ฐ๊ฑฐ๋ ์์๋ฅผ ๋งค๊ธฐ๋ฏ๋ก ์คํจ์ "๋ ธ์ถ ์์"์ด ๊ตฌ๋ถ๋ผ์ผ ํจmanage_post๊ฒ์ฆ
๊ฐ๋ 2์ข ์ ๋ถ์๊ณ ๋ ๋ค ๋๋๋ ค ๋ฃ์ด ์ค์ ๋ก ์คํจํ๋ ๊ฒ์ ํ์ธํ์ต๋๋ค.
test_tools_delegate_instead_of_copying,test_no_silent_truncation_in_tools์คํจtest_pending_comment_queue_is_not_silently_wiped+ ํธ๋ค๋ฌ ๋ก๊ทธ ๊ฒ์ฌ ์คํจ1188 passed, 2 skipped(์ ๊ท 17๊ฑด)์ ๊ฒ ์ค ์ ์คํ
Pillow๊ฐ
requirements.txt์ ์๋ ๊ฒ์ ๋ณด๊ณ dHash๊ฐ CI์์ ๊บผ์ ธ ์์ ๊ฒ์ด๋ผ ์์ฌํด ์คํ ๋ก๊ทธ๋ฅผ ํ์ธํ์ต๋๋ค. ํ๋ ธ์ต๋๋ค โpillow-12.3.0์ค์น์์ง๋ฌธ ๊ณ์ฐ ์๋ฃ: 173/248๊ฐ ์ฑ๊ณต์ด ์ฐํ ์์๊ณ ์ ์ ์๋ ์ค์ด์์ต๋๋ค. ๋ก๊ทธ๋ฅผ ๋ณด๊ธฐ ์ ์ ๋ณด๊ณ ํ๋ค๋ฉด ์๋ ๊ฒฐํจ์ ๋ง๋ค ๋ปํ์ต๋๋ค.Generated by Claude Code