Repository navigation
fix: 외부 세션 및 요청 제한 자동 복구 보강 - #318
Merged
Merged
Conversation
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.
세븐일레븐의 Mac HTTP 조회는 원본 403으로 거절됐지만, 공식 페이지를 정상 브라우저로 연 뒤 HTTP 조회가 복구됐습니다. 원본 403일 때만 전용 헤드리스 브라우저로 공개 웹 세션을 준비하고 회수를 확인한 뒤 HTTP를 한 번 재시도합니다. 일반 HTTP가 정상일 때는 브라우저를 시작하지 않으며, 계정 로그인이나 개인 프로필을 사용하지 않습니다. 쿠키 필요 여부 자체는 미확정이므로 공개 웹 준비를 통한 복구로 기록했습니다.
올리브영은 원본 429를 일반 502 및 자체 한도와 구분하고 Retry-After의 초·HTTP-date를 전달합니다. 작업별 대기 동안 대기열과 신규 요청의 원본 호출을 막으며, fresh 실패는 그대로 유지합니다. Health CI는 명시적인 올리브영 원본 429의 짧은 대기시간이 확인된 경우에만 해당 검사 하나를 한 번 재확인하고 최초 실패를 보존합니다.
검증: 전체 4,096개 테스트, check/build, 커버리지 네 항목 100%, 별도 코드 리뷰. 실제 헤드리스 공개 세션 준비 후 브라우저 회수와 HTTP 상품 조회 200 확인. 세션 경로·쿠키 범위·동시 준비·유한 재시도·호출 원장·원본 429와 자체 제한·만료 및 HTTP-date 회귀 포함. 실패·미확인 재고를 정상이나 품절로 바꾸지 않습니다.