Repository navigation
Improve worktree and distribution cleanup - #71
Merged
Merged
Conversation
1 task
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.
Summary
삭제된 live pane cwd 하나가 모든 worktree cleanup 검사를 중단시키던 문제를 수정합니다.
존재하는 cwd는 canonical path로 검증하고, 이미 사라진 절대 경로는 해당 경로를 포함하는 후보만 계속 제외합니다.
일반 merge는 기존 Git ancestry로 증명하고, squash merge는 worktree HEAD와 정확히 일치하는 merged PR head 및 local main에 포함된 merge commit을 모두 요구합니다.
브랜치 이름만 같거나 GitHub에만 merge된 상태에서는 삭제하지 않습니다.
worktree 제거가 끝나면 현재 repository convention으로 계산한 checkout 전용 외부 test cache만 제거합니다.
cache 제거 실패는 worktree가 이미 제거된 사실을 유지하면서
partial결과로 표시하고 같은 제거를 반복하지 않습니다.로컬 distribution build는 완성된 bundle, zip, checksum을 먼저 검증하고
dist/에 현재 archive pair만 유지합니다.publish 도중 command failure 또는 처리 가능한 종료 signal이 발생하면 이전 complete set으로 rollback합니다.
Review focus
herdr-core/src/worktree_cleanup.rs는 실제 worktree와 외부 cache를 삭제하며,scripts/publish-dist-artifacts.sh는 기존 local distribution을 교체합니다.Risk surface
session.snapshot의 pane cwd와 foreground cwd 소비만 유지하며 wire 계약은 바꾸지 않습니다.partial결과로 보입니다.Evidence
Available과Excluded를 표시하는 것을 native screenshot으로 확인했습니다.