버그 수정: SUMMARY 줄이 skipped_existing을 converted로 오집계#183
Open
seonghobae wants to merge 1 commit into
Open
Conversation
main()의 실행 요약 줄은 converted 개수를 `len(results) - len(failed)`로 계산해, 이미 존재하는 출력을 재사용한 `skipped_existing` 결과까지 "converted"에 포함시켰다. 재실행 시 실제 변환이 0건이어도 모든 파일이 변환된 것처럼 보고되는 오집계다. converted / skipped_existing / failed_or_too_large를 각 상태별로 분리 집계하도록 수정했다. 종료 코드 로직(실패가 있으면 1)은 변경 없음. failing 테스트를 먼저 추가해 오집계(converted=2)를 증명한 뒤 수정했다. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CJRVbDrp1vGYkJgNHMGPpG
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.
문제
main()의 실행 요약(SUMMARY) 줄은 converted 개수를len(results) - len(failed)로 계산합니다.failed집합은{"converted", "skipped_existing"}을 제외한 상태이므로, 이미 존재하는 유효 출력을 재사용한skipped_existing결과까지 "converted"에 포함되었습니다.결과적으로 도구를 재실행할 때 실제 변환이 0건이어도(모두 기존 출력 재사용) 다음처럼 모든 파일이 방금 변환된 것처럼 보고됩니다.
수정
converted/skipped_existing/failed_or_too_large를 상태별로 분리 집계합니다.return 1 if failed else 0)은 변경하지 않았습니다.write_report)는 이미 안전하여 변경 없음(Path는str()처리,ensure_ascii=False로 비ASCII 파일명 정상 처리, 모든 필드 포함).검증
converted=2)를 증명하는 failing 테스트를 먼저 추가한 뒤 최소 수정으로 통과시켰습니다.media_shrinker.py커버리지 100%, interrogate 100%.os.listxattr5건 제외).🤖 Generated with Claude Code