fix: 테스트의 운영 추적 파일(reports/) 오염 일괄 차단 — #419 스택 - #420
Merged
Conversation
백업 오염(#419)과 동형의 경로 둘을 추가 적발·차단: 1) reports/sector_map_cache.json — git 추적되는 운영 캐시(상관관계 리스크 체크가 소비)인데, 개별 테스트가 SECTOR_MAP_CACHE_PATH monkeypatch를 잊으면 테스트 데이터가 운영 캐시를 덮어썼다(매 스위트 실행 후 working tree dirty로 관찰되던 원인). conftest autouse fixture로 전 테스트 일괄 임시 경로 강제 — 개별 테스트의 기억에 의존하지 않는다. 2) reports/full_paper_lifecycle_test.json — test_paper_lifecycle이 추적 파일을 매 실행 덮어씀. 산출물은 tmp_path로, 추적 파일은 과거 검증 증빙으로 보존. 검증: 전체 1493 passed 후 git status에서 reports/ 오염 0 확인(이전엔 매번 M 2건). 백업 가드(#419 스택) 동작으로 운영 백업도 무손상(바스켓 거래 9건 유지).
easygap
added a commit
that referenced
this pull request
Jul 6, 2026
fix: 테스트의 운영 추적 파일(reports/) 오염 일괄 차단 — #419 스택
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.
배경 (#419 후속 — 같은 렌즈의 추가 적발)
백업 오염과 동형의 오염 경로 둘을 더 찾았다. 매 스위트 실행 후 working tree에
M reports/...2건이 떴던 것이 증상이었다(그동안 수동 복원으로 가려짐).reports/sector_map_cache.json— git 추적되는 운영 캐시(상관관계 리스크 체크가 소비). 개별 테스트가 monkeypatch를 잊으면 테스트 데이터가 운영 캐시를 덮어씀 → conftest autouse로 전 테스트 일괄 임시 경로 강제(개별 테스트의 기억에 의존하지 않음)reports/full_paper_lifecycle_test.json— lifecycle 테스트가 추적 파일을 매 실행 덮어씀 → 산출물 tmp_path화, 추적 파일은 과거 증빙으로 보존검증
전체 1493 passed 후
git status오염 0(이전엔 매번 2건). #419 가드 동작으로 운영 백업 무손상(바스켓 거래 9건 유지) 동시 확인.