Skip to content

fix(diff): Git 비교 스냅샷 격리와 실패 정리 (DEV-145) - #16

Merged
developjik merged 4 commits into
mainfrom
fix/dev-145-isolated-snapshots
Nov 24, 2026
Merged

developjik merged 4 commits into
mainfrom
fix/dev-145-isolated-snapshots

Conversation

@developjik

@developjik developjik commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

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와 리뷰를 확인한 뒤 병합합니다.


Devin Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T01:30:53.908336Z b06b383 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

devin-ai-integration[bot]

This comment was marked as resolved.

@developjik

Copy link
Copy Markdown
Owner Author

리뷰 보강: 정리 검사는 이 테스트 호출이 생성한 scratch만 추적하여 병렬 테스트의 임시 경로 변화에 영향받지 않게 했습니다. 비교용 DB 중 첫 close가 예외를 내도 나머지 DB close와 scratch 삭제를 수행하는 회귀를 추가했습니다. 전체99개 테스트·타입·빌드 통과, 새 CI 확인 후 병합합니다.

devin-ai-integration[bot]

This comment was marked as resolved.

@developjik

Copy link
Copy Markdown
Owner Author

마지막 리뷰도 반영했습니다. scratch 이름 검사는 node:path의 basename으로 처리해 구분자에 의존하지 않도록 했습니다. 전체99개 테스트·타입·빌드 재통과. Windows 실제 실행은 하지 않았으며 Node20/22 Linux CI와 정적 이식성 보강 범위입니다. 최종 커밋 CI 확인 후 병합합니다.

@developjik
developjik merged commit 4efbc01 into main Nov 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant