Repository navigation
fix: count a device Retry through the reconnect it now starts - #1733
Merged
Merged
Conversation
#1722 made Retry after a failed Herdr start reconnect the device instead of reapplying the kit, while #1725 added a statistics test that drove the old kit path. The reconnect admits its own attempt and settles it with the bootstrap's report, so the test now supplies that reconnect's result, and the analytics contract names it.
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: #1722, #1725
Summary
main의
verify가 #1722 머지(e21d4bb) 뒤로rust workspace의 기기 통계 테스트 하나에서 계속 실패합니다.두 PR이 따로 초록인 채 머지되며 생긴 충돌입니다: #1722는 Herdr 시작 실패 뒤 Retry를 kit 재적용에서 기기 재연결로 바꿨고, #1725의 테스트는 옛 kit 경로로 Retry를 흉내 냈습니다.
제품 동작은 맞습니다: 재연결이 새 연결 시도를 열고, 그 연결의 kit 보고(
Started)가 성공 한 번으로 기록됩니다.그래서 코드는 그대로 두고, 테스트가 Retry 뒤 재연결의 결과를 공급하도록 고쳤고,
docs/ARCHITECTURE.md의 통계 계약에 이 Retry가 재연결의 시도로 세어진다는 문장을 더했습니다.Review
spawn_host_start의begin_device_connect->ingest_host_established의 claim/complete)에서 그대로 지켜집니다.herdr-core/src/runtime/tests/device_kit.rs- fixture에 SSH transport가 없어, 바깥 worker가 하는 시도 등록과 연결 결과를 테스트가 직접 넣습니다(바로 위 통계 테스트와 같은 방식).Evidence
Ready(Started)없음)으로 로컬 실패를 재현했습니다.verify-cargo.sh nextest -p herdr-core -E 'test(/device_kit|device_analytics|device_connect/)'56개 통과,fmt-check통과.verify에 맡깁니다.Verification record
Base:
e22c924b67a630e04e4c907d9d28bb021ef22c07.Failing main runs: 40450672875, 40453581851, 40455435250; last green main a1bed1f (run 40449782460).