Repository navigation
Log every refusal the core records; pin the cause of the lost device registration - #771
Merged
Merged
Conversation
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 #770
Closes #766
Summary
Linux CI의
timed out waiting for connected private SSH device는 제품 결함이 아니라 fixture가 이벤트를 잃은 것입니다.fixture의 설정용 WebSocket이
register_device를 보낸 뒤 데몬의 snapshot 프레임을 읽지 않은 채 소켓을 닫았고, 커널이 연결을 reset하면서 데몬이 아직 읽지 않은 이벤트가 사라졌습니다.거절도 오류도 없이 사라져서
status.last_error는 null,device_registrations는[],device.registered로그는 없었습니다.이벤트 수신(Pong)을 기다린 뒤 닫는 수정은
fff5df116으로 이미 main에 들어 있습니다. 이 PR은 그 원인을 증명하고, 같은 일이 다시 조용히 지나가지 않게 합니다.error.reported로 로그에 남깁니다(last_error는 다음 이벤트가 지웁니다).docs/TESTING.md에, 로그 규칙을docs/ARCHITECTURE.md에 적었습니다.Review
herdr-core/src/runtime.rs-set_error가 이제 진단 로그를 씁니다. runtime lock 안이지만diagnostic!는 크기 제한 큐에 넣기만 하는 논블로킹 경로이고, 오류는 드문 경로입니다.push_diagnostic와 같은 수준입니다.Evidence
last_error=null remote=[]에 기기는 "This Mac" 하나였습니다. 즉 거절이 아니라 유실입니다.fff5df116(10:44 KST) 이전입니다.a_refused_device_registration_is_logged_with_its_reason가 중복 등록 거절이error.reported로 남는지 확인합니다.herdr-corelib 1725개 통과.