Repository navigation
[trymerge] Verify greenlight approved the exact commit being landed - #194841
jeanschmidt wants to merge 4 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/194841
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Cancelled Job, 40 Pending, 2 Unrelated FailuresAs of commit 018fd65 with merge base e812f6f ( GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:
reason: CANCELLED JOB - The following job was cancelled. Please retry:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Full battery of tests (visible internal only) P2477157757 |
| if state == "CHANGES_REQUESTED" | ||
| ] | ||
|
|
||
| def get_updated_at(self) -> str | None: |
There was a problem hiding this comment.
From what I see, we need 2+ additional requests here to get the updated_at timestamp and the list of reviewers. Let's check which token we are using and how much limit is left there
There was a problem hiding this comment.
yes, but this is only at try-merge, so it is 2 additional requests, for each merge attempt. With 40 merges a day, those are 80 extra requests a day, the budget is 12.5k/hour, this is 0.026% of our daily budget
|
My understand here is that all these changes is to add a land-time guard in There are 2 groups of users I have in mind:
In both cases, greenlight can review the change again after |
|
@huydhn lets chat about it |
|
updating discussions with @huydhn We reached an agreement that this introduction of functionality on try-merge / pytorchbot is primarily intended to reduce the noise experienced by users while developing in PyTorch, due to the noise after submission of revoking and then re-approving. And as a secondary benefit, this also provides stronger guarantees against a landing of changes that are not yet approved and could be revoked by GreenLight. But we both agree that this advantage is minor on its own. And exactly because of that, GreenLight would behave differently for repositories with DrCI/pytorchbot vs without. With DrCI + pytorchbot:
Without DrCI + pytorchbot
|
| traceback.print_exc() | ||
| return frozenset() | ||
| return frozenset( | ||
| normalize_login(login) for rule in rules for login in rule_approvers(rule) |
There was a problem hiding this comment.
Nit: rule_approvers calls gh_get_team_members and it's a GraphQL request. We should have it inside the try statement
**Impact:** mergebot only — PRs whose sole merge authorization is the `pytorchgreenlight` approval **Risk:** medium ## What Wires the greenlight land-time guard into `merge_into`: when the only approval that satisfies a merge rule is greenlight's, trymerge reads greenlight's verdict ledger and refuses to land unless greenlight recorded `LAND` for the head commit that is actually being merged. The verdict logic already lives in the `greenlight_*.py` modules next to trymerge; this change only feeds the PR facts in and turns the verdict into the exception the merge loop already understands. Three smaller changes in `trymerge.py` that are worth reading on their own: - `find_matching_merge_rule` gains an `approved_by_override` kwarg, so the guard can ask "would any rule still match if greenlight had not approved?" without duplicating rule evaluation. Default behaviour is unchanged. - The inline approver expansion is extracted to `rule_approvers`, and a malformed team ref (`org/team/extra`) now raises instead of expanding to nobody. Previously `gh_get_team_members` warned, returned `[]`, and the rule then matched *any* approver. - Two REST accessors (`get_updated_at`, `get_bot_reviewers`) added on `GitHubPR`. They are REST rather than fields on `GH_GET_PR_INFO_QUERY` because that query text is the cache key for the recorded GraphQL fixtures — extending it invalidates all of them. ## Why `merge_rules.yaml`'s "Greenlight Review Bot" rule lets a single `pytorchgreenlight` approval authorize a merge of any path, and pytorch/pytorch has no GitHub-native required reviews, so that approval is never dismissed when the author pushes more commits. Today an author can get greenlight's approval on a benign commit, push anything on top, and `pytorchbot merge` lands unreviewed content. This closes that window by comparing the head SHA greenlight actually evaluated against the head being landed. # Notes Behaviour reviewers should sanity-check: - **Scope.** The guard is skipped entirely when greenlight did not approve, and when any other merge rule still matches after dropping greenlight's approval. A drive-by approval from a random GitHub user does *not* switch it off. - **Waiting.** "greenlight hasn't answered yet" raises `MandatoryChecksMissingError`, so the existing 5-minute retry loop handles it. The 60-minute budget is owned by `merge()` and shared across re-entries, and opens at the first wait (not at command time, since `merge_into` is only reached once CI is green). One comment is posted to the PR the first time it waits. - **Force merge.** `-f` gets no wait window and therefore never waits; it refuses instead if greenlight is the only authority and hasn't verified the head. - **ghstack.** Checked against each open PR's GitHub head, which is what greenlight records, not the `/orig` revision git cherry-picks. - **Failure modes.** A HUD outage is a wait, not a refusal, until the budget runs out; an unreadable `merge_rules.yaml` or an unclassifiable reviewer leaves the guard on rather than inventing an authorization. Depends on the `/api/greenlight/pr_state` route in pytorch/test-infra; `HUD_API_TOKEN` is already plumbed into `trymerge.yml`. This is the last change of the guard and the only one that alters existing behaviour; the modules it calls landed ahead of it so that the merge-path wiring could be reviewed on its own and each change stay under the 2000 LOC infra limit. One test here asserts `merge_rules.yaml` still grants `pytorchgreenlight` merge authority, so a rename there cannot silently disable the guard. Signed-off-by: Jean Schmidt <[email protected]> ghstack-source-id: 6b2659e Pull-Request: #194841
**Impact:** mergebot only — PRs whose sole merge authorization is the `pytorchgreenlight` approval **Risk:** medium ## What Wires the greenlight land-time guard into `merge_into`: when the only approval that satisfies a merge rule is greenlight's, trymerge reads greenlight's verdict ledger and refuses to land unless greenlight recorded `LAND` for the head commit that is actually being merged. The verdict logic already lives in the `greenlight_*.py` modules next to trymerge; this change only feeds the PR facts in and turns the verdict into the exception the merge loop already understands. Three smaller changes in `trymerge.py` that are worth reading on their own: - `find_matching_merge_rule` gains an `approved_by_override` kwarg, so the guard can ask "would any rule still match if greenlight had not approved?" without duplicating rule evaluation. Default behaviour is unchanged. - The inline approver expansion is extracted to `rule_approvers`, and a malformed team ref (`org/team/extra`) now raises instead of expanding to nobody. Previously `gh_get_team_members` warned, returned `[]`, and the rule then matched *any* approver. - Two REST accessors (`get_updated_at`, `get_bot_reviewers`) added on `GitHubPR`. They are REST rather than fields on `GH_GET_PR_INFO_QUERY` because that query text is the cache key for the recorded GraphQL fixtures — extending it invalidates all of them. ## Why `merge_rules.yaml`'s "Greenlight Review Bot" rule lets a single `pytorchgreenlight` approval authorize a merge of any path, and pytorch/pytorch has no GitHub-native required reviews, so that approval is never dismissed when the author pushes more commits. Today an author can get greenlight's approval on a benign commit, push anything on top, and `pytorchbot merge` lands unreviewed content. This closes that window by comparing the head SHA greenlight actually evaluated against the head being landed. # Notes Behaviour reviewers should sanity-check: - **Scope.** The guard is skipped entirely when greenlight did not approve, and when any other merge rule still matches after dropping greenlight's approval. A drive-by approval from a random GitHub user does *not* switch it off. - **Waiting.** "greenlight hasn't answered yet" raises `MandatoryChecksMissingError`, so the existing 5-minute retry loop handles it. The 60-minute budget is owned by `merge()` and shared across re-entries, and opens at the first wait (not at command time, since `merge_into` is only reached once CI is green). One comment is posted to the PR the first time it waits. - **Force merge.** `-f` gets no wait window and therefore never waits; it refuses instead if greenlight is the only authority and hasn't verified the head. - **ghstack.** Checked against each open PR's GitHub head, which is what greenlight records, not the `/orig` revision git cherry-picks. - **Failure modes.** A HUD outage is a wait, not a refusal, until the budget runs out; an unreadable `merge_rules.yaml` or an unclassifiable reviewer leaves the guard on rather than inventing an authorization. Depends on the `/api/greenlight/pr_state` route in pytorch/test-infra; `HUD_API_TOKEN` is already plumbed into `trymerge.yml`. This is the last change of the guard and the only one that alters existing behaviour; the modules it calls landed ahead of it so that the merge-path wiring could be reviewed on its own and each change stay under the 2000 LOC infra limit. One test here asserts `merge_rules.yaml` still grants `pytorchgreenlight` merge authority, so a rename there cannot silently disable the guard. Signed-off-by: Jean Schmidt <[email protected]> ghstack-source-id: 6b2659e Pull-Request: #194841
**Impact:** mergebot only — PRs whose sole merge authorization is the `pytorchgreenlight` approval **Risk:** medium ## What Wires the greenlight land-time guard into `merge_into`: when the only approval that satisfies a merge rule is greenlight's, trymerge reads greenlight's verdict ledger and refuses to land unless greenlight recorded `LAND` for the head commit that is actually being merged. The verdict logic already lives in the `greenlight_*.py` modules next to trymerge; this change only feeds the PR facts in and turns the verdict into the exception the merge loop already understands. Three smaller changes in `trymerge.py` that are worth reading on their own: - `find_matching_merge_rule` gains an `approved_by_override` kwarg, so the guard can ask "would any rule still match if greenlight had not approved?" without duplicating rule evaluation. Default behaviour is unchanged. - The inline approver expansion is extracted to `rule_approvers`, and a malformed team ref (`org/team/extra`) now raises instead of expanding to nobody. Previously `gh_get_team_members` warned, returned `[]`, and the rule then matched *any* approver. - Two REST accessors (`get_updated_at`, `get_bot_reviewers`) added on `GitHubPR`. They are REST rather than fields on `GH_GET_PR_INFO_QUERY` because that query text is the cache key for the recorded GraphQL fixtures — extending it invalidates all of them. ## Why `merge_rules.yaml`'s "Greenlight Review Bot" rule lets a single `pytorchgreenlight` approval authorize a merge of any path, and pytorch/pytorch has no GitHub-native required reviews, so that approval is never dismissed when the author pushes more commits. Today an author can get greenlight's approval on a benign commit, push anything on top, and `pytorchbot merge` lands unreviewed content. This closes that window by comparing the head SHA greenlight actually evaluated against the head being landed. # Notes Behaviour reviewers should sanity-check: - **Scope.** The guard is skipped entirely when greenlight did not approve, and when any other merge rule still matches after dropping greenlight's approval. A drive-by approval from a random GitHub user does *not* switch it off. - **Waiting.** "greenlight hasn't answered yet" raises `MandatoryChecksMissingError`, so the existing 5-minute retry loop handles it. The 60-minute budget is owned by `merge()` and shared across re-entries, and opens at the first wait (not at command time, since `merge_into` is only reached once CI is green). One comment is posted to the PR the first time it waits. - **Force merge.** `-f` gets no wait window and therefore never waits; it refuses instead if greenlight is the only authority and hasn't verified the head. - **ghstack.** Checked against each open PR's GitHub head, which is what greenlight records, not the `/orig` revision git cherry-picks. - **Failure modes.** A HUD outage is a wait, not a refusal, until the budget runs out; an unreadable `merge_rules.yaml` or an unclassifiable reviewer leaves the guard on rather than inventing an authorization. Depends on the `/api/greenlight/pr_state` route in pytorch/test-infra; `HUD_API_TOKEN` is already plumbed into `trymerge.yml`. This is the last change of the guard and the only one that alters existing behaviour; the modules it calls landed ahead of it so that the merge-path wiring could be reviewed on its own and each change stay under the 2000 LOC infra limit. One test here asserts `merge_rules.yaml` still grants `pytorchgreenlight` merge authority, so a rename there cannot silently disable the guard. Signed-off-by: Jean Schmidt <[email protected]> ghstack-source-id: 6df4b4d Pull-Request: #194841
**Impact:** mergebot only — PRs whose sole merge authorization is the `pytorchgreenlight` approval **Risk:** medium ## What Wires the greenlight land-time guard into `merge_into`: when the only approval that satisfies a merge rule is greenlight's, trymerge reads greenlight's verdict ledger and refuses to land unless greenlight recorded `LAND` for the head commit that is actually being merged. The verdict logic already lives in the `greenlight_*.py` modules next to trymerge; this change only feeds the PR facts in and turns the verdict into the exception the merge loop already understands. Three smaller changes in `trymerge.py` that are worth reading on their own: - `find_matching_merge_rule` gains an `approved_by_override` kwarg, so the guard can ask "would any rule still match if greenlight had not approved?" without duplicating rule evaluation. Default behaviour is unchanged. - The inline approver expansion is extracted to `rule_approvers`, and a malformed team ref (`org/team/extra`) now raises instead of expanding to nobody. Previously `gh_get_team_members` warned, returned `[]`, and the rule then matched *any* approver. - Two REST accessors (`get_updated_at`, `get_bot_reviewers`) added on `GitHubPR`. They are REST rather than fields on `GH_GET_PR_INFO_QUERY` because that query text is the cache key for the recorded GraphQL fixtures — extending it invalidates all of them. ## Why `merge_rules.yaml`'s "Greenlight Review Bot" rule lets a single `pytorchgreenlight` approval authorize a merge of any path, and pytorch/pytorch has no GitHub-native required reviews, so that approval is never dismissed when the author pushes more commits. Today an author can get greenlight's approval on a benign commit, push anything on top, and `pytorchbot merge` lands unreviewed content. This closes that window by comparing the head SHA greenlight actually evaluated against the head being landed. # Notes Behaviour reviewers should sanity-check: - **Scope.** The guard is skipped entirely when greenlight did not approve, and when any other merge rule still matches after dropping greenlight's approval. A drive-by approval from a random GitHub user does *not* switch it off. - **Waiting.** "greenlight hasn't answered yet" raises `MandatoryChecksMissingError`, so the existing 5-minute retry loop handles it. The 60-minute budget is owned by `merge()` and shared across re-entries, and opens at the first wait (not at command time, since `merge_into` is only reached once CI is green). One comment is posted to the PR the first time it waits. - **Force merge.** `-f` gets no wait window and therefore never waits; it refuses instead if greenlight is the only authority and hasn't verified the head. - **ghstack.** Checked against each open PR's GitHub head, which is what greenlight records, not the `/orig` revision git cherry-picks. - **Failure modes.** A HUD outage is a wait, not a refusal, until the budget runs out; an unreadable `merge_rules.yaml` or an unclassifiable reviewer leaves the guard on rather than inventing an authorization. Depends on the `/api/greenlight/pr_state` route in pytorch/test-infra; `HUD_API_TOKEN` is already plumbed into `trymerge.yml`. This is the last change of the guard and the only one that alters existing behaviour; the modules it calls landed ahead of it so that the merge-path wiring could be reviewed on its own and each change stay under the 2000 LOC infra limit. One test here asserts `merge_rules.yaml` still grants `pytorchgreenlight` merge authority, so a rename there cannot silently disable the guard. Signed-off-by: Jean Schmidt <[email protected]> ghstack-source-id: 938a301 Pull-Request: #194841
|
@pytorchbot merge -f "lintrunner is green on top PR, all the other CI should not be testing try-merge behavior. Should be ready to merge" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ytorch#194841) **Impact:** mergebot only — PRs whose sole merge authorization is the `pytorchgreenlight` approval **Risk:** medium Depends on pytorch/test-infra#8630 to be merged before merging this one ## What Wires the greenlight land-time guard into `merge_into`: when the only approval that satisfies a merge rule is greenlight's, trymerge reads greenlight's verdict ledger and refuses to land unless greenlight recorded `LAND` for the head commit that is actually being merged. The verdict logic already lives in the `greenlight_*.py` modules next to trymerge; this change only feeds the PR facts in and turns the verdict into the exception the merge loop already understands. Three smaller changes in `trymerge.py` that are worth reading on their own: - `find_matching_merge_rule` gains an `approved_by_override` kwarg, so the guard can ask "would any rule still match if greenlight had not approved?" without duplicating rule evaluation. Default behaviour is unchanged. - The inline approver expansion is extracted to `rule_approvers`, and a malformed team ref (`org/team/extra`) now raises instead of expanding to nobody. Previously `gh_get_team_members` warned, returned `[]`, and the rule then matched *any* approver. - Two REST accessors (`get_updated_at`, `get_bot_reviewers`) added on `GitHubPR`. They are REST rather than fields on `GH_GET_PR_INFO_QUERY` because that query text is the cache key for the recorded GraphQL fixtures — extending it invalidates all of them. ## Why `merge_rules.yaml`'s "Greenlight Review Bot" rule lets a single `pytorchgreenlight` approval authorize a merge of any path, and pytorch/pytorch has no GitHub-native required reviews, so that approval is never dismissed when the author pushes more commits. Today an author can get greenlight's approval on a benign commit, push anything on top, and `@pytorchbot merge` lands unreviewed content. This closes that window by comparing the head SHA greenlight actually evaluated against the head being landed. # Notes Behaviour reviewers should sanity-check: - **Scope.** The guard is skipped entirely when greenlight did not approve, and when any other merge rule still matches after dropping greenlight's approval. A drive-by approval from a random GitHub user does *not* switch it off. - **Waiting.** "greenlight hasn't answered yet" raises `MandatoryChecksMissingError`, so the existing 5-minute retry loop handles it. The 60-minute budget is owned by `merge()` and shared across re-entries, and opens at the first wait (not at command time, since `merge_into` is only reached once CI is green). One comment is posted to the PR the first time it waits. - **Force merge.** `-f` gets no wait window and therefore never waits; it refuses instead if greenlight is the only authority and hasn't verified the head. - **ghstack.** Checked against each open PR's GitHub head, which is what greenlight records, not the `/orig` revision git cherry-picks. - **Failure modes.** A HUD outage is a wait, not a refusal, until the budget runs out; an unreadable `merge_rules.yaml` or an unclassifiable reviewer leaves the guard on rather than inventing an authorization. Depends on the `/api/greenlight/pr_state` route in pytorch/test-infra; `HUD_API_TOKEN` is already plumbed into `trymerge.yml`. This is the last change of the guard and the only one that alters existing behaviour; the modules it calls landed ahead of it so that the merge-path wiring could be reviewed on its own and each change stay under the 2000 LOC infra limit. One test here asserts `merge_rules.yaml` still grants `pytorchgreenlight` merge authority, so a rename there cannot silently disable the guard. Signed-off-by: Jean Schmidt <[email protected]> Pull Request resolved: pytorch#194841 Approved by: https://github.com/huydhn ghstack dependencies: pytorch#194838, pytorch#194839, pytorch#194840
…ytorch#194841) **Impact:** mergebot only — PRs whose sole merge authorization is the `pytorchgreenlight` approval **Risk:** medium Depends on pytorch/test-infra#8630 to be merged before merging this one ## What Wires the greenlight land-time guard into `merge_into`: when the only approval that satisfies a merge rule is greenlight's, trymerge reads greenlight's verdict ledger and refuses to land unless greenlight recorded `LAND` for the head commit that is actually being merged. The verdict logic already lives in the `greenlight_*.py` modules next to trymerge; this change only feeds the PR facts in and turns the verdict into the exception the merge loop already understands. Three smaller changes in `trymerge.py` that are worth reading on their own: - `find_matching_merge_rule` gains an `approved_by_override` kwarg, so the guard can ask "would any rule still match if greenlight had not approved?" without duplicating rule evaluation. Default behaviour is unchanged. - The inline approver expansion is extracted to `rule_approvers`, and a malformed team ref (`org/team/extra`) now raises instead of expanding to nobody. Previously `gh_get_team_members` warned, returned `[]`, and the rule then matched *any* approver. - Two REST accessors (`get_updated_at`, `get_bot_reviewers`) added on `GitHubPR`. They are REST rather than fields on `GH_GET_PR_INFO_QUERY` because that query text is the cache key for the recorded GraphQL fixtures — extending it invalidates all of them. ## Why `merge_rules.yaml`'s "Greenlight Review Bot" rule lets a single `pytorchgreenlight` approval authorize a merge of any path, and pytorch/pytorch has no GitHub-native required reviews, so that approval is never dismissed when the author pushes more commits. Today an author can get greenlight's approval on a benign commit, push anything on top, and `@pytorchbot merge` lands unreviewed content. This closes that window by comparing the head SHA greenlight actually evaluated against the head being landed. # Notes Behaviour reviewers should sanity-check: - **Scope.** The guard is skipped entirely when greenlight did not approve, and when any other merge rule still matches after dropping greenlight's approval. A drive-by approval from a random GitHub user does *not* switch it off. - **Waiting.** "greenlight hasn't answered yet" raises `MandatoryChecksMissingError`, so the existing 5-minute retry loop handles it. The 60-minute budget is owned by `merge()` and shared across re-entries, and opens at the first wait (not at command time, since `merge_into` is only reached once CI is green). One comment is posted to the PR the first time it waits. - **Force merge.** `-f` gets no wait window and therefore never waits; it refuses instead if greenlight is the only authority and hasn't verified the head. - **ghstack.** Checked against each open PR's GitHub head, which is what greenlight records, not the `/orig` revision git cherry-picks. - **Failure modes.** A HUD outage is a wait, not a refusal, until the budget runs out; an unreadable `merge_rules.yaml` or an unclassifiable reviewer leaves the guard on rather than inventing an authorization. Depends on the `/api/greenlight/pr_state` route in pytorch/test-infra; `HUD_API_TOKEN` is already plumbed into `trymerge.yml`. This is the last change of the guard and the only one that alters existing behaviour; the modules it calls landed ahead of it so that the merge-path wiring could be reviewed on its own and each change stay under the 2000 LOC infra limit. One test here asserts `merge_rules.yaml` still grants `pytorchgreenlight` merge authority, so a rename there cannot silently disable the guard. Signed-off-by: Jean Schmidt <[email protected]> Pull Request resolved: pytorch#194841 Approved by: https://github.com/huydhn ghstack dependencies: pytorch#194838, pytorch#194839, pytorch#194840
Stack from ghstack (oldest at bottom):
Impact: mergebot only — PRs whose sole merge authorization is the
pytorchgreenlightapproval
Risk: medium
Depends on pytorch/test-infra#8630 to be merged before merging this one
What
Wires the greenlight land-time guard into
merge_into: when the only approval thatsatisfies a merge rule is greenlight's, trymerge reads greenlight's verdict ledger and
refuses to land unless greenlight recorded
LANDfor the head commit that is actuallybeing merged. The verdict logic already lives in the
greenlight_*.pymodules next totrymerge; this change only feeds the PR facts in and turns the verdict into the exception
the merge loop already understands.
Three smaller changes in
trymerge.pythat are worth reading on their own:find_matching_merge_rulegains anapproved_by_overridekwarg, so the guard can ask"would any rule still match if greenlight had not approved?" without duplicating rule
evaluation. Default behaviour is unchanged.
rule_approvers, and a malformed teamref (
org/team/extra) now raises instead of expanding to nobody. Previouslygh_get_team_memberswarned, returned[], and the rule then matched any approver.get_updated_at,get_bot_reviewers) added onGitHubPR. Theyare REST rather than fields on
GH_GET_PR_INFO_QUERYbecause that query text is thecache key for the recorded GraphQL fixtures — extending it invalidates all of them.
Why
merge_rules.yaml's "Greenlight Review Bot" rule lets a singlepytorchgreenlightapproval authorize a merge of any path, and pytorch/pytorch has no GitHub-native
required reviews, so that approval is never dismissed when the author pushes more
commits. Today an author can get greenlight's approval on a benign commit, push
anything on top, and
@pytorchbot mergelands unreviewed content. This closes thatwindow by comparing the head SHA greenlight actually evaluated against the head being
landed.
Notes
Behaviour reviewers should sanity-check:
other merge rule still matches after dropping greenlight's approval. A drive-by
approval from a random GitHub user does not switch it off.
MandatoryChecksMissingError, sothe existing 5-minute retry loop handles it. The 60-minute budget is owned by
merge()and shared across re-entries, and opens at the first wait (not at command time, since
merge_intois only reached once CI is green). One comment is posted to the PR thefirst time it waits.
-fgets no wait window and therefore never waits; it refuses insteadif greenlight is the only authority and hasn't verified the head.
records, not the
/origrevision git cherry-picks.an unreadable
merge_rules.yamlor an unclassifiable reviewer leaves the guard onrather than inventing an authorization.
Depends on the
/api/greenlight/pr_stateroute in pytorch/test-infra;HUD_API_TOKENis already plumbed into
trymerge.yml.This is the last change of the guard and the only one that alters existing behaviour;
the modules it calls landed ahead of it so that the merge-path wiring could be reviewed
on its own and each change stay under the 2000 LOC infra limit. One test here asserts
merge_rules.yamlstill grantspytorchgreenlightmerge authority, so a rename therecannot silently disable the guard.
Signed-off-by: Jean Schmidt [email protected]