feat: add local analysis orchestration#47
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (6)
📒 Files selected for processing (26)
Cache: Disabled due to Reviews > Disable Cache setting Disabled knowledge base sources:
📝 WalkthroughSummary by CodeRabbit
Walkthrough데스크탑에 분석 작업 오케스트레이션을 추가: Tauri IPC 명령(start_analysis_job, get_analysis_job_status), Rust 백엔드의 비동기 작업 스토어와 Python 서브프로세스 브리지, 프론트엔드 폴링/렌더링, 공유 타입·검증·테스트 및 문서가 포함됩니다. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant React as React App
participant TauriJS as Tauri JS Bridge
participant RustBack as Rust Backend
participant PySubproc as Python Subprocess
participant JobState as In-Memory Job Store
User->>React: 분석 시작 클릭
React->>TauriJS: invoke start_analysis_job(request)
TauriJS->>RustBack: IPC start_analysis_job
RustBack->>JobState: job_id 생성 및 상태=queued 저장
RustBack-->>TauriJS: queued 상태 반환
TauriJS-->>React: queued 상태 전달
rect rgba(200,150,100,0.5)
RustBack->>RustBack: 워커 스레드 시작, 상태=running
RustBack->>PySubproc: payload를 stdin으로 전달
PySubproc->>PySubproc: 분석 실행
PySubproc-->>RustBack: 결과를 stdout으로 반환
RustBack->>JobState: 상태=succeeded, result 저장
end
loop 폴링
React->>TauriJS: invoke get_analysis_job_status(job_id)
TauriJS->>RustBack: IPC get_analysis_job_status
RustBack->>JobState: 상태 조회
RustBack-->>TauriJS: AnalysisJobStatus 반환
TauriJS-->>React: 상태 업데이트 전달
end
React->>React: 결과 렌더링
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45분 Possibly related PRs
시
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
@coderabbitai full review |
|
@coderabbitai resume |
✅ Actions performedFull review triggered. |
|
Superseded by #48 to clear the remaining stale CodeRabbit pending state after all checks passed and no actionable review remained. |
Pull request was closed
✅ Actions performedReviews resumed. |
✅ Actions performedFull review triggered. |
✅ Actions performedReviews resumed. |
Summary
Verification
./scripts/harness/quickcheck.shcargo check --manifest-path apps/desktop/src-tauri/Cargo.toml