[refactor/#380] Post embedding projection 책임 정리#391
Merged
Conversation
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.
❤️ 기능 설명
Post embedding pipeline의 책임을 projection 생성/조회/저장 관점으로 정리하고, 관련 회귀를 빠르게 잡을 수 있도록 테스트를 보강했습니다.
PostEmbeddingProcessorTest추가PostDocument필드 매핑PostEmbeddingReaderTest추가PostEmbeddingReaderDataJpaTest추가ready for embeddingquery contract 검증null,"", whitespace-only summary 제외embeddedAt != null제외PostEmbeddingWriterTest추가embeddedAt갱신PostEmbeddingReader를@StepScope+ItemStreamReader로 정리해 반복 실행 시 iterator 상태가 새 step execution마다 초기화되도록 보강PostRepository.findReadyForEmbedding()를TRIM(summary)기준으로 맞춰 Reader/Processor의 blank summary 계약을 일치시킴테스트
./gradlew test --rerun-tasks \ --tests com.techfork.domain.post.batch.PostEmbeddingProcessorTest \ --tests com.techfork.domain.post.batch.PostEmbeddingReaderTest \ --tests com.techfork.domain.post.batch.PostEmbeddingReaderDataJpaTest \ --tests com.techfork.domain.post.batch.PostEmbeddingWriterTest연결된 issue
close #380
✅ 체크리스트