Skip to content

[#30] Merge risk report를 conflict 원인과 해결 action 중심으로 축약한다#31

Merged
opficdev merged 8 commits into
developfrom
refactor/#30-report-action
Jun 23, 2026
Merged

[#30] Merge risk report를 conflict 원인과 해결 action 중심으로 축약한다#31
opficdev merged 8 commits into
developfrom
refactor/#30-report-action

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

  • Merge risk report에서 conflict 원인과 해결 action 판단에 직접 필요한 정보 중심으로 출력 내용을 정리
  • Gemini API의 RPM/RPD 사용량을 줄이기 위해 critical branch별 개별 prediction 호출을 report 단위 batch 호출로 전환

📝 작업 내용

📌 요약

  • Markdown report에서 PR metadata 출력 제거
  • AI prediction report 출력 축약
  • risk reason 중복 metadata 출력 축약
  • AI prediction batch 호출 구성
  • README report 출력 정책 갱신

🔍 상세

  • report item의 pull request line 제거
  • author, updated, Low, skipped, Gemini error 요약 출력 유지
  • AI prediction 출력에서 confidence, false positive notes 제거
  • prediction, recommended actions, failed, skipped 출력 유지
  • same_hunk_overlap이 있는 branch에서 중복되는 same_file_overlap의 file, branch metadata 반복 출력 제거
  • critical 대상 branch를 predictionBatch prompt로 묶어 한 번의 AI provider 호출로 처리
  • Gemini structured output schema에 batch response shape 추가
  • batch response를 기존 branch 순서에 맞춰 predicted, failed, skipped 결과로 복원
  • batch 호출 실패 시 deterministic report는 유지하고 선택된 branch만 failed로 격리
  • 기존 60초 inter-call delay 제거
  • README에 batch 호출, report 출력 유지/축약 정책 반영
  • 관련 unit test 갱신

📸 영상 / 이미지 (Optional)

  • 없음

@opficdev opficdev self-assigned this Jun 23, 2026
@opficdev opficdev changed the title Merge risk report를 conflict 원인과 해결 action 중심으로 축약한다 [#30] Merge risk report를 conflict 원인과 해결 action 중심으로 축약한다 Jun 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 풀 리퀘스트는 Gemini API 호출 방식을 개별 순차 실행에서 배치(Batch) 요청으로 전환하여 효율성을 높이고, 마크다운 리포트에서 불필요한 Pull Request 링크와 AI 예측의 신뢰도(confidence) 및 false positive notes를 제외하도록 개선하는 변경 사항을 담고 있습니다. 리뷰를 통해 중복 메타데이터 제거 로직에서 발생할 수 있는 정보 누락 버그, 배치 검증 실패 시 전체 예측이 누락되는 안정성 문제, 그리고 리포트에서 제외되었음에도 프롬프트와 스키마에 남아 토큰을 낭비하는 필드 정리 등 코드의 완성도와 안정성을 높이기 위한 유용한 개선 사항들이 지적되었습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/reports/markdownFormatter.ts
Comment thread src/reports/markdownFormatter.ts Outdated
Comment thread src/ai/predictionResponseValidator.ts
Comment thread src/ai/promptTemplates.ts
@opficdev opficdev merged commit c72b53f into develop Jun 23, 2026
3 checks passed
@opficdev opficdev deleted the refactor/#30-report-action branch June 23, 2026 14:36
@opficdev opficdev restored the refactor/#30-report-action branch June 23, 2026 15:51
@opficdev opficdev deleted the refactor/#30-report-action branch June 23, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge risk report를 conflict 원인과 해결 action 중심으로 축약한다

1 participant