Repository navigation
End a hung Rust test by name in CI instead of at the job limit - #539
Merged
Merged
Conversation
The ci nextest profile ends a test still running at 120 s (240 s for the remote mailbox binary), so a hang fails with its name, is retried and is filed as flaky. The flaky report names a timeout when the failure carries only its type.
yansfil
added a commit
that referenced
this pull request
Oct 6, 2026
## Summary The merge queue is off (its median from a green pull request to main was 47.6 minutes, of which 12.6 were work), so this removes the code and text that existed only for it. A push to main plans every lane again, as before the queue; `merge_group` runs and their plan from `merge_group.base_sha` are gone. Removed: the `merge_group` trigger, the push's Actions API lookup of a queue run and its `actions: read` permission and `GH_TOKEN`, the push base from the last passing push run, the cache key comparison (`CACHE_KEYS`), `--queue-runs`, the `verified-by` output and the verified-push branch of `aggregate`, and the docs and tests that described them. `scripts/ci-plan.py`, its test and `CONTRIBUTING.md` were changed only by #500, #518 and #543, so they return to their state before #500; `pr.yml`, `nightly.yml` and `docs/TESTING.md` are edited by hand to keep #507 and #539. ## Review - **판단해 주세요**: nightly's call of `verify` with every lane (#518) stays. A push to main runs every lane again, but a lane it fails opens no issue; the same failure in nightly's call opens or comments on the nightly issue through the report job, and a lane that breaks with no merge (a runner image, a toolchain, a service a test reaches) is found within a day. It costs about 94 job-minutes a day, 23 of them macOS (a full run of `verify`, median of 9 main runs). If that alert is not worth it, the call, `workflow_call` and the concurrency group change go together. - **조심해서 볼 파일**: `.github/workflows/pr.yml` `concurrency.group` stays `${{ github.workflow }}-...` for the call: `verify`'s own runs keep the same group name as before, and nightly's call is `nightly-refs/heads/main`, so it never takes a push run's pending place. ## Evidence - **확인한 것**: `git grep -i 'merge queue\|merge_group\|verified-by\|CACHE_KEYS\|queue-runs'` finds nothing outside the local harness folder; `actions: read` remains only on nightly's report job, which had it before. - **확인한 것**: `scripts/ci-plan.py` and `scripts/tests/test_ci_plan.py` equal their state at the parent of #500 except the added `test_nightly_calls_verify_with_every_lane`, which fails when `workflow_call` is removed from `pr.yml`; `python3 -m unittest scripts/tests/test_ci_plan.py` 30 pass; the policy lane's commands pass locally (`unittest discover` 129 tests, `nightly-report.test.cjs` 6, the structural checks). - **확인한 것**: `actionlint` is clean on every workflow. - **확인한 것 (what the skip did while the queue was on)**: one main push run planned no lane, [37341893238](https://github.com/modakbul-gongbang/hide/actions/runs/37341893238): 2 jobs, 0.35 job-minutes; a full push run took 94.1 (macOS 25.3). - **확인하지 못한 것**: this pull request changes `.github/workflows/`, so its own run plans every lane; nightly's `verify` call has not run yet (the first schedule after #518 is 18:00 UTC).
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 #535
Summary
CI의 Rust test가 멈추면 이름 없이 job 한도에서 취소되던 것을, 상한에서 test 이름과 함께 실패하고 한 번 재시도되어 flaky로 분류되게 바꿉니다. 기한을 늘리는 변경이 아니라 "이름 없는 멈춤"을 "이름 있는 실패"로 바꾸는 상한입니다.
ciprofile에slow-timeout이 없어, 멈춘 test는 이름도 재시도도 flaky 보고도 없이 step이나 job 한도까지 lane을 붙잡습니다. #514의 queue run(37315789651)에서 Windows os contract의 nextest step이 30분 멈췄고, step의 10분 한도도 끝내지 못해 job 한도에서 취소되었으며 log도 남지 않았습니다..config/nextest.toml:ciprofile에slow-timeout = { period = "60s", terminate-after = 2 }(120 s에 종료)를 넣었습니다. remote mailbox binary(herdr-core::remote_delivery)만 override로 240 s입니다. 근거는 설정 옆 주석과 아래 Evidence에 있습니다.scripts/ci-flaky-report.py: timeout으로 끝난 시도는 JUnitflakyFailure에 본문도message도 없고type="test timeout"만 있어 issue가 "(no message)"로 적혔습니다.type을 마지막 대안으로 읽습니다. 단위 test 하나를 더했습니다.docs/TESTING.md: Rust 재시도 항목에 이 상한과 그 뜻(hang guard, 늘리는 값이 아님)을 적었습니다.Review
.config/nextest.toml- CI의 모든 Rust lane(Linux, macOS, Windows, OS contract, nightly, remote mailbox)이 읽습니다. 로컬 기본 profile은 바뀌지 않습니다.Evidence
verify25개, 각 lane 18-21 job).worktrees::behavior_tests::idle_and_working_tree_edits_do_not_reread_but_manual_refresh_does, 21회 모두 20.6-20.7 s), 다음 15.0 s.TMT로 끝나고 재시도에서 통과해FLAKY가 되며, JUnit에flakyFailure type="test timeout"가 남습니다.binary_id(...)override는 그 binary에만 긴 상한을 줍니다(같은 3 s test가 override binary에서는 통과, 다른 binary에서는 timeout).python3 -m unittest discover -s scripts/tests -p 'test_*.py'130개 통과. 새 단위 test는type대안을 빼면 실패합니다.