Repository navigation
fix(diff): Git 비교 스냅샷 격리와 실패 정리 (DEV-145) - #16
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Owner
Author
|
리뷰 보강: 정리 검사는 이 테스트 호출이 생성한 scratch만 추적하여 병렬 테스트의 임시 경로 변화에 영향받지 않게 했습니다. 비교용 DB 중 첫 close가 예외를 내도 나머지 DB close와 scratch 삭제를 수행하는 회귀를 추가했습니다. 전체99개 테스트·타입·빌드 통과, 새 CI 확인 후 병합합니다. |
Owner
Author
|
마지막 리뷰도 반영했습니다. scratch 이름 검사는 node:path의 basename으로 처리해 구분자에 의존하지 않도록 했습니다. 전체99개 테스트·타입·빌드 재통과. Windows 실제 실행은 하지 않았으며 Node20/22 Linux CI와 정적 이식성 보강 범위입니다. 최종 커밋 CI 확인 후 병합합니다. |
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.
DEV-145를 수정합니다. ref 이름 정제로 디렉터리를 공유하던 코드를 원자적 mkdtemp 스냅샷으로 바꿉니다. 양쪽 resolve를 finally 범위 안에 두며 head 인덱싱·그래프 비교가 실패해도 열린 DB와 scratch를 정리합니다. 닫기 하나가 실패해도 나머지 닫기를 시도합니다.
실제 임시 Git 저장소의 collision/a·collision_a로 diffWorkspaces 전체 실행을 검증했습니다. 정방향·역방향 추가/삭제, 같은 ref의 독립 경로, 잘못된 base/head ref, tar 추출 오류, base/head 인덱싱 실패 및 열린 DB 정리를 포함합니다. 원본에서 회귀3건 실패를 재현했고 수정 후 전체98개 테스트·타입·빌드·diff 검사 통과. 원격2파일이 로컬 검증본과 일치합니다.
DEV-121의 기존 PR15 alias 작업과 별도이며 그 브랜치를 변경하지 않았습니다. 배포·태그 발행은 하지 않습니다. CI와 리뷰를 확인한 뒤 병합합니다.