Repository navigation
owner handshake 테스트가 먼저 끝난 guard의 닫힌 입력을 실패로 읽지 않는다 - #835
Merged
Merged
Conversation
A refused owner handshake ends the hook at once, before it reads its payload, so the test's write to its input met a closed pipe whenever the guard won that race, which Linux CI saw as BrokenPipe (issue 827). Waiting for the guard to exit before writing made it fail every time. The test now writes through the same `send_payload` the other guard runs use, which reads a closed pipe as what an agent sees there; the assertions on the guard's exit status and output are unchanged.
This was referenced Oct 8, 2026
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.
Closes #827
Summary
owner handshake가 거절되면 hook은 payload를 읽기 전에 곧바로 성공으로 끝납니다(
hide-agent-hooks/src/bin/hide-agent-hooks.rs의OwnerWatch::from_launch분기).그래서 이 테스트가 stdin에 payload를 쓰는 동안 guard가 먼저 끝나면 닫힌 pipe를 만나
BrokenPipe로 실패했습니다(Linux CI).이제 이 테스트도 다른 guard 실행이 쓰는
send_payload로 쓰고, 그 helper는 닫힌 pipe를 agent가 보는 그대로(결과는 guard의 답)읽습니다.guard의 종료 코드와 출력에 대한 assertion은 그대로입니다.
Evidence
Os { code: 32, kind: BrokenPipe }로 매번 실패했습니다(수정 전 코드).verify-cargo.sh test-scoped -p hide-agent-hooks2번 통과(it 72개),verify-cargo.sh lint통과.