Repository navigation
Wake the live-check guardian on its child's exit - #839
Merged
Merged
Conversation
Every guarded command waited out a fixed 100 ms poll after its child exited, and a two-scene live-check run issues about 110 of them. The integrity scenarios sat within a quarter of their 45 s guard, so a slower Linux runner crossed it (issue 828). The guardian now registers kqueue NOTE_EXIT on macOS, or a pidfd on Linux, for its direct child and wakes on that exit without reaping it, so the unreaped root still reserves its process group. The poll still bounds each wait, so cancellation and the descendant budgets keep their cadence. Both scenarios dropped from about 66 s to 56 s locally. The integrity test now keeps the tool's private report beside the CI logs when it fails, as the full-scene test already does. Closes #828
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 #828
Summary
python_fixture_timeout).NOTE_EXIT, Linux는 pidfd. 자식은 reap하지 않으므로 좀비가 프로세스 그룹을 계속 예약합니다.Review
scripts/agent_live_check/processes.py- failure path: 종료 감시가 reap하지 않는다는 전제가 그룹 신호 안전성을 지킵니다.finally에서 닫음. 등록 실패도 fd를 닫고 올립니다.Evidence
agent-live-check.spec.ts전체 6개 통과(teardown, Ctrl-C, guardian 시나리오 포함).scripts/tests315개 통과. 새 계약 테스트는 종료 보고 후에도returncode가 비어 있고wait()가 종료 코드를 돌려주는지, 이미 끝난 자식이 종료로 읽히는지 봅니다.COMMAND_SECONDS + scene_seconds)이라 그대로 둡니다.