Repository navigation
Merge a green pull request without bringing it up to date when the merge result passes the fast checks - #774
Merged
Merged
Conversation
…rge result passes the fast checks Requiring every pull request to contain the latest main sent each green one back through a full verify and the runner queue whenever another merged. CONTRIBUTING.md now owns when a pull request may merge into main and what happens when main's push run fails, and scripts/premerge-check.py is its check: the latest verify on the head passed, no conflict with main, and the typecheck, Clippy, e2e size budgets and policy structural checks pass on the merge result.
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: yansfil/sasu#29 (
/ship merge가 이 검사를 쓰게 하는 쪽)Summary
PR이 몰리는 날 머지가 느려진 가장 큰 원인은 "main이 움직이면 green PR도 최신 main을 받아
verify를 다시 돌린다"는 규칙이었습니다.10-07~08 24시간 동안 머지된 PR 40개는 첫 green부터 머지까지 중앙값 29분을 기다렸고, #721은 main을 5번 받아 264분을 기다렸습니다.
이제 최신
verify가 green이고python3 scripts/premerge-check.py <번호>가 지금 main과의 머지 결과에서 통과하면, 브랜치를 최신으로 만들지 않고 머지합니다.둘이 합쳐야만 깨지는 동작은 main push run(전 레인)이 잡고, main이 빨간 동안은 revert나 수정 말고는 머지하지 않습니다.
CONTRIBUTING.md의 "Merging into main"이 정책과 근거를 소유합니다.Review
scripts/premerge-check.py- failure path. 검사가 실패하거나 중단돼도 process group을 끝내고 worktree를 지우는지, 정리 실패가 원래 실패를 가리지 않는지.Evidence
test_premerge_check.py7개: 충돌 거부, 각자 통과하지만 합치면 실패하는 두 변경 거부, 깨끗한 머지 허용, main을 포함한 브랜치는 검사 생략, 최신verifyrun이 결정, policy 레인 구조 검사와 목록 일치.verify가 취소된 #458은 2초 만에 거부. 둘 다 worktree가 남지 않았습니다.scripts/tests전체 unittest 통과,check-no-workstation-identity,check-no-attribution통과. 이 변경은 policy 레인만 계획합니다(ci-plan.py에 추가).