Repository navigation
fix: raise an ended mission worker only while its node needs one - #2227
Merged
Merged
Conversation
… into fix/mission-attention-safe # Conflicts: # web/src/gallery/MissionScene.tsx
… the PRs list's reason
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: mission-39 노드 attention-safe; 짝 문서 PR with-hide/hide-private#708 (missions.md 확인 필요 원인과 선택)
Summary
작업자가 끝났어도 PR이 초록이거나 머지 큐에 있으면 미션은 '확인 필요'를 띄우지 않습니다. 그 노드는 작업자 없이도 머지로 나아가기 때문입니다(mission-38 flaky-phone, PR #2185가 큐에 있었는데 떠서 운영자가 '노드 제외'를 눌렀던 일).
작업자가 끝났고 노드의 줄(리뷰 등)이 실패했거나, PR이 CI 실패·충돌·변경 요청·초안·닫힘이거나, PR이 없을 때만 띄우고, 이미 뜬 것도 PR이 다시 나아가면 내립니다.
선택 버튼은 한 부품이고, 무엇을 어떤 순서로 내놓을지는 core가 정합니다: 옆에 PR 번호와 PR 목록이 쓰는 그 PR의 이유(충돌, 머지 큐 순번, CI 실패 등)와 실패한 줄('리뷰 실패')을 보여 주고, 'Conductor에게 맡기기'를 앞에 두며, '노드 제외'는 한 번 누르면 제자리에서 '제외 확인'으로 바뀌고 두 번째 누름에서만 보냅니다.
격리 후보 앱, 미션 지도의 내 차례(Conductor 있음): 각 항목에 PR과 그 이유, 실패한 줄, 'Conductor에게 맡기기'가 앞에.

격리 후보 앱, 사이드바 미션 행(Conductor 없음): 맡길 Conductor가 없어 맡기기는 빠지고 이어받기가 있습니다.

같은 행에서 '노드 제외'를 한 번 누른 뒤: 제자리에서 '제외 확인'으로 바뀌고 아무것도 보내지 않았습니다(다른 곳을 누르면 '노드 제외'로 돌아옴).

Review
leave선택입니다. 운영자 항목을 내리고 Conductor에게 "운영자가 맡김: 무엇이 필요한지 판단하라" 편지를 보냅니다. Conductor가 없으면 계획에 없는 PR 항목에서만 '그대로 두기'로 남고, 다른 원인에서는 빠집니다(이어받기가 대신).hide-core/src/mission_health.rs- 올리는 조건(node_acts)과 내리는 조건(still_holds)이 기존worker_waits한 함수를 읽습니다(조용함 경고와 같은 판단). 실패한 줄을 PR보다 먼저 봅니다.hide-core/src/missions.rsAttentionReason::choices- 선택 목록과 순서의 한 곳. 미션 view가choices로 보내고, 운영자 답(mission_attention_act)은 그 목록에 없으면mission_attention_choice_refused로 거절합니다. snapshot wire에 필드가 하나 늘었습니다.web/src/components/mission-attention.tsx- 내 차례, 노드 패널, 사이드바 미션 행, 개요의 '나를 기다리는 것'이 모두 이 부품입니다. PR 이유는 core의 PR 목록 행(agent_scope.prs.rows)을 기존ReasonLine으로 그리고, 행이 없을 때만 상태 낱말을 씁니다.원인 표 (같은 원인이 닿는 다른 reason)
worker_waits로 올리고 내림; 선택: 맡기기 앞, 제외 확인, PR 이유still_holds가 같은 함수로 내림; 선택 같음이 컴퓨터와 기기의 미션은 같은 순수 평가(
evaluate)를 거치고, 기기가 답하지 않으면 아무것도 판단하지 않는 기존 규칙(B29)은 그대로입니다. 쉬는 작업자는 이 조건에 닿지 않고(깨우기 경로 그대로), OS별 코드는 없습니다. 폰은 선택 없이 이유만 보여 주므로 단계의#n을 같은 PR 마크(상태 아이콘과 색)로 바꿨습니다.docs/DESIGN_GUIDE.md에 되돌릴 수 있는 파괴적 선택의 제자리 두 번 누름을 한 줄로 넣었습니다.Evidence
nextest -p hide-core2331개 통과. 끝난 작업자 + PR 초록/머지 큐/CI 실행 중이면 안 뜸, CI 실패/초안/실패한 줄이면 뜸, 낡은 GitHub 답이면 판단 안 함; 이미 뜬 WorkerEnded와 WakeRefused가 PR이 큐에 들어가면 내려감; 원인별 선택 목록; view가 그 목록을 보내고 목록 밖 선택(attachon merged_unproven)은 노드를 바꾸지 않음.mission-attention.test.tsx: GitHub로는 초록인데 충돌인 PR이 '충돌'로 보이고 '머지 가능'으로 보이지 않음, CI 줄은 PR이 말하고 리뷰 실패는 '리뷰 실패', Conductor가 없으면leave가 '그대로 두기'. 제외 두 번 누름과 다른 곳 누름 복귀는 MissionMap 시험.web typecheck,web lint,check-design-contract.mjs통과.hide mission create로 미션을 만들고 두 노드의 확인 필요를 심었습니다. Conductor가 있을 때 내 차례에 '맡기기'가 앞에, 없앤 뒤 사이드바 미션 행에 이어받기와 '노드 제외'가, 한 번 누름 뒤 '제외 확인', 다른 곳 누름 뒤 복귀를 읽었습니다.추가 증거
격리 후보 앱, Conductor가 없을 때의 내 차례: 맡기기 없이 원인별 선택만.

Verification record
scripts/verify-cargo.sh nextest run -p hide-core2331 passedverify-web.sh web test(affected 31 files, 303 tests),web typecheck,web lint,node scripts/check-design-contract.mjs/private/tmp/as39/b/hide.app/Contents/Resources/hided(target/debug 하드링크), host.start packaged=false, 끝난 뒤 Electron, hided, holder, 가짜 Conductor 셸을 pid로 끝냄