Repository navigation
종료된 데몬을 좀비와 구분하고 가드 테스트가 닫힌 파이프를 견디게 한다 - #783
Merged
Merged
Conversation
…rd test ignore a closed payload pipe
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 #741
Closes #761
Closes #757
Closes #654
Summary
hided::connect_stop): 종료를 확인하는 단언이 시작 시각만 비교했습니다. Linux에서는 좀비가 /proc 항목과 시작 시각을 그대로 갖고 있어 끝난 데몬이 살아 있는 것으로 읽혔습니다.hide_platform::process::is_alive(좀비 제외)와 시작 시각이 모두 그대로일 때만 "아직 돌고 있다"고 판단합니다.hide-agent-hooks::spawn_guard): 가드가 이미 결정을 내려 페이로드를 읽지 않고 끝나면, 테스트의 stdin 쓰기가 BrokenPipe로 실패했습니다. 닫힌 파이프만 허용하고 다른 쓰기 오류는 그대로 실패시킵니다.0db57b50f가 이미opener_lifecycle의 macOS 첫 실행 워밍업을 고쳤고, 이 PR은 아래 증거로 이슈를 닫습니다. 이 PR의 코드 변경은 없습니다.Review
hided/tests/connect_stop.rs- 종료 판정을 어떻게 정의하는지가 바뀐 테스트 헬퍼입니다.start_time이 좀비를 살아 있다고 답하는 것이hide-platform의 계약으로 괜찮은지 봐 주세요.Evidence
connect_stop6개와spawn_guard테스트를 150회 반복(재시도 없음). 수정 전 146 통과 / 4 실패(connect_stop3,spawn_guard1), 수정 후 150 / 150 통과.opener_lifecycle과mobile을 함께 20회 반복(macOS, 재시도 없음) 20 / 20 통과. 이슈의 수정 전 기록은 같은 조합이 2 / 2 실패입니다.spawn_guard와connect_stop을 한 번에 병렬로 돌리면spawn_guard의 첫 실행 워밍업이 5초 한도를 넘어 실패합니다. 이 PR 전에도 있는 macOS 로컬 부하 문제이고 CI 레인은 이 조합을 돌리지 않아, 고치지 않았습니다.