Repository navigation
test: hold the old herdr open so its inode cannot pass to the new copy - #1750
Merged
Merged
Conversation
yansfil
added a commit
that referenced
this pull request
Oct 27, 2026
…1751) Closes #1059 Closes #1060 Closes #1062 Closes #1170 Closes #1241 Closes #1319 Closes #1373 Closes #1374 Closes #1375 Closes #1428 Closes #1429 Closes #1431 Closes #1554 Closes #1555 Closes #1607 Closes #1662 Closes #1663 Closes #1691 Closes #1706 Closes #1708 Closes #1712 Closes #1715 Closes #1727 Closes #1728 Closes #1743 Related: #1750 (the `herdr_handoff` inode test, the other half of this task, is fixed there) ## Summary core_move 테스트 여러 개가 "the target's helper ready" 대기 30초를 넘겨 같이 실패하며 관련 없는 PR의 CI를 빨갛게 만들었습니다. 원인은 테스트 준비 단계입니다: 픽스처마다 디버그 빌드 `hided`와 `hide`(각 약 140 MB)를 대상 기기에 SSH로 보내고 다시 읽어 확인하느라 18-29초가 걸렸습니다. 연결의 나머지 단계는 합쳐 약 1초입니다. 이제 픽스처의 대상 기기는 처음부터 이 빌드를 갖고 시작합니다(이전에 연결된 적 있는 기기처럼, 제품의 `HelperPackages::install_here`로 놓음). 연결은 여전히 helper의 바이트를 확인한 뒤에 시작하고, 다른 빌드를 쓰는 테스트는 그 빌드를 그대로 보냅니다. 대기 한도(30초)는 그대로입니다. 늘리지 않고 느린 부분을 없앴습니다. 스크린샷 없음: 테스트 픽스처와 문서만 바뀌고 화면 변경이 없습니다. ## Review - **판단해 주세요**: core_move는 이제 처음 설치하는 경로를 거치지 않습니다. 기기 설치(업로드와 다시 읽기)는 `remote_delivery`와 `device_bootstrap`이 증명한다고 봤습니다. 괜찮은지. - **조심해서 볼 파일**: `hided/tests/it/support/core_move.rs` - helper root에 빌드를 미리 놓는 곳. 버전 폴더 이름과 권한은 제품 함수가 정하므로 원격 설치가 그대로 재사용합니다. - **열어 둔 이슈**: #1004 #1061 #1359(원인이 섞임), #1077 #1116 #1275 #1286(잘린 다른 원인), #1710 #1745("projects saved" 대기). 이 PR로 닫지 않습니다. ## Evidence - **확인한 것 (이전, CI)**: 2026-10-26..27 실패 run 6개의 `hide-core-move-logs` 아티팩트, 픽스처 30개의 `host.establish_stage`와 `host.upload_stage` 기록. `install_payload`→`start` 18.4-29.1초. 파일당 쓰기 약 6.5초 + 다시 읽기 약 8초, `hided` 다음 `hide` 순서. connect/platform/start/hello/ready 합계 약 1초. - **확인한 것 (이후, 로컬 macOS, load 약 12, 2개씩 병렬)**: core_move 4개 통과. helper ready 2.3-3.4초, 업로드 0건(`host.upload_stage` 없음), `install_payload`→`start` 1.4-1.7초(helper 다시 읽기만). - **이슈 분류**: 열린 core_move flaky 이슈 34개의 본문과 댓글에서 실패 메시지를 읽었고, 모든 기록이 helper-ready 대기 초과인 25개만 닫습니다. - **확인한 것 (이후, CI)**: run 40524765220의 remote mailbox job을 4번 관찰(시도 1, 3, 4, 5). 4번 모두 초록, core_move 44개 x 4 = 176개 중 재시도 0. core_move 테스트 시간 중앙값 15.3 / 16.0 / 15.8 / 21.8초, 최소 8.4-12.6초, core_move 단계 242-322초. 비교: main run 40510881153(eastus)은 재시도 4, 중앙값 38.3초, 최소 28.1초, 단계 559초. - **rust workspace**: 시도 1은 `herdr_handoff::tests::a_copy_hide_runs_replaces_the_file_with_a_new_one`의 inode 비교 실패(이 PR과 무관, #1750 대기 중인 알려진 flaky). 시도 2에서 625개 모두 통과. - **확인하지 못한 것**: 관찰한 4번은 southcentralus 3번, centralus 1번이고, 이전 실패가 몰렸던 eastus/eastus2 러너에서는 아직 돌지 않았습니다. 로컬 전체 core_move 44개 동시 실행은 기계 부하(load 약 20)에서 픽스처 준비 명령 deadline과 디스크 부족으로 준비 단계에서 끝나 판단 근거가 되지 못했습니다. <details><summary>Verification record</summary> </details>
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.
Summary
main의 push
verify가 6b7c6abc2에서hided herdr_handoff::tests::a_copy_hide_runs_replaces_the_file_with_a_new_one때문에 실패했습니다(run 40505278159, 재시도까지 실패).테스트는 옛
herdr파일이 새 파일로 "바뀌었는지"를 inode 번호가 다른지로 봅니다. 그런데 옛 파일을 아무도 열고 있지 않으면, 파일 시스템이 지운 파일의 inode 번호를 새 파일에 바로 다시 줄 수 있어 같은 번호가 나옵니다(로그: left 9031688, right 9031688).제품 동작은 바뀌지 않습니다. 테스트가 실제 상황처럼 옛 파일을 열린 채로 잡고 있게 해서 번호가 재사용될 수 없게 했고, 열려 있던 옛 내용이 그대로 남는지도 확인합니다.
스크린샷 없음: 화면을 바꾸지 않는 테스트 수정입니다.
Review
hided/src/herdr_handoff.rs의 테스트 하나만 바뀝니다. 실행 중인 프로세스가 자기 프로그램을 잡고 있는 모습을 열린 파일로 흉내 냅니다.Evidence
scripts/verify-cargo.sh nextest -p hided -E 'test(a_copy_hide_runs_replaces_the_file_with_a_new_one)'통과.