Repository navigation
Give the real Herdr tests a named ping wait and an owned control attempt - #504
Merged
Merged
Conversation
The private server's start polls ping through a helper that says what it waits for, and the diagnostic control attempt runs as an OwnedChild whose capture ends it at its deadline instead of a sleep loop on try_wait.
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
## Summary `merge_group.base_sha` is main only for the first group in the queue; every later group starts from the commit of the group queued ahead of it. The plan job logs and the queue refs show it: #504's group was based on 356c5db (#503's group commit, before #503 reached main), and #506's ref is `gh-readonly-queue/main/pr-506-6d32c697...`, #505's group commit. So a group plans its own pull request's changes on the tree the groups ahead make, not every queued change, as #500's docs, comments and test story said. This corrects them and states why that is enough; the planner itself does not change. ## Review - **판단해 주세요**: the safety argument now in docs/TESTING.md: each group's run checks its own lanes on a tree that already holds every group ahead, so a lane is checked by the run of the last group that touched its inputs, on the same inputs as the final tree; it assumes the path rules are right, as a pull request's plan does. The queue merges a group only when every group ahead passed (ALLGREEN), and rebuilds the groups behind a failed one on a new base. - **조심해서 볼 파일**: `scripts/tests/test_ci_plan.py`: the merge queue test is renamed to `test_a_merge_group_plans_its_own_change_on_the_groups_ahead` and builds group commits the way the queue does (the pull request merged onto main or onto the group ahead), including a group rebuilt on main after the one ahead fails. ## Evidence - **확인한 것**: plan job logs of the queue runs [37305523083](https://github.com/modakbul-gongbang/hide/actions/runs/37305523083) (#504, `BASE: 356c5db...`) and [37306383723](https://github.com/modakbul-gongbang/hide/actions/runs/37306383723) (#506, `BASE: 6d32c69...`); #506's run planned 18 lane jobs and no macOS job, its own change only, while #505's run on 6d32c69 ran the macOS lanes. - **확인한 것**: `scripts/tests/test_ci_plan.py` 35 pass; `actionlint` is clean on `pr.yml`. - **확인하지 못한 것**: nothing runs differently, so there is no before and after timing.
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.
Refs #437
Summary
고정 Herdr를 띄우는 두
real_herdr테스트의 #437 allow 3개를 없앱니다. 제품 코드는 바뀌지 않았습니다.hided/tests/real_herdr.rs,hide-herdr-client/tests/real_herdr.rs의PrivateHerdr::start: 서버가ping에 답할 때까지 묻는 루프를 그 이름의 helper(wait_for_ping)로 뺐습니다. 이 루프는 원래도 상태(ping 응답)를 60초 한도로 묻는 polling이었고, allow 이유가 실제와 맞지 않았습니다. 다른 기다릴 신호는 찾지 못했습니다:herdr server의 "running" 출력은 문서화된 계약이 아니고, web e2e fixture도 socket 존재를 polling합니다.hided/tests/real_herdr.rscontrol_attempt(실패할 때만 부르는 진단):try_wait을 100ms마다 묻던 루프를hide_platform::process::OwnedChild::capture_until(10초)로 바꿨습니다. 기한에 자식을 끝내고 그때까지의 출력을 돌려주는 일을 platform helper가 하므로 테스트 안의 sleep이 없습니다.Review
wait_for_ping두 개는 새 대기가 아니라 inline polling을 이름 붙은 helper로 옮긴 것입니다(TESTING.md "Poll the state, once, with a named condition"). 재분류로 볼지.hided/tests/real_herdr.rs- 진단 문구가 "exited Some(1)" 또는 "was ended (child capture deadline reached)"로 바뀝니다. 출력은 64KiB까지 잡고 앞 2000자만 씁니다(전과 같음).Evidence
scripts/fetch-herdr-runtime.sh로 digest 확인)로--ignored실행: hide-herdr-client 2개, hided 1개 통과(macOS).yes4개 +taskpolicy -b)에서 hide-herdr-client suite 20/20, hided suite 10/10.verify-cargo.sh clippy -p hided -p hide-herdr-client --all-targets -D warnings,fmt통과.real_herdr실패 기록 12회는real_herdr.rs:388의 "typed line never came back"(echo 경로)이고 이 PR의 자리가 아닙니다. 그 경로의tokio::time::sleep(2s)는 clippy 금지 대상이 아니라 Rust tests sleep instead of waiting for a state or injecting the clock #437 목록에 없고, 손대지 않았습니다.windows check로만 봅니다. 남은 Rust tests sleep instead of waiting for a state or injecting the clock #437 allow는 이 PR만 놓고 56개, #503과 함께 51개입니다.