Repository navigation
Lock each login shell ask per shell and home, and drop the unused kit version probe - #685
Merged
Merged
Conversation
… kit version probe nothing calls The kit stopped gating hooks on a version, so its probe and the words that described it are gone.
One lock for every pair made a slow ask for one home hold every other home behind it; hided's opener tests, each in its own home, queued behind each other's shells under load and one timed out.
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.
Related: #668
Summary
#668(Settings 정리) 머지 직후 그 작업 브랜치에서 만들어졌지만 올라가지 못한 커밋 두 개를 main 위로 옮겼습니다.
이제 쌍마다 잠금이 따로 있어, 같은 쌍은 여전히 셸 하나를 같이 기다리고 다른 홈은 기다리지 않습니다.
부하가 걸리면
hided::opener_lifecycle테스트가 각자의 홈에서 서로의 셸 뒤에 줄을 서다 시간 초과로 실패했는데, 그 원인으로 보이는 대기를 없앴습니다.hide_agent_hooks::program_version)를 지웠고,docs/ARCHITECTURE.md의 helper protocol 번호를 실제 값 20으로 고쳤습니다.Review
hide-platform/src/programs.rs- 잠금 구조가 바뀝니다. 바깥 목록 잠금은 슬롯을 찾거나 만드는 동안만 잡고, 셸 질의는 그 쌍의 슬롯 잠금 안에서만 기다립니다. 상한 8쌍과 오래된 것부터 버리는 규칙은 그대로이고, 버려진 슬롯을 쥔 호출자는 자기 질의를 끝까지 마칩니다.Evidence
a_slow_ask_for_one_home_does_not_hold_another_home_behind_it가 한 홈의 셸이 답하지 않는 동안 다른 홈이 답을 받는지 확인합니다. 기존callers_that_arrive_cold_together_start_one_shell이 같은 쌍은 셸 하나만 띄우는지 계속 확인합니다.scripts/verify-cargo.sh test와lint전체가 통과했습니다.cargo fmt --check, attribution 검사,hide-platform·hide-agent-hooks·hide-kit의 clippy--all-targets -D warnings가 통과했습니다. 지운program_version을 부르는 곳은 main(#670의codex_trust포함)에 없습니다.launchctl과 첫 실행이 시간 초과한 것이고(이 변경이 건드리지 않는 경로), 그 전 실행에서는codex_trust의a_codex_that_does_not_answer_is_stopped_and_nothing_of_it_is_left가 테스트 stand-in(fake-codex.py)이 자식 pid를 쓰기 전에 시간 초과로 실패했습니다. 이 4개를 따로 다시 돌리면 모두 통과합니다.opener_lifecycle부하 실패의 원인이 이 잠금이었는지는 추적하지 않았습니다. 대기를 없앤 것이지, 그 실패를 다시 재현해 사라진 것을 본 것은 아닙니다.