추출 실패 경로의 WARN 소음과 홈 리다이렉트 판별 정리 - #86
Merged
Merged
Conversation
- 정적 fetch: redirect Location 이 사이트 루트면 본문을 받기 전에 끊음
- 원인: 홈 본문을 LLM 에 넘기면 NOT_PRODUCT_PAGE 확정 실패로 닫힘
- 이전: (core item 2219, packnfold) 몰이 302 로 홈을 돌려줘 Gemini 2회 호출 뒤 확정 실패
- 조건: 등록 링크 자체가 루트면 판정하지 않음
- 헤드리스: 루트에 착지한 홉을 LLM 후보에서 제외
- 앞 홉의 구조화 데이터는 그대로 사용
- 루트 홉뿐이면 같은 일시 실패
- 예외는 UPSTREAM_ERROR 재사용
- 대안: 전용 code 신설
- 기각: infra 카탈로그·proto·core 매핑 3 repo 선행 변경 필요
- 비용: escalatable=true 라 정적 fetch 실패 뒤 렌더 1회 낭비
- ProductLink.isSiteRoot 로 판정을 한 곳에 둠
- HttpClient ResponseProcessCookies 로거를 ERROR 로 - 원인: cafe24 몰의 잘못된 Set-Cookie domain 을 거부할 때마다 WARN - 추출 결과와 무관 - 4xx fetch 실패를 INFO 로 - 원인: 없는 상품·비공개 페이지 등록의 정상 실패 - 5xx 는 WARN 유지 - 헤드리스 escalate 실패를 INFO 로 - 원인: 예외로 전파돼 호출자의 파싱 실패 알림이 됨 - 결과: 같은 실패의 알림 2건 해소 - 참조: 전 서비스 WARN 알림 첫날 실수신 3종 (core#1105)
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 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 |
|
Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다. |
- 사이트 루트 판정에 query 없음·fragment 없음 조건 추가
- 원인: path 만 보는 판정이 /?goodsNo=1·/#/goods/1 같은 상품 URL 을 홈 착지로 오판
- 결과: 단축링크가 루트+query 상품 URL 로 보내면 재시도를 다 쓴 뒤 실패. 이 PR 이전에는 성공하던 경로
- 대안: 추적 파라미터(utm_*·fbclid)만 있는 query 는 루트로 인정
- 기각: 코드에 없던 파라미터 목록 정책이 새로 생김. 놓친 경우는 이전 동작(홈 본문을 LLM 에 넘김)으로 돌아갈 뿐
- 루트+query redirect 를 끝까지 따라가는 테스트 추가
- 헤드리스 후보 순회에서 루트 착지 검사를 구조화 추출 앞으로 옮김 - 원인: 홈의 대표 상품 Product JSON-LD 가 등록 상품으로 저장됨 - 결과: 정적 경로가 홈 본문을 받지 않게 된 뒤 루트 redirect 는 전부 이 경로를 탐 - 루트 홉에서도 challenge 신호는 계속 모음 - 원인: 차단 판정이 루트 착지보다 먼저라 최종 실패 code 가 이전과 같게 유지됨 - 테스트 2건 추가: 루트 홉 JSON-LD 채택 없음·루트+query 홉은 정상 후보 - 결과: 수정 전 코드에서 새 테스트 3건 모두 실패 확인
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Situation
첫날 실수신에서 드러난 것
Task
WARN 소음 정리와 홈 리다이렉트 판별
Action
사이트 루트 착지를 일시 실패로 분류
/이고 query·fragment 가 없는 URL/?goodsNo=1·/#/goods/1처럼 루트 URL 로 상품을 싣는 몰이 있음utm_*·fbclid)만 있는 query 는 루트로 인정ProductLink.isSiteRoot,HttpPageFetcher.landsOnSiteRoot,HeadlessProductLinkExtractor,PageFetchException.redirectedToSiteRootUPSTREAM_ERROR재사용 (채택)로그 레벨 조정
ResponseProcessCookiesResult
검증
위험
후속
연관 이슈