feat: 네이버 플레이스 크롤링 안정성, 성능 개선 - #160
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
🧪 소형(단위) 테스트 결과119 tests 119 ✅ 2s ⏱️ Results for commit 16b57da. |
🚀 중형(통합) 테스트 결과9 tests 9 ✅ 0s ⏱️ Results for commit 16b57da. |
개요
이번 변경은 크게 네이버 식당 갱신 크롤 과정 개선과 테스트 실행 체계 표준화 두 부분으로 구성됩니다.
1. 네이버 식당 갱신 크롤 과정 개선
기존 로직
개선 로직
window.__APOLLO_STATE__캐시를 먼저 파싱해 이름, 주소, 전화번호, 좌표, 이미지, 메뉴 등을 추출합니다.CAPTCHA_REQUIRED상태로 전환하고, 완료된 그리드와 발견한 placeId를 체크포인트로 보존합니다. 이후 사용자가 어드민 화면의실패 그리드부터 재시도버튼을 눌러 새 브라우저 세션에서 멈춘 그리드부터 직접 재개할 수 있도록 했습니다.속도 비교
비교 조건은 다음과 같습니다.
2. 테스트 실행 체계 표준화
소형·중형 테스트 구분은 유지하되, Gradle·IntelliJ·GitHub Actions가 같은 태스크와 결과 경로를 사용하도록 실행 구조를 정리했습니다.
기존 구조
test태스크가 비활성화되어 있었습니다.smallTest태스크로 다시 정의했고, 중형 테스트 source set과 실행 태스크 이름도middleTest로 달랐습니다.개선 구조
test태스크를 그대로 사용합니다.integrationTestsource set과 동일한 이름의integrationTest태스크로 실행합니다.check실행 시 소형 테스트 후 중형 테스트가 이어서 실행되도록 연결했습니다.smallTest,middleTest별칭 태스크는 제거했습니다.:server:kustaurant:test,:server:kustaurant:integrationTest를 실행하고 각각의 표준 XML 결과 경로를 게시하도록 수정했습니다.PR 유형
어떤 변경 사항이 있나요?