[chore] prod 배포 v1.0.7 - #206
Merged
Merged
Conversation
* fix: 요약 없는 대화방의 자동 카드 생성 폴백 추가 * docs: 자동 카드 배치 결과 패널 설명 정리
Test Coverage
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (16)
Walkthrough요약이 없는 대화방도 최근 사용자 메시지를 사용해 자동 카드를 생성합니다. 메시지 입력 구간을 중앙화하고 LLM 입력을 4000자로 제한합니다. 폴백 요약은 카드 생성에만 사용하고 대화방에는 저장하지 않습니다. Changes자동 카드 생성 폴백
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant DailyAutoCardScheduler
participant CardService
participant CardMessageWindow
participant PromptProvider
participant CardPersistenceService
DailyAutoCardScheduler->>CardService: nullable summary 전달
CardService->>CardMessageWindow: 최근 사용자 메시지 선택
CardMessageWindow-->>PromptProvider: 최대 4000자 메시지 구간
PromptProvider-->>CardService: 감정 분류 및 카드 문장
CardService->>CardPersistenceService: 카드와 nullable summary 저장
CardPersistenceService-->>CardService: 상태 DONE 처리
Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Your free Security trial is over. An organization admin can activate billing to continue. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
📌 개요
dev 에 쌓인 1건을 prod 로 올린다. 마이그레이션·API 변경 없다.
새벽 배치가
summary가 없다는 이유로 카드 생성을 포기하던 것을 고친다. 요약은 프론트가 두 번째 메시지부터 실어 보내는 값이라 한 줄만 쓰고 나간 방에는 없다. 이제 그런 방은 유저가 보낸 메시지 원문으로 카드를 만든다.1. 다음 배치에서 8명에게 푸시가 나간다
SKIPPED로 굳어 있던 방이 다시 대상이 된다(finishedStatuses에서 제거). 배포 직전 prod 기준으로 복구 대상은 이렇다.마이그레이션 없이 다음 실행(8/24 05:00)에서 카드를 받고
DONE으로 옮겨간다. 알림은 회원당 1회로 묶여 있어 11번이 아니라 8번 나간다.카드 날짜는 8/22 다. 카드는
conversationCreatedAt기준이라 캘린더에서 그날 칸에 꽂힌다. 반면 푸시 문구는오늘의 감정 카드가 도착했어요라, 알림을 받고 앱을 열면 오늘 칸에는 그 카드가 없다. 이번 한 번의 소급 처리에서만 생기는 어긋남이라 이 배포를 막을 이유는 아니지만, 문의가 올 수 있어 적어 둔다.SKIPPED13건 중 나머지 2건은 탈퇴 회원 방이라WITHDRAWN_MEMBER로 빠진다 - 탈퇴한 사람의 대화로는 아무것도 새로 만들지 않는다.2. 대화방 요약(
conversations.summary)은 오염되지 않는다폴백으로 만든 값은 LLM 입력으로만 쓰고 대화방에 남기지 않는다. 그 자리는 다른 채팅방 댓글의 '과거 맥락' 으로 읽히는데 풀이 최근 5개뿐이라, 압축 안 된 원문이 들어가면 정보량 많은 요약을 밀어낸다.
3. 지표에서
NO_SUMMARY가 사라진다AutoCardOutcome.NO_SUMMARY를 제거했다. Grafana 는sum by (outcome)이라 패널은 그대로 뜨고, 그 계열만 더 이상 증가하지 않는다. 알림 규칙은 이 지표를 쓰지 않는다(확인함).CardGenerationStatus.SKIPPED상수는 남겨 뒀다 - prod 에 그 값으로 저장된 행이 13건 있어 먼저 지우면@Enumerated(STRING)매핑이 깨진다. 잔여 행이DONE으로 옮겨간 뒤 별도 PR 로 제거한다.🌐 API · DB 영향
summary는 그대로 필수다(@NotBlank) - nullable 로 연 것은 서버 내부 경로뿐이다✅ 배포 후 확인
앱 기동만 바로 확인하고, 나머지는 8/24 05:00 배치 이후에 본다.
배치 로그(8/24 새벽) -
요약 없음이 사라지고 그만큼생성으로 옮겨가야 한다.DB - 활성 회원의
SKIPPED잔여가 0이 되어야 한다.앱에서 - 8/22 칸에 카드가 새로 꽂혔는지, 그 카드가 대화 내용과 맞는 한 줄인지.
↩️ 되돌리기
앱 이미지만 이전 태그로 되돌리면 된다. DB 는 건드리지 않았다. 다만 되돌리면 그 사이 배치가
SKIPPED를 다시 쓰기 시작한다.📱 앱팀에 알릴 것
Summary by CodeRabbit
새로운 기능
개선 사항