Codex automated review pipeline#5
Conversation
자동 PR 코드 리뷰
검증 결과
이번 PR 영향 가능 항목이번 PR 변경 파일에서 직접 발생한 것으로 보이는 항목은 없습니다. 기존 실패로 추정되는 항목P1 빌드 실패
./src/app/(with-sidebar)/problems/components/problem-add/TagSection.tsx:83:31 81 | 82 | {selectedTags.length > 0 ? (
Creating an optimized production build ...
P1 테스트 실패
P1 TypeScript 타입 검사 실패
P2 Lint 실패
src/app/(with-sidebar)/mypage/components/BarChart/view.tsx:34:7 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━ ! This variable CustomColorLabel is unused.
[output truncated]
경고
|
- Updated GitHub Actions workflows to change artifact paths from `review-output/` to `tools/code-review/output/`. - Added `.gitignore` entry for the new output directory. - Modified `package.json` to point the review script to the new location of `review-harness.ts`. - Introduced a new `README.md` for the code review harness detailing its flow, review criteria, required secrets, and workflows. - Created various agent files for specific review types: architecture, bug, performance, report quality, security, and test reviewers. - Implemented the main review harness in `review-harness.ts` to handle the review process, including running checks and interacting with OpenAI's API. - Added integration files for GitHub comments and Notion export.
개요
LLM 연동을 지원하는 PR 기반 자동 코드 리뷰 파이프라인을 구축했습니다.
개인 프로젝트에서 코드 품질, 구조 개선점, 테스트 누락 여부를 수동으로 점검하기 어려운 문제를 해결하기 위해
AGENTS.md와review-agents프롬프트를 기반으로 변경 diff를 자동 분석하는 리뷰 하네스를 추가했습니다.주요 변경 사항
bun run review명령으로 실행 가능한 리뷰 하네스 추가AGENTS.md에 주요 리뷰 기준 명시현재 동작 방식
현재는 과금 방지를 위해
OPENAI_API_KEY를 설정하지 않은 상태에서도 파이프라인이 동작하도록 구성했습니다.OPENAI_API_KEY를 GitHub Secrets에 등록하면 LLM 기반 리뷰까지 활성화할 수 있습니다.검증 결과
GitHub Actions에서 자동 리뷰 workflow가 실행되었고, PR 댓글이 정상적으로 생성되었습니다.
현재 댓글에 표시된 실패 항목은 파이프라인 자체 오류라기보다 기존 코드의 lint/typecheck/test/build 실패를 하네스가 감지한 결과입니다.