Skip to content

Give the real Herdr tests a named ping wait and an owned control attempt - #504

Merged
yansfil merged 1 commit into
mainfrom
test/real-herdr-waits
Oct 5, 2026
Merged

yansfil merged 1 commit into
mainfrom
test/real-herdr-waits

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

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.rs control_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

  • 확인한 것: 고정 Herdr 0.9.1(scripts/fetch-herdr-runtime.sh로 digest 확인)로 --ignored 실행: hide-herdr-client 2개, hided 1개 통과(macOS).
  • 확인한 것: 부하(yes 4개 + 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 통과.
  • 확인하지 못한 것: 수정 전 흔들림은 재현하지 않았습니다(구조를 바꾼 것이지 대기 조건은 같음). Windows 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는 이 PR의 windows check로만 봅니다. 남은 Rust tests sleep instead of waiting for a state or injecting the clock #437 allow는 이 PR만 놓고 56개, #503과 함께 51개입니다.

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
yansfil added this pull request to the merge queue Oct 5, 2026
Merged via the queue into main with commit 6e917c4 Oct 5, 2026
28 checks passed
@yansfil
yansfil deleted the test/real-herdr-waits branch October 5, 2026 12:26
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant