Repository navigation
Name why a held-letter notice reached no channel and skip phone push that cannot deliver - #793
Merged
Merged
Conversation
…that cannot deliver
…the channel rules
…ed before it checks the log
…the integration binary
…ared binary's other daemons cannot take its log
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 #755
Related: PRD
agents/prd/held-letter-notice-channels/prd.md· 앞선 #791 (같은delivery/worker.rs)Summary
human.channels_failed와 편지 id만 남아 이유를 알 수 없었습니다.no_vapid,mode_off,app_open,mobile_off,no_subscription)를 적습니다.no_socket). 나머지는 시도하고, 답의 이유(disabled,rate_limited,no_foreground_client,busy)나 호출 오류를 적습니다.Review
mode_off로 적습니다(운영자가 알림을 받으려면 바꾸는 설정이 모드이기 때문). 순서가 맞는지 봐 주세요.hided/src/mobile/push.rsnotice_route- 틀리면 닿을 수 있던 push를 건너뜀.mode_allows를 그대로 쓰고 조건마다 단위 테스트가 있음.hided/src/mobile/mod.rs- 경로 판정은 Mobile mutex 안에서만 하고Mutex<Runtime>아래에서는 하지 않음. 휴대폰 최대 4대로 보내는 것은 그대로.herdr-core/src/delivery/worker.rsnotify_herdr- 이제Result<(), 이유>를 돌려줌.Evidence
app_closed에서 앱 창 0개/1개), 여러 원인이 겹칠 때의 순서, Herdr 답 이유 매핑(FakeHerdr).hided/tests/it/held_letter_notice(진단 sink가 프로세스당 하나라서, 한 binary 안의 다른 daemon이 로그를 가로채지 않게 함) - 시드한 ledger의 배달되지 않은 편지로 (1) Herdr socket 없음: 두 경로 이유가 로그에 남음, (2) 닿는 휴대폰: loopback 가짜 push 서비스에 201 뒤 500을 주고 편지가 처리된 것을 확인한 뒤 실패 로그가 없음(B9), (3) 고정 Herdr 0.9.3 위 ignored 테스트:push=mode_off와 Herdr 이유가 로그에 남음. 심은 결함(mode와 mobile 검사 순서 뒤바꿈, mobile 검사 반전)이 테스트를 실패시킴.sasu implement verify는 main을 합치기 전 헤드 19a3a23에서 PASS (S1 test, S2 lint). 마지막 헤드는 아래 '확인하지 못한 것' 참고.real_herdr의 pinned-Herdr 도우미를tests/it/support/private_herdr.rs로 옮겼고(순수 이동) 기존 테스트도 통과.d96282169)의sasu implement verify는 PASS하지 못했습니다. 이 변경 밖의hide-platformprocess::repeated_guarded_work_releases_children_and_capture_resources(descendants 4 != 5)가, main이 crate별tests/it한 binary로 합쳐진 뒤cargo test전체에서만 실패했습니다. 단독 실행과, main(3766d99)에서scripts/verify-cargo.sh test -p hide-platform --test it를 두 번 돌린 결과도 통과했으므로 부하나 순서에 따라 달라지는 실패로 보입니다. 이 PR의 diff에 hide-platform은 없습니다. main 합친 뒤 변경(875ed8a, d962821)은 집중 테스트만 했고 재리뷰는 하지 않았습니다. CI가 증거입니다.letter_origin(첫 exec 데드라인) 시간 의존 테스트에서 한 번 실패했고 단독 실행과 재실행은 통과했습니다. 마지막 커밋(테스트만 변경)은 재검토 없이 재검증만 했습니다. CI가 최종 증거입니다.Verification record
agents/prd/held-letter-notice-channels/prd.md(sha256 6b64ba9b28bc7f7aaeaf40194269d5d5bd19751a83153330266b2f950dc1b7c6)itbinary, daemon as child process): verify FAIL on an unrelated hide-platform test, see Evidenceagents/runs/held-letter-notice-channels/verification-report.jsonandagents/runs/held-letter-notice-channels/verification-report.md; source fingerprint 7aaf71af1522cb2df6d5695589c1955db295e82ecea8d6f936dfbc34fabbede9bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)scripts/ci-plan.pycomment fixed. Code on 83167bf: one test defect (the reachable-phone test read the log before the daemon could write it), fixed in 19a3a23 which was re-verified only. Follow-up improvements: none.gen-prd/held-letter-notice-channels, basemain