[FEAT/CHORE] AI 서버 연동을 위한 RestClient 등 설정 파일 추가#36
Conversation
|
Warning Review limit reached
Next review available in: 47 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough내부 AI 서버 연동을 위한 설정 바인딩, 요청 DTO, 전용 RestClient, 예외 상태 매핑을 추가하고 Jackson 직렬화와 호출 동작을 테스트했습니다. ChangesAI 서버 연동
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant AiServerClient
participant RestClient
participant AI 서버
AiServerClient->>RestClient: AiAnalysisRequest POST
RestClient->>AI 서버: /analyze 호출
AI 서버-->>RestClient: JSON 응답 또는 HTTP 오류
RestClient-->>AiServerClient: JsonNode 반환 또는 GeneralException 변환
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/main/java/com/mr/global/client/ai/AiServerClient.java`:
- Around line 35-37: Update the ResourceAccessException handling in
AiServerClient to traverse the complete cause chain rather than checking only
e.getCause(). Classify any timeout-related cause, including
SocketTimeoutException, HttpTimeoutException, and connect-timeout exceptions, as
AiServerErrorStatus.TIMEOUT; map non-timeout causes to CONNECTION_FAILED.
In `@src/test/java/com/mr/global/config/AiServerPropertiesBindingTest.java`:
- Around line 39-49: Update 이전_ai_server_프리픽스로는_더이상_바인딩되지_않는다 to run with only
the legacy ai.server.base-url property, removing ai.internal.base-url and
related new-prefix values. Assert the resulting baseUrl() is empty or that the
configured validation failure occurs, so the test independently verifies the
legacy prefix is not bound.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: ef6fd935-b920-48c5-a81e-18682b150eda
📒 Files selected for processing (12)
.gitignoreMR_config/local/application.example.ymlsrc/main/java/com/mr/global/apipayload/domain/AiServerErrorStatus.javasrc/main/java/com/mr/global/client/ai/AiAnalysisRequest.javasrc/main/java/com/mr/global/client/ai/AiServerClient.javasrc/main/java/com/mr/global/config/AiServerProperties.javasrc/main/java/com/mr/global/config/AiServerRestClientConfig.javasrc/main/resources/application.example.ymlsrc/main/resources/application.ymlsrc/test/java/com/mr/global/client/ai/AiAnalysisRequestSerializationTest.javasrc/test/java/com/mr/global/client/ai/AiServerClientTest.javasrc/test/java/com/mr/global/config/AiServerPropertiesBindingTest.java
💤 Files with no reviewable changes (1)
- src/main/resources/application.example.yml
kimyw1018
left a comment
There was a problem hiding this comment.
에러처리 세분화 잘 해두신것 같습니다 빠르게 머지하시죠
📍 개요
⛓️💥 관련 이슈
🛠️ 작업 내용
🔥 리뷰 요청 사항
✅ 체크리스트
📎 참고 사항
Summary by CodeRabbit
새 기능
설정
ai.internal기준으로 정리되었습니다.